]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: block: Add helper to add common properties for -blockdev configuration
authorPeter Krempa <pkrempa@redhat.com>
Thu, 19 Oct 2023 14:04:11 +0000 (16:04 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 2 Nov 2023 14:31:29 +0000 (15:31 +0100)
commitce153ef2ad3263410020e0b5df3d52eafbc6cce0
treea05d80b7157209e62a2e7044b82184ef6f26e441
parent84df50dc87f86e33d9267429fc6f4081e6fd65ce
qemu: block: Add helper to add common properties for -blockdev configuration

The new helper replaces qemuBlockStorageSourceGetBlockdevFormatCommonProps
and the two inline instances generating the common properties for a
blockdev layer.

The new helper is to be used for both the format layer and the storage
backing layer, thus a new parameter 'effective' switches between the
modes.

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