summaryrefslogtreecommitdiffstats
path: root/perl-install/partition_table_raw.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2000-02-25 12:33:38 +0000
committerPascal Rigaux <pixel@mandriva.com>2000-02-25 12:33:38 +0000
commit32add8d1612f809a0185db584e0e3e9dd4794c8e (patch)
treea7464229010ff50cc29676772fc71485735c0bbc /perl-install/partition_table_raw.pm
parent5cb4181c9d1488e4025a5358cea6f1e7fda862a9 (diff)
downloaddrakx-32add8d1612f809a0185db584e0e3e9dd4794c8e.tar
drakx-32add8d1612f809a0185db584e0e3e9dd4794c8e.tar.gz
drakx-32add8d1612f809a0185db584e0e3e9dd4794c8e.tar.bz2
drakx-32add8d1612f809a0185db584e0e3e9dd4794c8e.tar.xz
drakx-32add8d1612f809a0185db584e0e3e9dd4794c8e.zip
no_comment
Diffstat (limited to 'perl-install/partition_table_raw.pm')
-rw-r--r--perl-install/partition_table_raw.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/partition_table_raw.pm b/perl-install/partition_table_raw.pm
index d1399f230..a6ccfdf2c 100644
--- a/perl-install/partition_table_raw.pm
+++ b/perl-install/partition_table_raw.pm
@@ -62,7 +62,7 @@ sub adjustEnd($$) {
my $end = $part->{start} + $part->{size};
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->{geom}{cylinders} * cylinder_size($hd) or die "adjustEnd go beyond end of device geometry ($end2 > $hd->{totalsectors})";
$part->{size} = ($end1 - $part->{start} > cylinder_size($hd) ? $end1 : $end2) - $part->{start};
$part->{size} > 0 or die "adjustEnd get a too small partition to handle correctly";
}