]> xenbits.xensource.com Git - libvirt.git/commit
storage: fix omitted slash in gluster volume URI
authorEric Blake <eblake@redhat.com>
Tue, 10 Dec 2013 12:45:26 +0000 (05:45 -0700)
committerEric Blake <eblake@redhat.com>
Tue, 10 Dec 2013 16:40:41 +0000 (09:40 -0700)
commit6cd60b687acd04ea1538690b7d80f2809e0e29d4
tree9c6c475ad4ff35c52f438ec309ca512f9c29d2d2
parent6006c091e2aba0fbe3652c8cd082d0319f42b902
storage: fix omitted slash in gluster volume URI

When doing 'virsh vol-dumpxml' on a gluster pool's volume, the
resulting URI incorrectly omitted a slash between hostname and
path:  gluster://192.168.122.206rhsvol1/fedora-19.img

This is fallout from me rebasing earlier versions of my patch
that ended up as commit efee1af; I had originally played with
always requiring the gluster volume to have a leading slash,
but it was easier to use the gluster API if the gluster volume
name was guaranteed to have no slash.  While I got the URI of
the pool correct, I forgot to fix the URI of a libvirt volume.

* src/storage/storage_backend_gluster.c
(virStorageBackendGlusterRefreshVol): Use correct starting point
since uri construction requires leading slash.

Signed-off-by: Eric Blake <eblake@redhat.com>
src/storage/storage_backend_gluster.c