]> git.ipfire.org Git - thirdparty/qemu.git/commit
qemu-io: Use bdrv_parse_cache_mode() in reopen_f()
authorKevin Wolf <kwolf@redhat.com>
Fri, 18 Mar 2016 14:36:31 +0000 (15:36 +0100)
committerKevin Wolf <kwolf@redhat.com>
Wed, 30 Mar 2016 10:16:03 +0000 (12:16 +0200)
commit19dbecdceef3f0800a96c25931d71b0b82c3a47a
tree11bb70b5e272daf0ec9a4550d0d45334d1eebc70
parent04feb4a5073e75b8ed213b297c857fa3ccc0b538
qemu-io: Use bdrv_parse_cache_mode() in reopen_f()

We must forbid changing the WCE flag in bdrv_reopen() in the same patch,
as otherwise the behaviour would change so that the flag takes
precedence over the explicitly specified option.

The correct value of the WCE flag depends on the BlockBackend user (e.g.
guest device) and isn't a decision that the QMP client makes, so this
change is what we want.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
block.c
qemu-io-cmds.c
tests/qemu-iotests/142
tests/qemu-iotests/142.out