]> git.ipfire.org Git - thirdparty/libvirt.git/commit
storage: Don't store leading '/' in image name when splitting out volume
authorPeter Krempa <pkrempa@redhat.com>
Mon, 23 Oct 2017 14:39:49 +0000 (16:39 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 7 Nov 2017 13:58:04 +0000 (14:58 +0100)
commitbb14d9897b33a87e8b6a2b60c62b473a4f05e7f3
tree70d027244dc6f72fe3d8401a0d11e38c7cdd03b7
parent1ee7d4d972fd946f5d0deae600081d85b2a3dd5a
storage: Don't store leading '/' in image name when splitting out volume

Libvirt historically stores storage source path including the volume as
one string in the XML, but that is not really flexible enough when
dealing with the fields in the code. Previously we'd store the slash
separating the two as part of the image name. This was fine for gluster
but it's not necessary and does not scale well when converting other
protocols.

Don't store the slash as part of the path. The resulting change from
absolute to relative path within the gluster driver should be okay,
as the root directory is the default when accessing gluster.
src/conf/domain_conf.c
src/qemu/qemu_block.c
src/util/virstoragefile.c
tests/qemuxml2argvdata/qemuxml2argv-disk-drive-network-gluster.args