From 3c6fbfb082361277877a5dd82f7014eff0afaa92 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Sun, 8 Aug 2004 07:10:15 +0000 Subject: - switch to mdadm (instead of raidtools) - create mdadm.conf instead of raidtab - internal {raids} is no more indexed by X for mdX, and so don't have holes anymore - internal {chunk-size} is now a number in KiB - internal {raid} is the raid device name, not the number - various cleanup for raid detection --- perl-install/fs/get.pm | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'perl-install/fs/get.pm') diff --git a/perl-install/fs/get.pm b/perl-install/fs/get.pm index 3ac3ba0b4..cce7b61ec 100644 --- a/perl-install/fs/get.pm +++ b/perl-install/fs/get.pm @@ -15,8 +15,7 @@ sub empty_all_hds() { sub fstab { my ($all_hds) = @_; my @parts = map { partition_table::get_normal_parts($_) } hds($all_hds); - my @raids = grep { $_ } @{$all_hds->{raids}}; - @parts, @raids, @{$all_hds->{loopbacks}}; + @parts, @{$all_hds->{raids}}, @{$all_hds->{loopbacks}}; } sub really_all_fstab { my ($all_hds) = @_; @@ -26,8 +25,7 @@ sub really_all_fstab { sub fstab_and_holes { my ($all_hds) = @_; - my @raids = grep { $_ } @{$all_hds->{raids}}; - hds_fstab_and_holes(hds($all_hds)), @raids, @{$all_hds->{loopbacks}}; + hds_fstab_and_holes(hds($all_hds)), @{$all_hds->{raids}}, @{$all_hds->{loopbacks}}; } sub holes { -- cgit v1.2.1