mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 11:22:23 +00:00
Ignore empty type attribute in driver element of virtual disks
Fixes http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=578347
This commit is contained in:
parent
84bc7ac06b
commit
ce380b8e6f
@ -2479,7 +2479,7 @@ qemuBuildDriveStr(virDomainDiskDefPtr disk,
|
||||
if (disk->readonly &&
|
||||
qemuCmdFlags & QEMUD_CMD_FLAG_DEVICE)
|
||||
virBufferAddLit(&opt, ",readonly=on");
|
||||
if (disk->driverType &&
|
||||
if (disk->driverType && *disk->driverType != '\0' &&
|
||||
disk->type != VIR_DOMAIN_DISK_TYPE_DIR &&
|
||||
qemuCmdFlags & QEMUD_CMD_FLAG_DRIVE_FORMAT)
|
||||
virBufferVSprintf(&opt, ",format=%s", disk->driverType);
|
||||
|
Loading…
x
Reference in New Issue
Block a user