]> git.proxmox.com Git - mirror_qemu.git/commit - blockdev.c
block: Bugfix 'format' and 'snapshot' used in drive option
authorMike Qiu <qiudayu@linux.vnet.ibm.com>
Thu, 8 Aug 2013 14:45:16 +0000 (10:45 -0400)
committerKevin Wolf <kwolf@redhat.com>
Fri, 9 Aug 2013 17:33:23 +0000 (19:33 +0200)
commit6db5f5d68e2ffc430ba0511e23fc36c7363510f1
tree9357f946468adf7d01429bcc23e498f92ab62024
parent2e985fe000e73097e325e18b943e8babfa96c35c
block: Bugfix 'format' and 'snapshot' used in drive option

When use -drive file='xxx',format=qcow2,snapshot=on the error
message "Can't use snapshot=on with driver-specific options"
can be show, and fail to start the qemu.

This should not be happened, and there is no file.driver option
in qemu command line.

It is because the commit 74fe54f2a1b5c4f4498a8fe521e1dfc936656cd4,
it puts 'driver' option if the command line use 'format' option.

This patch is to solve this bug.

Signed-off-by: Mike Qiu <qiudayu@linux.vnet.ibm.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
blockdev.c