From a034e3d6246d7cb899b6d79088929e0ca91e98d4 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Wed, 23 Oct 2019 11:39:03 +0200 Subject: [PATCH] followup: code cleanup and some comments Signed-off-by: Thomas Lamprecht --- PVE/QemuServer.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index 266c73e8..169f920e 100644 --- a/PVE/QemuServer.pm +++ b/PVE/QemuServer.pm @@ -1898,8 +1898,9 @@ sub print_drivedevice_full { $path = PVE::Storage::path($storecfg, $drive->{file}); } - if($path =~ m/^iscsi\:\/\// && - !qemu_machine_feature_enabled($machine_type, undef, 4, 1)) { + # for compatibility only, we prefer scsi-hd (#2408, #2355, #2380) + if ($path =~ m/^iscsi\:\/\// && + !qemu_machine_feature_enabled($machine_type, undef, 4, 1)) { $devicetype = 'generic'; } }