summaryrefslogtreecommitdiffstats
path: root/tests/qapi-schema/nested-struct-data.err
diff options
context:
space:
mode:
authorAlberto Garcia2018-06-29 13:37:02 +0200
committerKevin Wolf2018-08-15 12:50:39 +0200
commit4c8350fe1729b072473417dc22fa6410a4383127 (patch)
treefa0ea6ac45fbbc089354475206444b7f2e89b18d /tests/qapi-schema/nested-struct-data.err
parentblock: Simplify bdrv_reopen_abort() (diff)
downloadqemu-4c8350fe1729b072473417dc22fa6410a4383127.tar.gz
qemu-4c8350fe1729b072473417dc22fa6410a4383127.tar.xz
qemu-4c8350fe1729b072473417dc22fa6410a4383127.zip
block: Update bs->options if bdrv_reopen() succeeds
If bdrv_reopen() succeeds then bs->explicit_options is updated with the new values, but bs->options never changes. Here's an example: { "execute": "blockdev-add", "arguments": { "driver": "qcow2", "node-name": "hd0", "overlap-check": "all", "file": { "driver": "file", "filename": "hd0.qcow2" } } } After this, both bs->options and bs->explicit_options contain "overlap-check": "all". Now let's change that using qemu-io's reopen command: (qemu) qemu-io hd0 "reopen -o overlap-check=none" After this, bs->explicit_options contains the new value but bs->options still keeps the old one. This patch updates bs->options after a BDS has been successfully reopened. Signed-off-by: Alberto Garcia <berto@igalia.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'tests/qapi-schema/nested-struct-data.err')
0 files changed, 0 insertions, 0 deletions