From: Stefan Hajnoczi <stefanha@gmail.com>
To: Eric Blake <eblake@redhat.com>
Cc: "qemu-devel@nongnu.org" <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] core dump with drive-mirror
Date: Tue, 1 Jul 2014 09:20:52 +0200 [thread overview]
Message-ID: <20140701072052.GA24571@stefanha-thinkpad.redhat.com> (raw)
In-Reply-To: <53B1F560.8070705@redhat.com>
[-- Attachment #1: Type: text/plain, Size: 1335 bytes --]
On Mon, Jun 30, 2014 at 05:40:16PM -0600, Eric Blake wrote:
> On 06/30/2014 05:16 PM, Eric Blake wrote:
> > I'm trying to track down a core dump with the QMP drive-mirror command.
>
> Looks like the bug is related to a base image that is not a multiple of
> a cluster size.
>
> >
> > # in one terminal:
> > cd /tmp
> > rm -f base.img snap1.img snap2.img copy.img
> >
> > # base.img <- snap1.img <- snap2.img; intentionally populating base.img
> > # with a qcow2 header, but treating it as raw data
> > qemu-img create -f qcow2 base.img 10M
>
> If, right here, I inject:
>
> truncate --size 262144 base.img
>
> > qemu-img create -f qcow2 -b base.img -o backing_fmt=raw snap1.img
> > qemu-img create -f qcow2 -b snap1.img -o backing_fmt=qcow2 snap2.img
> > cp base.img copy.img
> > # Yes, this command line is derived from libvirt...
> > LC_ALL=C PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin \
> > QEMU_AUDIO_DRV=none gdb --args /usr/bin/qemu-system-x86_64 \
>
> ...then everything else succeeds. So it seems the problem is that qemu
> is doing a lousy job of handling a backing file and/or destination file
> that is not fully rounded out to a proper size.
Thanks for reporting this. It's something we need to fix during the
QEMU 2.1 hard freeze that is starting today.
Stefan
[-- Attachment #2: Type: application/pgp-signature, Size: 473 bytes --]
prev parent reply other threads:[~2014-07-01 7:21 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-30 23:16 [Qemu-devel] core dump with drive-mirror Eric Blake
2014-06-30 23:28 ` Eric Blake
2014-06-30 23:40 ` Eric Blake
2014-07-01 7:20 ` Stefan Hajnoczi [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140701072052.GA24571@stefanha-thinkpad.redhat.com \
--to=stefanha@gmail.com \
--cc=eblake@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).