From 45348c1b65f0182564c39f097e062c5526571886 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Sun, 11 Aug 2002 11:15:34 +0000 Subject: cleanup --- perl-install/fsedit.pm | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'perl-install/fsedit.pm') diff --git a/perl-install/fsedit.pm b/perl-install/fsedit.pm index a256fcb2c..766ca9b6c 100644 --- a/perl-install/fsedit.pm +++ b/perl-install/fsedit.pm @@ -569,23 +569,23 @@ sub auto_allocate_raids { my ($all_hds, $suggestions) = @_; my @raids = grep { isRawRAID($_) } get_all_fstab($all_hds) or return; - if (@raids) { - require raid; - my @mds = grep { $_->{hd} =~ /md/ } @$suggestions; - foreach my $md (@mds) { - my @raids_ = grep { !$md->{parts} || $md->{parts} =~ /\Q$_->{mntpoint}/ } @raids; - @raids = difference2(\@raids, \@raids_); - my $nb = raid::new($all_hds->{raids}, @raids_); - my $part = $all_hds->{raids}[$nb]; - - my %h = %$md; - delete @h{'hd', 'parts'}; - put_in_hash($part, \%h); # mntpoint, level, chunk-size, type - raid::updateSize($part); - } + + require raid; + my @mds = grep { $_->{hd} =~ /md/ } @$suggestions; + foreach my $md (@mds) { + my @raids_ = grep { !$md->{parts} || $md->{parts} =~ /\Q$_->{mntpoint}/ } @raids; + @raids = difference2(\@raids, \@raids_); + my $nb = raid::new($all_hds->{raids}, @raids_); + my $part = $all_hds->{raids}[$nb]; + + my %h = %$md; + delete @h{'hd', 'parts'}; + put_in_hash($part, \%h); # mntpoint, level, chunk-size, type + raid::updateSize($part); } } + sub undo_prepare { my ($all_hds) = @_; require Data::Dumper; -- cgit v1.2.1