]> git.ipfire.org Git - thirdparty/qemu.git/commit - block.c
block: Generically refresh runtime options
authorMax Reitz <mreitz@redhat.com>
Fri, 1 Feb 2019 19:29:27 +0000 (20:29 +0100)
committerMax Reitz <mreitz@redhat.com>
Mon, 25 Feb 2019 14:11:27 +0000 (15:11 +0100)
commit97e2f021f844383d85de526ce88667ca34ecd277
treeb7164342ae584dc79a49099b55a3a0827e73b578
parentabc521a9aa470421dc9285cafe16ff64f3044ac5
block: Generically refresh runtime options

Instead of having every block driver which implements
bdrv_refresh_filename() copy all of the strong runtime options over to
bs->full_open_options, implement this process generically in
bdrv_refresh_filename().

This patch only adds this new generic implementation, it does not remove
the old functionality. This is done in a follow-up patch.

With this patch, some superfluous information (that should never have
been there) may be removed from some JSON filenames, as can be seen in
the change to iotests 110's and 228's reference outputs.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Message-id: 20190201192935.18394-24-mreitz@redhat.com
Signed-off-by: Max Reitz <mreitz@redhat.com>
block.c
tests/qemu-iotests/110.out
tests/qemu-iotests/228
tests/qemu-iotests/228.out