summaryrefslogtreecommitdiffstats
path: root/perl-install/raid.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2003-01-29 01:14:41 +0000
committerPascal Rigaux <pixel@mandriva.com>2003-01-29 01:14:41 +0000
commit76146269a480fe664fc4a3280dd78c9070496b06 (patch)
tree822e433cfc224ebea802bf1f4aee729b503e6246 /perl-install/raid.pm
parent00723acc13494a6752772d017908b23719a5243d (diff)
downloaddrakx-76146269a480fe664fc4a3280dd78c9070496b06.tar
drakx-76146269a480fe664fc4a3280dd78c9070496b06.tar.gz
drakx-76146269a480fe664fc4a3280dd78c9070496b06.tar.bz2
drakx-76146269a480fe664fc4a3280dd78c9070496b06.tar.xz
drakx-76146269a480fe664fc4a3280dd78c9070496b06.zip
software raid (mdX) can go up to md31
Diffstat (limited to 'perl-install/raid.pm')
-rw-r--r--perl-install/raid.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/perl-install/raid.pm b/perl-install/raid.pm
index ab6fa0fcb..c59bc3021 100644
--- a/perl-install/raid.pm
+++ b/perl-install/raid.pm
@@ -13,6 +13,8 @@ use devices;
use modules;
use fs;
+sub max_nb { 31 }
+
sub nb {
my ($nb) = @_;
first((ref $nb ? $nb->{device} : $nb) =~ /(\d+)/);
@@ -177,6 +179,6 @@ sub is_active {
cat_("/proc/mdstat") =~ /^$dev /m;
}
-sub inactivate_all() { run_program::run("raidstop", devices::make("md$_")) foreach 0..7 }
+sub inactivate_all() { run_program::run("raidstop", devices::make("md$_")) foreach 0..max_nb() }
1;