diff options
author | Alberto Garcia <berto@igalia.com> | 2018-09-06 12:37:08 +0300 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2018-10-01 12:51:12 +0200 |
commit | 593b30719713cfad98b869693095893f8edf76c1 (patch) | |
tree | db6c0723ee55cc5151abcfda74c8343d29b853d9 /scripts/qtest.py | |
parent | 8d3245750be30f3191f710f52fbe53ca10e78bfc (diff) | |
download | qemu-593b30719713cfad98b869693095893f8edf76c1.zip qemu-593b30719713cfad98b869693095893f8edf76c1.tar.gz qemu-593b30719713cfad98b869693095893f8edf76c1.tar.bz2 |
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 'scripts/qtest.py')
0 files changed, 0 insertions, 0 deletions