2010-03-22 05:12:16 +01:00
|
|
|
Index: libvirt-0.7.7/src/xen/xend_internal.c
|
2008-11-07 15:20:28 +01:00
|
|
|
===================================================================
|
2010-03-22 05:12:16 +01:00
|
|
|
--- libvirt-0.7.7.orig/src/xen/xend_internal.c
|
|
|
|
+++ libvirt-0.7.7/src/xen/xend_internal.c
|
|
|
|
@@ -5475,7 +5475,10 @@ xenDaemonFormatSxprDisk(virConnectPtr co
|
2009-04-24 23:15:55 +02:00
|
|
|
} else if (def->device == VIR_DOMAIN_DISK_DEVICE_CDROM) {
|
|
|
|
virBufferVSprintf(buf, "(dev '%s:cdrom')", def->dst);
|
2008-11-07 15:20:28 +01:00
|
|
|
} 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) {
|