/[fai]/branches/experimental/patches/setup-storage_hardcode-63-sectors
ViewVC logotype

Contents of /branches/experimental/patches/setup-storage_hardcode-63-sectors

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6286 - (show annotations) (download)
Fri Feb 11 10:29:15 2011 UTC (2 years, 4 months ago) by jblache
File size: 1054 byte(s)
Not too sure why the MBR space reservation got removed, looks
like it better stay in; feel free to revert if I'm wrong.
1 2010-11-04 Michael Tautschnig <mt@debian.org>
2
3 * setup-storage/Sizes.pm: Do not rely on bios_sectors_per_track information
4 for computing the start location of first partition, always use 63 sectors
5 gap. Thanks Mathieu Alorent for extensive testing.
6 Index: trunk/lib/setup-storage/Sizes.pm
7 ===================================================================
8 --- trunk.orig/lib/setup-storage/Sizes.pm 2011-02-11 11:27:26.008342021 +0100
9 +++ trunk/lib/setup-storage/Sizes.pm 2011-02-11 11:27:36.676344640 +0100
10 @@ -650,9 +650,9 @@
11 my $next_start = 0;
12
13 if ($FAI::configs{$config}{disklabel} eq "msdos") {
14 - # on msdos disk labels, the first partitions starts at head #1
15 - $next_start = $current_disk->{bios_sectors_per_track} *
16 - $current_disk->{sector_size};
17 + # on msdos disk labels, the first partitions starts at head #1; well,
18 + # enforce a 63-sectors-per-track layout
19 + $next_start = 63 * $current_disk->{sector_size};
20 $min_req_total_space += $next_start;
21
22 # the MBR requires space, too

  ViewVC Help
Powered by ViewVC 1.1.5