diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2001-10-19 17:56:15 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2001-10-19 17:56:15 +0000 |
commit | 86ae55173b3e628b7f586463c265c43b05ea8f08 (patch) | |
tree | da2762bb8c76f75fc7d86e60723d5a9e3ac1b7a3 | |
parent | 0e215bd9359b82933600adb884b5a71a993a5521 (diff) | |
download | drakx-backup-do-not-use-86ae55173b3e628b7f586463c265c43b05ea8f08.tar drakx-backup-do-not-use-86ae55173b3e628b7f586463c265c43b05ea8f08.tar.gz drakx-backup-do-not-use-86ae55173b3e628b7f586463c265c43b05ea8f08.tar.bz2 drakx-backup-do-not-use-86ae55173b3e628b7f586463c265c43b05ea8f08.tar.xz drakx-backup-do-not-use-86ae55173b3e628b7f586463c265c43b05ea8f08.zip |
(adjustEnd): in case the end is totalsectors, don't adjust since totalsectors / cylinder_size may not be an integer
-rw-r--r-- | perl-install/partition_table_raw.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/perl-install/partition_table_raw.pm b/perl-install/partition_table_raw.pm index 3e84d93f5..f11fd7068 100644 --- a/perl-install/partition_table_raw.pm +++ b/perl-install/partition_table_raw.pm @@ -72,6 +72,7 @@ sub adjustStart($$) { sub adjustEnd($$) { my ($hd, $part) = @_; my $end = $part->{start} + $part->{size}; + $end == $hd->{totalsectors} and return; my $end1 = round_down($end, cylinder_size($hd)); my $end2 = round_up($end - ($hd->{geom}{heads} > 2 ? 2 : 1) * $hd->{geom}{sectors}, cylinder_size($hd)); $end2 <= $hd->{geom}{cylinders} * cylinder_size($hd) or die "adjustEnd go beyond end of device geometry ($end2 > $hd->{totalsectors})"; |