Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Oct 1996 11:18:51 -0700 (PDT)
From:      Bruce Evans <bde>
To:        CVS-committers, cvs-all, cvs-sbin
Subject:   cvs commit:  src/sbin/i386/fdisk fdisk.c
Message-ID:  <199610131818.LAA28987@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
bde         96/10/13 11:18:51

  Modified:    sbin/i386/fdisk  fdisk.c
  Log:
  The dos() function needs a new second argument, containing the size
  of the partition. Only if the size is 0 should the
  special handling of 0 as first argument be triggered.
  
  [This bug caused offset 0 to give C/H/S = 0/0/0 instead of 0/0/1.]
  
  The init_sector0 function needs to decrease the first argument
  to the second call to dos() by one to be consistent with the
  calls to dos() in change_part().
  
  [This bug caused fdisk -i to create bogus partition tables with
  the ending C/H/S value 1 too high.  This usually gives S = 1
  instead of S = maximum, so the geometry guessing in the slice
  code and perhaps in SCSI BIOSes was defeated.]
  
  Submitted by:	Tor Egge <tegge@itea.ntnu.no>
  
  Revision  Changes    Path
  1.11      +13 -10    src/sbin/i386/fdisk/fdisk.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199610131818.LAA28987>