mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
qemu_command: Fix check for gluster disks
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
This commit is contained in:
parent
2cc317b1f5
commit
644804765b
@ -1419,7 +1419,7 @@ qemuBuildDriveSourceStr(virDomainDiskDefPtr disk,
|
||||
}
|
||||
virBufferAddLit(buf, ",");
|
||||
|
||||
if (disk->src &&
|
||||
if (disk->src->type == VIR_STORAGE_TYPE_NETWORK &&
|
||||
disk->src->protocol == VIR_STORAGE_NET_PROTOCOL_GLUSTER) {
|
||||
if (virQEMUCapsGet(qemuCaps, QEMU_CAPS_GLUSTER_DEBUG_LEVEL))
|
||||
virBufferAsprintf(buf, "file.debug=%d,", cfg->glusterDebugLevel);
|
||||
|
Loading…
x
Reference in New Issue
Block a user