summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-04-30 09:03:58 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-04-30 09:03:58 +0000
commitebf781611af8b3be1e02b11a263cbc1164cbc0fe (patch)
tree6ff0dbd9cc019426cc787a961c9a96eda12c453b
parentcc44dcf6ac25fc7dd4279cd473b746bd793081d7 (diff)
downloaddrakx-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)
-rw-r--r--perl-install/partition_table.pm2
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 {