mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-26 18:41:17 +00:00
Mark Xen PV CD-ROM devices as such
This commit is contained in:
parent
d052118dae
commit
5b6c39f51f
@ -1,3 +1,8 @@
|
|||||||
|
Wed Jan 14 16:17:20 GMT 2009 John Levon <levon@movementarian.org>
|
||||||
|
|
||||||
|
* src/xend_internal.c: Add a ':cdrom' marker for PV as well as
|
||||||
|
HVM devices.
|
||||||
|
|
||||||
Wed Jan 14 15:13:17 GMT 2009 John Levon <levon@movementarian.org>
|
Wed Jan 14 15:13:17 GMT 2009 John Levon <levon@movementarian.org>
|
||||||
|
|
||||||
* acinclude.m4:
|
* acinclude.m4:
|
||||||
|
@ -5024,6 +5024,8 @@ xenDaemonFormatSxprDisk(virConnectPtr conn ATTRIBUTE_UNUSED,
|
|||||||
virBufferVSprintf(buf, "(dev '%s:%s')", def->dst,
|
virBufferVSprintf(buf, "(dev '%s:%s')", def->dst,
|
||||||
def->device == VIR_DOMAIN_DISK_DEVICE_CDROM ?
|
def->device == VIR_DOMAIN_DISK_DEVICE_CDROM ?
|
||||||
"cdrom" : "disk");
|
"cdrom" : "disk");
|
||||||
|
} else if (def->device == VIR_DOMAIN_DISK_DEVICE_CDROM) {
|
||||||
|
virBufferVSprintf(buf, "(dev '%s:cdrom')", def->dst);
|
||||||
} else {
|
} else {
|
||||||
virBufferVSprintf(buf, "(dev '%s')", def->dst);
|
virBufferVSprintf(buf, "(dev '%s')", def->dst);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user