summaryrefslogtreecommitdiffstats
path: root/include/exec
diff options
context:
space:
mode:
authorAlberto Garcia2018-09-06 11:37:08 +0200
committerKevin Wolf2018-10-01 12:51:12 +0200
commit593b30719713cfad98b869693095893f8edf76c1 (patch)
treedb6c0723ee55cc5151abcfda74c8343d29b853d9 /include/exec
parentfile-posix: Forbid trying to change unsupported options during reopen (diff)
downloadqemu-593b30719713cfad98b869693095893f8edf76c1.tar.gz
qemu-593b30719713cfad98b869693095893f8edf76c1.tar.xz
qemu-593b30719713cfad98b869693095893f8edf76c1.zip
block: Allow changing 'discard' on reopen
'discard' 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 discard=on" Cannot change the option 'discard' 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/exec')
0 files changed, 0 insertions, 0 deletions