Subject: Re: mbrlabel vs. "Device not configured"
To: Manuel Bouyer <bouyer@antioche.lip6.fr>
From: Hubert Feyrer <hubert.feyrer@informatik.fh-regensburg.de>
List: port-i386
Date: 06/24/2003 22:49:42
On Tue, 24 Jun 2003, Manuel Bouyer 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.

Hum. Maybe Charles can enlighten us?


 - Hubert

-- 
Want to get a clue on IPv6 but don't know where to start? Try this:
* Basics -> http://www.onlamp.com/pub/a/onlamp/2001/05/24/ipv6_tutorial.html
* Setup  -> http://www.onlamp.com/pub/a/onlamp/2001/06/01/ipv6_tutorial.html
Of course with your #1 IPv6 ready operating system -> http://www.NetBSD.org/