mirror of
https://github.com/webmin/webmin.git
synced 2025-07-20 16:48:46 +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;
|
||||
|
||||
# Iterate over disk devices
|
||||
foreach my $dev (glob("/dev/ada[0-9]"),
|
||||
glob("/dev/ad[0-9]"),
|
||||
glob("/dev/da[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][0-9]"),
|
||||
glob("/dev/da[0-9]"), glob("/dev/da[0-9][0-9]")) {
|
||||
next if (!-r $dev || -l $dev);
|
||||
my $disk = { 'device' => $dev,
|
||||
'prefix' => $dev,
|
||||
|
Reference in New Issue
Block a user