17 lines
682 B
Diff
17 lines
682 B
Diff
Index: libvirt-0.5.1/src/xend_internal.c
|
|
===================================================================
|
|
--- libvirt-0.5.1.orig/src/xend_internal.c
|
|
+++ libvirt-0.5.1/src/xend_internal.c
|
|
@@ -5021,7 +5021,10 @@ xenDaemonFormatSxprDisk(virConnectPtr co
|
|
def->device == VIR_DOMAIN_DISK_DEVICE_CDROM ?
|
|
"cdrom" : "disk");
|
|
} 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) {
|