From: Stefan Hajnoczi <stefanha@redhat.com>
To: qemu-devel@nongnu.org
Cc: Kevin Wolf <kwolf@redhat.com>,
rjones@redhat.com, Stefan Hajnoczi <stefanha@redhat.com>
Subject: [Qemu-devel] [PATCH v2 0/2] block: fix BDRV_O_SNAPSHOT with protocols
Date: Mon, 18 Mar 2013 17:58:52 +0100 [thread overview]
Message-ID: <1363625934-13506-1-git-send-email-stefanha@redhat.com> (raw)
Richard Jones <rjones@redhat.com> reported that BDRV_O_SNAPSHOT does not work
with NBD:
/usr/bin/qemu-system-x86_64 \
[...]
-device virtio-scsi-pci,id=scsi \
-drive file=nbd:localhost:61930,snapshot=on,format=raw,id=hd0,if=none \
-device scsi-hd,drive=hd0 \
[...]
gives the error:
qemu-system-x86_64: -drive file=nbd:localhost:61930,snapshot=on,format=raw,id=hd0,if=none: could not open disk image nbd:localhost:61930: No such file or directory
This series fixes the issue and adds a regression test, qemu-iotests 052. Run
the test like this:
$ QEMU_PROG=... PATH=... ./check -nbd 052
If Patch 1 is not applied, the test case fails. Note that the test case is
also useful with -raw or other formats.
v2:
* Rebased onto latest qemu.git/master
Stefan Hajnoczi (2):
block: fix BDRV_O_SNAPSHOT protocol detection
qemu-iotests: add 052 BDRV_O_SNAPSHOT test
block.c | 6 +----
tests/qemu-iotests/052 | 61 ++++++++++++++++++++++++++++++++++++++++++++++
tests/qemu-iotests/052.out | 13 ++++++++++
tests/qemu-iotests/group | 1 +
4 files changed, 76 insertions(+), 5 deletions(-)
create mode 100755 tests/qemu-iotests/052
create mode 100644 tests/qemu-iotests/052.out
--
1.8.1.4
next reply other threads:[~2013-03-18 16:59 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-18 16:58 Stefan Hajnoczi [this message]
2013-03-18 16:58 ` [Qemu-devel] [PATCH v2 1/2] block: fix BDRV_O_SNAPSHOT protocol detection Stefan Hajnoczi
2013-03-18 16:58 ` [Qemu-devel] [PATCH v2 2/2] qemu-iotests: add 052 BDRV_O_SNAPSHOT test Stefan Hajnoczi
2013-03-18 17:10 ` [Qemu-devel] [PATCH v2 0/2] block: fix BDRV_O_SNAPSHOT with protocols Kevin Wolf
2013-03-19 6:16 ` Michael Tokarev
2013-03-19 8:48 ` Stefan Hajnoczi
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=1363625934-13506-1-git-send-email-stefanha@redhat.com \
--to=stefanha@redhat.com \
--cc=kwolf@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=rjones@redhat.com \
/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).