diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2007-09-18 10:37:15 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2007-09-18 10:37:15 +0000 |
commit | fff307ac3e81281d98fa33c078264cbb7812f237 (patch) | |
tree | e4482697d105584deae6cb390712d722db30fb8a /perl-install/partition_table.pm | |
parent | e31295b058b23831d5ceced25adc058df97704d3 (diff) | |
download | drakx-fff307ac3e81281d98fa33c078264cbb7812f237.tar drakx-fff307ac3e81281d98fa33c078264cbb7812f237.tar.gz drakx-fff307ac3e81281d98fa33c078264cbb7812f237.tar.bz2 drakx-fff307ac3e81281d98fa33c078264cbb7812f237.tar.xz drakx-fff307ac3e81281d98fa33c078264cbb7812f237.zip |
create pt_info_to_primary() out of partition_table::read_one()
Diffstat (limited to 'perl-install/partition_table.pm')
-rw-r--r-- | perl-install/partition_table.pm | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/perl-install/partition_table.pm b/perl-install/partition_table.pm index 7f309d329..08d9d5814 100644 --- a/perl-install/partition_table.pm +++ b/perl-install/partition_table.pm @@ -255,14 +255,7 @@ sub read_one($$) { ($pt, $info) = $hd->read_one($sector); } - my @extended = $hd->hasExtended ? grep { isExtended($_) } @$pt : (); - my @normal = grep { $_->{size} && !isEmpty($_) && !isExtended($_) } @$pt; - my $nb_special_empty = int(grep { $_->{size} && isEmpty($_) } @$pt); - - @extended > 1 and die "more than one extended partition"; - - put_in_hash($_, hd2minimal_part($hd)) foreach @normal, @extended; - { raw => $pt, extended => $extended[0], normal => \@normal, info => $info, nb_special_empty => $nb_special_empty }; + partition_table::raw::pt_info_to_primary($hd, $pt, $info); } sub read { |