[pve-devel] [PATCH v5 qemu-server 3/4] drive: Create get_scsi_devicetype
Fiona Ebner
f.ebner at proxmox.com
Mon Nov 20 16:56:39 CET 2023
Am 17.11.23 um 13:17 schrieb Hannes Duerr:
> +
> + # for compatibility only, we prefer scsi-hd (#2408, #2355, #2380)
> + if ($path =~ m/^iscsi\:\/\// &&
> + !min_version($machine_version, 4, 1)) {
min_version is not defined in the Drive.pm module, you need to import it
from PVE::QemuServer::Helpers or you'll get:
Undefined subroutine &PVE::QemuServer::Drive::min_version called
when Perl actually tries to execute it.
> + $devicetype = 'generic';
> + }
> + }
> +
> + return $devicetype;
> +}
> 1;
More information about the pve-devel
mailing list