[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 02/15] block: Add driver-specific options for ba
From: |
Eric Blake |
Subject: |
Re: [Qemu-devel] [PATCH 02/15] block: Add driver-specific options for backing files |
Date: |
Mon, 15 Apr 2013 11:38:08 -0600 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130402 Thunderbird/17.0.5 |
On 04/12/2013 02:47 PM, Kevin Wolf wrote:
> Options starting in "backing." are passed to the backing file now. If
> you don't need to specify the filename for the backing file, you can add
> it on the command line instead of in the image file:
>
> $ qemu-nbd -t /tmp/test.img
> $ qemu-img create -f qcow2 empty.qcow2 1G
> $ qemu-system-x86_64 -drive file=empty.qcow2,backing.file.driver=nbd,\
> backing.file.host=localhost
So effectively empty.qcow2 is booted as though it had an explicit
nbd://localhost in its backing metadata? Looks interesting!
>
> Note that this doesn't override the backing filename from the image. If
> the image has one, this will fail because NBD doesn't want the options
> and a filename at the same time.
>
> Signed-off-by: Kevin Wolf <address@hidden>
> ---
> block.c | 27 +++++++++++++++++++++++----
> block/mirror.c | 2 +-
> include/block/block.h | 2 +-
> 3 files changed, 25 insertions(+), 6 deletions(-)
Reviewed-by: Eric Blake <address@hidden>
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
- [Qemu-devel] [PATCH 00/15] block: Overriding the backing file with -drive, Kevin Wolf, 2013/04/12
- [Qemu-devel] [PATCH 02/15] block: Add driver-specific options for backing files, Kevin Wolf, 2013/04/12
- Re: [Qemu-devel] [PATCH 02/15] block: Add driver-specific options for backing files,
Eric Blake <=
- [Qemu-devel] [PATCH 03/15] block: Enable filename option, Kevin Wolf, 2013/04/12
- [Qemu-devel] [PATCH 04/15] raw-posix: Use bdrv_open options instead of filename, Kevin Wolf, 2013/04/12
- [Qemu-devel] [PATCH 05/15] raw-win32: Use bdrv_open options instead of filename, Kevin Wolf, 2013/04/12
- [Qemu-devel] [PATCH 06/15] blkdebug: Use bdrv_open options instead of filename, Kevin Wolf, 2013/04/12
- [Qemu-devel] [PATCH 07/15] blkverify: Use bdrv_open options instead of filename, Kevin Wolf, 2013/04/12