diff options
author | Pascal Rigaux <pixel@mandriva.com> | 1999-08-13 14:36:52 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 1999-08-13 14:36:52 +0000 |
commit | 643921ac883be8af9dad01e441028d3564aea565 (patch) | |
tree | 0e72b712472030c8522ef0606147e4e8968cc8a5 /perl-install/partition_table.pm | |
parent | e03f94cb575827ae939c90132604ee5af8545b7a (diff) | |
download | drakx-643921ac883be8af9dad01e441028d3564aea565.tar drakx-643921ac883be8af9dad01e441028d3564aea565.tar.gz drakx-643921ac883be8af9dad01e441028d3564aea565.tar.bz2 drakx-643921ac883be8af9dad01e441028d3564aea565.tar.xz drakx-643921ac883be8af9dad01e441028d3564aea565.zip |
no_comment
Diffstat (limited to 'perl-install/partition_table.pm')
-rw-r--r-- | perl-install/partition_table.pm | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/perl-install/partition_table.pm b/perl-install/partition_table.pm index a4bb4bbb8..861c657e2 100644 --- a/perl-install/partition_table.pm +++ b/perl-install/partition_table.pm @@ -118,9 +118,11 @@ sub adjustStart($$) { sub adjustEnd($$) { my ($hd, $part) = @_; my $end = $part->{start} + $part->{size}; - - $end = round_down($end, cylinder_size($hd)); - $part->{size} = $end - $part->{start}; + my $end2 = round_down($end, cylinder_size($hd)); + unless ($part->{start} < $end2) { + $end2 = round_up($end, cylinder_size($hd)); + } + $part->{size} = $end2 - $part->{start}; } sub adjustStartAndEnd($$) { &adjustStart; |