From owner-cvs-sbin Sun Oct 13 11:18:57 1996 Return-Path: owner-cvs-sbin Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id LAA29002 for cvs-sbin-outgoing; Sun, 13 Oct 1996 11:18:57 -0700 (PDT) Received: (from bde@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id LAA28987; Sun, 13 Oct 1996 11:18:51 -0700 (PDT) Date: Sun, 13 Oct 1996 11:18:51 -0700 (PDT) From: Bruce Evans Message-Id: <199610131818.LAA28987@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-sbin Subject: cvs commit: src/sbin/i386/fdisk fdisk.c Sender: owner-cvs-sbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk 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 Revision Changes Path 1.11 +13 -10 src/sbin/i386/fdisk/fdisk.c