From ebf781611af8b3be1e02b11a263cbc1164cbc0fe Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Mon, 30 Apr 2007 09:03:58 +0000 Subject: 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) --- perl-install/partition_table.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- cgit v1.2.1