]> xenbits.xensource.com Git - libvirt.git/commit
qemuBlockStorageSourceGetBackendProps: Unify cases for '!onlytarget' and '!legacy'
authorPeter Krempa <pkrempa@redhat.com>
Wed, 18 Oct 2023 11:58:29 +0000 (13:58 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 2 Nov 2023 14:24:09 +0000 (15:24 +0100)
commit16e57a98d0d1073317caece57f127bea8a8aeb45
tree2d85392a2753845673ce2ccc09a6c48074825db7
parentca4cb3d7dc9fc9065200b5f7fc045cef4b6c14d1
qemuBlockStorageSourceGetBackendProps: Unify cases for '!onlytarget' and '!legacy'

At this point only a single code path (for formatting -drive for legacy
SD cards) uses the 'legacy' output and that code path doesn't populate
the node name. Thus we can unify the code block and simplify the JSON
formatters.

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