]> git.proxmox.com Git - mirror_qemu.git/commit - block/qcow.c
block: Catch backing files assigned to non-COW drivers
authorKevin Wolf <kwolf@redhat.com>
Wed, 4 Jun 2014 13:09:35 +0000 (15:09 +0200)
committerKevin Wolf <kwolf@redhat.com>
Thu, 26 Jun 2014 11:51:01 +0000 (13:51 +0200)
commit8ee79e707a005c9274df7ce34265bb7d008b8cef
treef8402fad14af55bef4457d8a5888db05d1d11fec
parent76c591b013782217cad67b35c74cd249e0413439
block: Catch backing files assigned to non-COW drivers

Since we parse backing.* options to add a backing file from the command
line when the driver didn't assign one, it has been possible to have a
backing file for e.g. raw images (it just was never accessed).

This is obvious nonsense and should be rejected.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
block.c
block/cow.c
block/qcow.c
block/qcow2.c
block/qed.c
block/vmdk.c
include/block/block_int.h
tests/qemu-iotests/051
tests/qemu-iotests/051.out