NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: install/48304: 1st partition's offset is always 1MB



The following reply was made to PR install/48304; it has been noted by GNATS.

From: David Laight <david%l8s.co.uk@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: install/48304: 1st partition's offset is always 1MB
Date: Sun, 13 Oct 2013 16:22:54 +0100

 On Sat, Oct 12, 2013 at 03:30:00PM +0000, sinic%sinic.name@localhost wrote:
 > >Number:         48304
 > >Category:       install
 > >Synopsis:       1st partition's offset is always 1MB
 ...
 > Index: mbr.c
 >                 }
 > -       } else {
 > +       } else if (dlsize > 2048 * 1024 * 128)
 >                 /* Use 1MB offset for large (>128GB) disks */
 > -               if (dlsize > 2048 * 1024 * 128)
 > -                       ptn_alignment = 2048;
 > -                       ptn_0_offset = 2048;
 > -       }
 > +               ptn_alignment = ptn_0_offset = 2048;
 >  }
 
 Expect the correct fix is to add the extra { and } while leaving
 everything else alone.
 
        David
 
 -- 
 David Laight: david%l8s.co.uk@localhost
 


Home | Main Index | Thread Index | Old Index