]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: block: Convert disk 'storage' backend JSON props generator to new accessors
authorPeter Krempa <pkrempa@redhat.com>
Mon, 25 Sep 2023 14:44:26 +0000 (16:44 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 17 Oct 2023 12:16:16 +0000 (14:16 +0200)
commit9ee19273e66fb2c35c63ef25ee2a7d3837dbbb5e
treecb5b3e49f40a99b3f8aa22f780a57fceb62d8092
parent1f7f5b01cbfb3c703f3bcccae20292d5269a4248
qemu: block: Convert disk 'storage' backend JSON props generator to new accessors

We need to use the 'effective' storage nodename (one which includes the
optional storage slice 'raw' intermediate layer) in the code which
formats the 'format' layer props.

All other cases need the real storage driver nodename as they either
generate the 'storage' layer props, or the storage slice, which refers
to the proper storage backend.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_block.c