summaryrefslogtreecommitdiffstats
path: root/perl-install/partition_table.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-09-19 15:34:17 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-09-19 15:34:17 +0000
commit5e39f59fc6aa05e96221665a43c3ed35582fc5b8 (patch)
treef594f516a4b48e97d500540dfff33be2e5081fe1 /perl-install/partition_table.pm
parent0991c940925490069ea3feb2ae4f7d977ab6de84 (diff)
downloaddrakx-backup-do-not-use-5e39f59fc6aa05e96221665a43c3ed35582fc5b8.tar
drakx-backup-do-not-use-5e39f59fc6aa05e96221665a43c3ed35582fc5b8.tar.gz
drakx-backup-do-not-use-5e39f59fc6aa05e96221665a43c3ed35582fc5b8.tar.bz2
drakx-backup-do-not-use-5e39f59fc6aa05e96221665a43c3ed35582fc5b8.tar.xz
drakx-backup-do-not-use-5e39f59fc6aa05e96221665a43c3ed35582fc5b8.zip
- diskdrake :
o do not allow partitions bigger than 2TB-1 on DOS MBR, nor partitions starting above 2TB-1
Diffstat (limited to 'perl-install/partition_table.pm')
-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 5b2d30aaf..590365536 100644
--- a/perl-install/partition_table.pm
+++ b/perl-install/partition_table.pm
@@ -219,7 +219,7 @@ sub get_normal_parts_and_holes {
$hole, $_;
} sort { $a->{start} <=> $b->{start} } grep { !isWholedisk($_) } get_normal_parts($hd);
- push @l, { start => $start, size => $last - $start, %$minimal_hole };
+ push @l, { start => $start, size => min($last - $start, $hd->max_partition_size), %$minimal_hole } if $start < $hd->max_partition_start;
grep { !isEmpty($_) || $_->{size} >= $hd->cylinder_size } @l;
}