diff options
author | Anssi Hannula <anssi@mageia.org> | 2011-08-06 22:34:01 +0000 |
---|---|---|
committer | Anssi Hannula <anssi@mageia.org> | 2011-08-06 22:34:01 +0000 |
commit | a9026e9e0f8712029c9e34469030bcb42bd4b071 (patch) | |
tree | 5bcc9682110cf566a96b92a82a4a4e9191f4e90a /perl-install/partition_table | |
parent | f5b09c7842d64245fca229e6b2d39289a3d3e26e (diff) | |
download | drakx-backup-do-not-use-a9026e9e0f8712029c9e34469030bcb42bd4b071.tar drakx-backup-do-not-use-a9026e9e0f8712029c9e34469030bcb42bd4b071.tar.gz drakx-backup-do-not-use-a9026e9e0f8712029c9e34469030bcb42bd4b071.tar.bz2 drakx-backup-do-not-use-a9026e9e0f8712029c9e34469030bcb42bd4b071.tar.xz drakx-backup-do-not-use-a9026e9e0f8712029c9e34469030bcb42bd4b071.zip |
partition_table: align partitions to 1MB boundaries to avoid
performance issues with drives with 4k physical sectors (mga#1215)
Diffstat (limited to 'perl-install/partition_table')
-rw-r--r-- | perl-install/partition_table/raw.pm | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/perl-install/partition_table/raw.pm b/perl-install/partition_table/raw.pm index 7659a390b..ed89595b3 100644 --- a/perl-install/partition_table/raw.pm +++ b/perl-install/partition_table/raw.pm @@ -73,20 +73,9 @@ sub last_usable_sector { sub max_partition_start { 1e99 } sub max_partition_size { 1e99 } -#- default method for starting a partition, only head size or twice -#- is allowed for starting a partition after a cylinder boundarie. -sub adjustStart($$) { - my ($hd, $part) = @_; - my $end = $part->{start} + $part->{size}; +#- default method for starting a partition +sub adjustStart($$) {} - if (cylinder_size($hd)) { - $part->{start} = round_up($part->{start}, - $part->{start} % cylinder_size($hd) < 2 * $hd->{geom}{sectors} ? - $hd->{geom}{sectors} : cylinder_size($hd)); - $part->{size} = $end - $part->{start}; - $part->{size} > 0 or die "adjustStart get a too small partition to handle correctly"; - } -} #- adjusting end to match a cylinder boundary, two methods are used and must #- match at the end, else something is wrong and nothing will be done on #- partition table. |