Subject: Re: Odd ccd(4) problem
To: Tom I Helbekkmo <tih@hamartun.priv.no>
From: Jason Thorpe <thorpej@nas.nasa.gov>
List: current-users
Date: 09/06/1995 09:00:55
On Mon, 4 Sep 1995 06:42:28 +0200 (MET DST)
Tom I Helbekkmo <tih@Hamartun.Priv.NO> wrote:
> Might be the same problem I had; it turns out that the partitions that
> you build your concatenated disk device from must not be marked "unused"
> in their native disks' labels. This "device not configured" is the way
> ccdconfig informs you of this condition... :-)
Actually, ccdconfig is just reporting the value of `errno' it received
from the open() call. For example, the bit of code in sdopen() that
returns this is:
/* Check that the partition exists. */
if (part != RAW_PART &&
(part >= sd->sc_dk.dk_label.d_npartitions ||
sd->sc_dk.dk_label.d_partitions[part].p_fstype == FS_UNUSED)) {
error = ENXIO;
goto bad;
}
--------------------------------------------------------------------------
Jason R. Thorpe thorpej@nas.nasa.gov
NASA Ames Research Center Home: 408.866.1912
NAS: M/S 258-6 Work: 415.604.0935
Moffett Field, CA 94035 Pager: 415.428.6939