]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virStorageSource: Eliminate 'volume' field
authorPeter Krempa <pkrempa@redhat.com>
Fri, 11 Nov 2022 14:42:52 +0000 (15:42 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 23 Jul 2025 12:47:24 +0000 (14:47 +0200)
commite910f3f1729611d9c1a3687224026a17c69fbd28
treec1461e0eec86f905f7c2dd0aadd3340a00eba8a0
parent0723e066d92d28f43d7b1f51e611f0bc1ebf6c15
virStorageSource: Eliminate 'volume' field

While historically we've stored the 'pool' and 'image' properties of RBD
and gluster images in separate fields but they are presented in a single
field in the XML. This creates multiple points where they need to be
separated and combined.

Introduce helper 'virStorageSourceNetworkProtocolPathSplit' which will
do that at the point of use rather than everywhere in the code.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/conf/domain_conf.c
src/conf/storage_source_conf.c
src/conf/storage_source_conf.h
src/libvirt_private.syms
src/libxl/libxl_conf.c
src/libxl/xen_xl.c
src/qemu/qemu_block.c
src/storage_file/storage_file_backend_gluster.c
src/storage_file/storage_source.c
src/storage_file/storage_source_backingstore.c