diff options
author | Kevin Wolf | 2014-06-04 15:09:35 +0200 |
---|---|---|
committer | Kevin Wolf | 2014-06-26 13:51:01 +0200 |
commit | 8ee79e707a005c9274df7ce34265bb7d008b8cef (patch) | |
tree | f8402fad14af55bef4457d8a5888db05d1d11fec /include/block | |
parent | block: Remove second bdrv_open() recursion (diff) | |
download | qemu-8ee79e707a005c9274df7ce34265bb7d008b8cef.tar.gz qemu-8ee79e707a005c9274df7ce34265bb7d008b8cef.tar.xz qemu-8ee79e707a005c9274df7ce34265bb7d008b8cef.zip |
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 'include/block')
-rw-r--r-- | include/block/block_int.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/block/block_int.h b/include/block/block_int.h index 715c761fad..135c5dc0e9 100644 --- a/include/block/block_int.h +++ b/include/block/block_int.h @@ -100,6 +100,9 @@ struct BlockDriver { */ bool bdrv_needs_filename; + /* Set if a driver can support backing files */ + bool supports_backing; + /* For handling image reopen for split or non-split files */ int (*bdrv_reopen_prepare)(BDRVReopenState *reopen_state, BlockReopenQueue *queue, Error **errp); |