summaryrefslogtreecommitdiffstats
path: root/perl-install/raid.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>1999-11-26 16:48:30 +0000
committerPascal Rigaux <pixel@mandriva.com>1999-11-26 16:48:30 +0000
commit6dbd6e6db0495ddd9774f20f0fb3c239b15e13a2 (patch)
tree334db31f66a0407bb640b510f789e24ea8295dde /perl-install/raid.pm
parenta58f7bf96be7dbd8b4b59a01fc81c31a7a4d6dc0 (diff)
downloaddrakx-backup-do-not-use-6dbd6e6db0495ddd9774f20f0fb3c239b15e13a2.tar
drakx-backup-do-not-use-6dbd6e6db0495ddd9774f20f0fb3c239b15e13a2.tar.gz
drakx-backup-do-not-use-6dbd6e6db0495ddd9774f20f0fb3c239b15e13a2.tar.bz2
drakx-backup-do-not-use-6dbd6e6db0495ddd9774f20f0fb3c239b15e13a2.tar.xz
drakx-backup-do-not-use-6dbd6e6db0495ddd9774f20f0fb3c239b15e13a2.zip
no_comment
Diffstat (limited to 'perl-install/raid.pm')
-rw-r--r--perl-install/raid.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/perl-install/raid.pm b/perl-install/raid.pm
index 8bce51b15..069ac7346 100644
--- a/perl-install/raid.pm
+++ b/perl-install/raid.pm
@@ -103,9 +103,9 @@ sub write($) {
my ($raid, $file) = @_;
local *F;
local $\ = "\n";
+ open F, ">$file" or die _("Can't write file $file");
foreach (grep {$_} @$raid) {
- open F, ">$file" or die _("Can't write file $file");
print F <<"EOF";
raiddev /dev/$_->{device}
raid-level $_->{level}
@@ -122,6 +122,7 @@ EOF
sub make($$) {
my ($raid, $part) = @_;
+ is($_) and make($raid, $_) foreach @{$part->{disks}};
my $dev = devices::make($part->{device});
eval { commands::modprobe(module($part)) };
run_program::run("raidstop", $dev);