forked from pool/libvirt
17 lines
693 B
Diff
17 lines
693 B
Diff
Index: libvirt-0.7.6/src/xen/xend_internal.c
|
|
===================================================================
|
|
--- libvirt-0.7.6.orig/src/xen/xend_internal.c
|
|
+++ libvirt-0.7.6/src/xen/xend_internal.c
|
|
@@ -5479,7 +5479,10 @@ xenDaemonFormatSxprDisk(virConnectPtr co
|
|
} else if (def->device == VIR_DOMAIN_DISK_DEVICE_CDROM) {
|
|
virBufferVSprintf(buf, "(dev '%s:cdrom')", def->dst);
|
|
} else {
|
|
- virBufferVSprintf(buf, "(dev '%s')", def->dst);
|
|
+ if (def->device == VIR_DOMAIN_DISK_DEVICE_CDROM)
|
|
+ virBufferVSprintf(buf, "(dev '%s:cdrom')", def->dst);
|
|
+ else
|
|
+ virBufferVSprintf(buf, "(dev '%s')", def->dst);
|
|
}
|
|
|
|
if (def->src) {
|