qemu-io: Put flag changes in the options QDict in reopen_f()
commitdc900c35239bc865df2dff5880eabcd25b974f19
authorAlberto Garcia <berto@igalia.com>
Mon, 12 Nov 2018 14:00:42 +0000 (12 16:00 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 14 Dec 2018 10:55:02 +0000 (14 11:55 +0100)
tree704618871eedbc497acf63e3ec9375240b0f4dc2
parent295cf237c2e5112de3e2aa7c3dbc80580b80bf88
qemu-io: Put flag changes in the options QDict in reopen_f()

When reopen_f() puts a block device in the reopen queue, some of the
new options are passed using a QDict, but others ("read-only" and the
cache options) are passed as flags.

This patch puts those flags in the QDict. This way the flags parameter
becomes redundant and we'll be able to get rid of it in a subsequent
patch.

Signed-off-by: Alberto Garcia <berto@igalia.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
qemu-io-cmds.c
tests/qemu-iotests/133
tests/qemu-iotests/133.out