Subject: bin/4616: disklabel -i should write a label
To: None <gnats-bugs@gnats.netbsd.org>
From: None <billc@warped.com>
List: netbsd-bugs
Date: 12/01/1997 02:28:46
>Number:         4616
>Category:       bin
>Synopsis:       disklabel -i should write a disklabel on a virgin disk.
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Mon Dec  1 02:35:01 1997
>Last-Modified:
>Originator:     William Coldwell
>Organization:
--
William J. Coldwell               r               Warped Communications, Inc.
Executive Vice President   a    a  p     e    ?  1601 Civic Center Dr, Ste 101
Email: billc@warped.com  I  m  W   e !  r  y u   Santa Clara, California 95050
 http://www.warped.com              d  A    o    408.248.WARP FAX:408.347.WARP
>Release:        <NetBSD-current source date> 12/01/97
>Environment:
	
System: NetBSD zero.warped.net 1.3_BETA NetBSD 1.3_BETA (ZERO) #5: Mon Dec 1 02:20:43 PST 1997 billc@zero.warped.net:/local/src/sys/arch/i386/compile/ZERO i386


>Description:
	
	zero# disklabel -i sd2
	partition> W
	Label disk [n]? y
	disklabel: ioctl DIOCWDINFO: No disk label on disk;
	use "disklabel -r" to install initial label
	Label not written
	partition> quit       

>How-To-Repeat:
	 
>Fix:
	
	disklabel should write the in-kernel version (psuedo, whatever)
	disklabel to the drive even if it doesn't have a disklabel.  This
	causes the end-user to have to exit out of this wonderful utility
	and defeats the -i usage.  "W" implies that it will write this
	label.. failing and telling the user to quite and run disklabel
	again is just.. lame, since it's displaying the disklabel it's
	supposed to write _anyway_!

>Audit-Trail:
>Unformatted: