Subject: CVS commit: basesrc
To: None <source-changes@netbsd.org>
From: Jason R Thorpe <thorpej@netbsd.org>
List: source-changes
Date: 07/06/2000 10:22:44
Module Name:	basesrc
Committed By:	thorpej
Date:		Thu Jul  6 17:22:44 UTC 2000

Modified Files:
	basesrc/sbin/fdisk: fdisk.c

Log Message:
When fetching the disk's hardware geometry, first attempt the
DIOCGDEFLABEL ioctl, then fall back onto the DIOCGDINFO ioctl
if that fails.  This ensures that we will get the actual hardware
geometry info rather than any bogus info that might have been
previously written to the disk's label area.


To generate a diff of this commit:
cvs rdiff -r1.41 -r1.42 basesrc/sbin/fdisk/fdisk.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.