From 5e39f59fc6aa05e96221665a43c3ed35582fc5b8 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Wed, 19 Sep 2007 15:34:17 +0000 Subject: - diskdrake : o do not allow partitions bigger than 2TB-1 on DOS MBR, nor partitions starting above 2TB-1 --- perl-install/partition_table.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'perl-install/partition_table.pm') 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; } -- cgit v1.2.1