Subject: Re: port-i386/269: buglet in [i386] /sys/scsi/sd.c
To: None <mycroft@gnu.ai.mit.edu>
From: John Brezak <brezak@apollo.hp.com>
List: netbsd-bugs
Date: 05/30/1994 11:47:58
> 
> You have not demonstrated that there is actually a bug, and your proposed
> `fix' for sdopen() will make it impossible to open partitions which are
> marked as `used'.
> 
The first part of the proposed fix is indeed bogus. I had a look again this
morning. That is why I said "proposed" in the mail...

The problem is that you can't create a disklabel on a 'fresh' SCSI disk (using
the default label supplied by the driver) and be able to newfs anything
other that the 'd' partition.

Here are the steps:
	disklabel -W sd2
	disklabel -e -r sd2
	[ Add a few partitions ]
	newfs /dev/rsd2a
	[ fails from ENXIO in sdopen ]

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 John Brezak                    UUCP:     uunet!apollo.hp!brezak
 Hewlett Packard/Apollo         Internet: brezak@ch.hp.com
 300 Apollo Drive               Phone:    (508) 436-4915
 Chelmsford, Massachusetts      Fax:      (508) 436-5122


------------------------------------------------------------------------------