diff options
author | Kevin Wolf <kwolf@redhat.com> | 2014-06-04 15:09:35 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2014-06-26 13:51:01 +0200 |
commit | 8ee79e707a005c9274df7ce34265bb7d008b8cef (patch) | |
tree | f8402fad14af55bef4457d8a5888db05d1d11fec /block/qcow.c | |
parent | 76c591b013782217cad67b35c74cd249e0413439 (diff) | |
download | qemu-8ee79e707a005c9274df7ce34265bb7d008b8cef.zip qemu-8ee79e707a005c9274df7ce34265bb7d008b8cef.tar.gz qemu-8ee79e707a005c9274df7ce34265bb7d008b8cef.tar.bz2 |
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>
Diffstat (limited to 'block/qcow.c')
-rw-r--r-- | block/qcow.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/block/qcow.c b/block/qcow.c index 1f2bac8..a874056 100644 --- a/block/qcow.c +++ b/block/qcow.c @@ -941,6 +941,7 @@ static BlockDriver bdrv_qcow = { .bdrv_reopen_prepare = qcow_reopen_prepare, .bdrv_create = qcow_create, .bdrv_has_zero_init = bdrv_has_zero_init_1, + .supports_backing = true, .bdrv_co_readv = qcow_co_readv, .bdrv_co_writev = qcow_co_writev, |