Subject: Re: mbrlabel vs. "Device not configured"
To: Hubert Feyrer <hubert.feyrer@informatik.fh-regensburg.de>
From: Manuel Bouyer <bouyer@antioche.lip6.fr>
List: port-i386
Date: 06/24/2003 17:27:44
On Tue, Jun 24, 2003 at 03:09:26PM +0200, Hubert Feyrer wrote:
> On Tue, 24 Jun 2003 cube@cubidou.net wrote:
> > Well, code says so (from wdopen in sys/dev/ata/wd.c):
> >
> >         /* Check that the partition exists. */
> >         if (part != RAW_PART &&
> >             (part >= wd->sc_dk.dk_label->d_npartitions ||
> >              wd->sc_dk.dk_label->d_partitions[part].p_fstype == FS_UNUSED)) {
> >                 error = ENXIO;
> >
> > So yeah, it works for wd0d, but not for wd0g.
> 
> IC... hm, I's prefer to be able to open "unused" partitions.
> I wonder what the effects would be if the check was removed.

This was added on rev 1.93, 1994/10/20. The log explicitely state that
we want to not allow I/O to unused partitions, but don't say why.

--
Manuel Bouyer, LIP6, Universite Paris VI.           Manuel.Bouyer@lip6.fr
     NetBSD: 24 ans d'experience feront toujours la difference
--