mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-25 15:15:25 +00:00
esx: Accept 'disk' as harddisk device type in .vmx files
This commit is contained in:
parent
02988742b7
commit
b0f414c67b
@ -1542,16 +1542,20 @@ esxVMX_ParseDisk(esxVI_Context *ctx, virConfPtr conf, int device, int bus,
|
|||||||
if (virFileHasSuffix(fileName, ".vmdk")) {
|
if (virFileHasSuffix(fileName, ".vmdk")) {
|
||||||
if (deviceType != NULL) {
|
if (deviceType != NULL) {
|
||||||
if (bus == VIR_DOMAIN_DISK_BUS_SCSI &&
|
if (bus == VIR_DOMAIN_DISK_BUS_SCSI &&
|
||||||
STRCASENEQ(deviceType, "scsi-hardDisk")) {
|
STRCASENEQ(deviceType, "scsi-hardDisk") &&
|
||||||
|
STRCASENEQ(deviceType, "disk")) {
|
||||||
ESX_ERROR(VIR_ERR_INTERNAL_ERROR,
|
ESX_ERROR(VIR_ERR_INTERNAL_ERROR,
|
||||||
_("Expecting VMX entry '%s' to be 'scsi-hardDisk' "
|
_("Expecting VMX entry '%s' to be 'scsi-hardDisk' "
|
||||||
"but found '%s'"), deviceType_name, deviceType);
|
"or 'disk' but found '%s'"), deviceType_name,
|
||||||
|
deviceType);
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
} else if (bus == VIR_DOMAIN_DISK_BUS_IDE &&
|
} else if (bus == VIR_DOMAIN_DISK_BUS_IDE &&
|
||||||
STRCASENEQ(deviceType, "ata-hardDisk")) {
|
STRCASENEQ(deviceType, "ata-hardDisk") &&
|
||||||
|
STRCASENEQ(deviceType, "disk")) {
|
||||||
ESX_ERROR(VIR_ERR_INTERNAL_ERROR,
|
ESX_ERROR(VIR_ERR_INTERNAL_ERROR,
|
||||||
_("Expecting VMX entry '%s' to be 'ata-hardDisk' "
|
_("Expecting VMX entry '%s' to be 'ata-hardDisk' "
|
||||||
"but found '%s'"), deviceType_name, deviceType);
|
"or 'disk' but found '%s'"), deviceType_name,
|
||||||
|
deviceType);
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user