diff options
| author | Alberto Garcia | 2018-09-06 11:37:09 +0200 |
|---|---|---|
| committer | Kevin Wolf | 2018-10-01 12:51:12 +0200 |
| commit | 543770bd2e8fbaac286a947dee91675adb3215c7 (patch) | |
| tree | bd89b70388a0f78a274719cc0408a9e874f633f5 /include | |
| parent | block: Allow changing 'discard' on reopen (diff) | |
| download | qemu-543770bd2e8fbaac286a947dee91675adb3215c7.tar.gz qemu-543770bd2e8fbaac286a947dee91675adb3215c7.tar.xz qemu-543770bd2e8fbaac286a947dee91675adb3215c7.zip | |
block: Allow changing 'detect-zeroes' on reopen
'detect-zeroes' is one of the basic BlockdevOptions available for all
drivers, but it's not handled by bdrv_reopen_prepare(), so any attempt
to change it results in an error:
(qemu) qemu-io virtio0 "reopen -o detect-zeroes=on"
Cannot change the option 'detect-zeroes'
Since there's no reason why we shouldn't allow changing it and the
implementation is simple let's just do it.
Signed-off-by: Alberto Garcia <berto@igalia.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/block/block.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/block/block.h b/include/block/block.h index 4edc1e8afa..b189cf422e 100644 --- a/include/block/block.h +++ b/include/block/block.h @@ -184,6 +184,7 @@ typedef QSIMPLEQ_HEAD(BlockReopenQueue, BlockReopenQueueEntry) BlockReopenQueue; typedef struct BDRVReopenState { BlockDriverState *bs; int flags; + BlockdevDetectZeroesOptions detect_zeroes; uint64_t perm, shared_perm; QDict *options; QDict *explicit_options; |
