summaryrefslogtreecommitdiffstats
path: root/perl-install/raid.pm
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mandriva.org>2009-04-14 16:24:03 +0000
committerPascal Terjan <pterjan@mandriva.org>2009-04-14 16:24:03 +0000
commit5510055af8bca3dac0df8490b0337fab5af43e84 (patch)
tree12efd749b6fb2fc4979fe2d9116e6baed7ead2ec /perl-install/raid.pm
parent790c029f058ac1f565ddd5fffeed9c042ef2e142 (diff)
downloaddrakx-backup-do-not-use-5510055af8bca3dac0df8490b0337fab5af43e84.tar
drakx-backup-do-not-use-5510055af8bca3dac0df8490b0337fab5af43e84.tar.gz
drakx-backup-do-not-use-5510055af8bca3dac0df8490b0337fab5af43e84.tar.bz2
drakx-backup-do-not-use-5510055af8bca3dac0df8490b0337fab5af43e84.tar.xz
drakx-backup-do-not-use-5510055af8bca3dac0df8490b0337fab5af43e84.zip
handle md devices not called md\d+, like md_d127
Diffstat (limited to 'perl-install/raid.pm')
-rw-r--r--perl-install/raid.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/raid.pm b/perl-install/raid.pm
index 79476e956..5252511a0 100644
--- a/perl-install/raid.pm
+++ b/perl-install/raid.pm
@@ -165,10 +165,10 @@ sub inactivate_and_dirty {
}
sub active_mds() {
- map { if_(/^(md\d+)\s*:\s*active/, $1) } cat_("/proc/mdstat");
+ map { if_(/^(md\S+)\s*:\s*active/, $1) } cat_("/proc/mdstat");
}
sub inactive_mds() {
- map { if_(/^(md\d+)\s*:\s*inactive/, $1) } cat_("/proc/mdstat");
+ map { if_(/^(md\S+)\s*:\s*inactive/, $1) } cat_("/proc/mdstat");
}
sub free_mds {