aboutsummaryrefslogtreecommitdiff
path: root/tests/multiboot/modules.c
diff options
context:
space:
mode:
authorAlberto Garcia <berto@igalia.com>2018-06-29 14:37:02 +0300
committerKevin Wolf <kwolf@redhat.com>2018-08-15 12:50:39 +0200
commit4c8350fe1729b072473417dc22fa6410a4383127 (patch)
treefa0ea6ac45fbbc089354475206444b7f2e89b18d /tests/multiboot/modules.c
parent1bab38e7bd29347aca642c55a1de91ec6680efce (diff)
downloadqemu-4c8350fe1729b072473417dc22fa6410a4383127.zip
qemu-4c8350fe1729b072473417dc22fa6410a4383127.tar.gz
qemu-4c8350fe1729b072473417dc22fa6410a4383127.tar.bz2
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/multiboot/modules.c')
0 files changed, 0 insertions, 0 deletions