diff options
author | Kevin Wolf <kwolf@redhat.com> | 2013-03-28 15:29:24 +0100 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2013-04-22 10:27:59 +0200 |
commit | 31ca6d077c24b7aaa322d8930e3e5debbdb4a047 (patch) | |
tree | 81974b0ff7bd37ca4493b0c4f95556adaab2f1f0 /block/mirror.c | |
parent | 2af5ef70af9fdc823407ddc4ae14766806d4837a (diff) | |
download | qemu-31ca6d077c24b7aaa322d8930e3e5debbdb4a047.tar.gz qemu-31ca6d077c24b7aaa322d8930e3e5debbdb4a047.tar.bz2 qemu-31ca6d077c24b7aaa322d8930e3e5debbdb4a047.zip |
block: Add driver-specific options for backing files
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
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 <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'block/mirror.c')
-rw-r--r-- | block/mirror.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/mirror.c b/block/mirror.c index a62ad86c28..8b07dec314 100644 --- a/block/mirror.c +++ b/block/mirror.c @@ -507,7 +507,7 @@ static void mirror_complete(BlockJob *job, Error **errp) MirrorBlockJob *s = container_of(job, MirrorBlockJob, common); int ret; - ret = bdrv_open_backing_file(s->target); + ret = bdrv_open_backing_file(s->target, NULL); if (ret < 0) { char backing_filename[PATH_MAX]; bdrv_get_full_backing_filename(s->target, backing_filename, |