src->volume = src->path;
- if (VIR_STRDUP(src->path, tmp) < 0)
+ if (VIR_STRDUP(src->path, tmp + 1) < 0)
goto cleanup;
tmp[0] = '\0';
virStorageNetProtocolTypeToString(src->protocol));
if (src->volume) {
- if (virAsprintf(&path, "%s%s", src->volume, src->path) < 0)
+ if (virAsprintf(&path, "%s/%s", src->volume, src->path) < 0)
return -1;
}
if (src->path) {
if (src->volume) {
- if (virAsprintf(&uri->path, "/%s%s",
+ if (virAsprintf(&uri->path, "/%s/%s",
src->volume, src->path) < 0)
goto cleanup;
} else {
src->volume = src->path;
- if (VIR_STRDUP(src->path, tmp) < 0)
+ if (VIR_STRDUP(src->path, tmp + 1) < 0)
goto cleanup;
tmp[0] = '\0';
src->protocol = VIR_STORAGE_NET_PROTOCOL_GLUSTER;
if (VIR_STRDUP(src->volume, volume) < 0 ||
- virAsprintf(&src->path, "/%s", path) < 0)
+ VIR_STRDUP(src->path, path) < 0)
return -1;
nservers = virJSONValueArraySize(server);
format=raw,if=none,id=drive-virtio-disk1' \
-device virtio-blk-pci,bus=pci.0,addr=0x4,drive=drive-virtio-disk1,\
id=virtio-disk1 \
--drive file.driver=gluster,file.volume=Volume3,file.path=/Image.qcow2,\
+-drive file.driver=gluster,file.volume=Volume3,file.path=Image.qcow2,\
file.server.0.type=tcp,file.server.0.host=example.org,file.server.0.port=6000,\
file.server.1.type=tcp,file.server.1.host=example.org,file.server.1.port=24007,\
file.server.2.type=unix,file.server.2.socket=/path/to/sock,file.debug=4,\