]> git.proxmox.com Git - pve-installer.git/commitdiff
Allow more than 26 SCSI disk devices.
authorWolfgang Link <w.link@proxmox.com>
Mon, 2 Jul 2018 10:05:46 +0000 (12:05 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 2 Jul 2018 10:24:21 +0000 (12:24 +0200)
Some customers have more than 26 devices,
for example, if they use multipath on a DAS box.

In the Linux Documentation admin-guide/devices.txt
is written 256 SCSI disk devices are possible.

Signed-off-by: Wolfgang Link <w.link@proxmox.com>
proxinstall

index db8e638296d006b567951aed29942ef1be5e2adb..8a1476b23bef2bcf535850a38ff74ca5f0d65ecf 100755 (executable)
@@ -623,7 +623,9 @@ sub hd_size {
 sub get_partition_dev {
     my ($dev, $partnum) = @_;
 
-    if ($dev =~ m|^/dev/[hxsev]d[a-z]$|) {
+    if ($dev =~ m|^/dev/sd([a-h]?[a-z]\|i[a-v])$|) {
+       return "${dev}$partnum";
+    } elsif ($dev =~ m|^/dev/[hxev]d[a-z]$|) {
        return "${dev}$partnum";
     } elsif ($dev =~ m|^/dev/[^/]+/c\d+d\d+$|) {
        return "${dev}p$partnum";