mirror of
https://github.com/webmin/webmin.git
synced 2025-07-21 23:40:34 +00:00
Support systems with more than 10 disks https://sourceforge.net/p/webadmin/bugs/5530/
This commit is contained in:
@ -26,9 +26,9 @@ sub list_disks_partitions
|
|||||||
my @rv;
|
my @rv;
|
||||||
|
|
||||||
# Iterate over disk devices
|
# Iterate over disk devices
|
||||||
foreach my $dev (glob("/dev/ada[0-9]"),
|
foreach my $dev (glob("/dev/ada[0-9]"), glob("/dev/ada[0-9][0-9]"),
|
||||||
glob("/dev/ad[0-9]"),
|
glob("/dev/ad[0-9]"), glob("/dev/ad[0-9][0-9]"),
|
||||||
glob("/dev/da[0-9]")) {
|
glob("/dev/da[0-9]"), glob("/dev/da[0-9][0-9]")) {
|
||||||
next if (!-r $dev || -l $dev);
|
next if (!-r $dev || -l $dev);
|
||||||
my $disk = { 'device' => $dev,
|
my $disk = { 'device' => $dev,
|
||||||
'prefix' => $dev,
|
'prefix' => $dev,
|
||||||
|
Reference in New Issue
Block a user