mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-28 11:31:16 +00:00
remove a now redundant call to virDiskNameToIndex()
Parseability of disk name is now checked in qemuDomainDeviceDefValidateDisk(). Signed-off-by: Pavel Mores <pmores@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
ca437d0603
commit
2346b2f656
@ -1290,12 +1290,6 @@ qemuCheckDiskConfig(virDomainDiskDefPtr disk,
|
||||
if (qemuCheckDiskConfigBlkdeviotune(disk, qemuCaps) < 0)
|
||||
return -1;
|
||||
|
||||
if (virDiskNameToIndex(disk->dst) < 0) {
|
||||
virReportError(VIR_ERR_INTERNAL_ERROR,
|
||||
_("unsupported disk type '%s'"), disk->dst);
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (disk->wwn) {
|
||||
if ((disk->bus != VIR_DOMAIN_DISK_BUS_IDE) &&
|
||||
(disk->bus != VIR_DOMAIN_DISK_BUS_SCSI)) {
|
||||
|
Loading…
Reference in New Issue
Block a user