diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2007-04-30 09:03:58 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2007-04-30 09:03:58 +0000 |
commit | ebf781611af8b3be1e02b11a263cbc1164cbc0fe (patch) | |
tree | 6ff0dbd9cc019426cc787a961c9a96eda12c453b /perl-install/partition_table.pm | |
parent | cc44dcf6ac25fc7dd4279cd473b746bd793081d7 (diff) | |
download | drakx-ebf781611af8b3be1e02b11a263cbc1164cbc0fe.tar drakx-ebf781611af8b3be1e02b11a263cbc1164cbc0fe.tar.gz drakx-ebf781611af8b3be1e02b11a263cbc1164cbc0fe.tar.bz2 drakx-ebf781611af8b3be1e02b11a263cbc1164cbc0fe.tar.xz drakx-ebf781611af8b3be1e02b11a263cbc1164cbc0fe.zip |
use ->last_usable_sector instead of {totalsectors} so that resizing a
partition doesn't propose a partition size bigger than what creating a
partition propose (#21709)
Diffstat (limited to 'perl-install/partition_table.pm')
-rw-r--r-- | perl-install/partition_table.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/partition_table.pm b/perl-install/partition_table.pm index 28278e1b3..632085b26 100644 --- a/perl-install/partition_table.pm +++ b/perl-install/partition_table.pm @@ -588,7 +588,7 @@ sub next { sub next_start { my ($hd, $part) = @_; my $next = &next($hd, $part); - $next ? $next->{start} : $hd->{totalsectors}; + $next ? $next->{start} : $hd->last_usable_sector; } sub load { |