qemu-img: fix --image-opts usage with dd command
commitea204ddac7340bfda60cb0b388dbc3ffd77e8be0
authorDaniel P. Berrange <berrange@redhat.com>
Mon, 15 May 2017 16:47:10 +0000 (15 17:47 +0100)
committerMax Reitz <mreitz@redhat.com>
Mon, 29 May 2017 13:39:53 +0000 (29 15:39 +0200)
treefcbb8943830dd46d8e3b87a4c2f1dd3bc3bfe1ec
parent83d4bf943e09cbcb011e255c872724e95fe4856e
qemu-img: fix --image-opts usage with dd command

The --image-opts flag can only be used to affect the parsing
of the source image. The target image has to be specified in
the traditional style regardless, since it needs to be passed
to the bdrv_create() API which does not support the new style
opts.

Reviewed-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Message-id: 20170515164712.6643-3-berrange@redhat.com
Signed-off-by: Max Reitz <mreitz@redhat.com>
qemu-img.c