Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Jul 1998 10:04:44 -0700
From:      Mike Smith <mike@smith.net.au>
To:        Jacques Vidrine <n@nectar.com>
Cc:        hackers@FreeBSD.ORG
Subject:   Re: swapon, ccd: device not configure, eh what? 
Message-ID:  <199807261704.KAA10816@antipodes.cdrom.com>
In-Reply-To: Your message of "Sun, 26 Jul 1998 11:17:45 CDT." <199807261617.LAA08436@bone.nectar.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
> -----BEGIN PGP SIGNED MESSAGE-----
> 
> On 26 July 1998 at 1:09, Mike Smith <mike@smith.net.au> wrote:
> > Never attempt to swap on the "whole disk".
> 
> Can I disklabel a ccd? I didn't think that I could, for some
> reason.

Yup.  This stuff gets better when SLICE comes into the picture, and you 
can disklable it, put an MBR inside each of the partitions, then 
disklabel the slices inside those, etc. 8)

> > And why on earth do you want to swap on a ccd?  Just swap onto its 
> > components individually, and take advantage of the swap interleave.
> 
> Oh, just for the hell of it.  Because there is a CCDF_SWAP flag.
> To see if it worked as documented. etc.
> 
> If it doesn't work, it needs to be fixed or ``undocumented''.

It's not really documented (as far as I can see).  The CCDF_SWAP flag 
is somewhat ambiguous though, yes.

The real issue is that dev/ccd/ccd.c:ccdsize() returns -1 for 
partitions that do not have type == FS_SWAP, so you can't swap on 
something that's not marked as a swap partition, and that includes the 
'c' partition in the case where there is no disklabel on the volume.



-- 
\\  Sometimes you're ahead,       \\  Mike Smith
\\  sometimes you're behind.      \\  mike@smith.net.au
\\  The race is long, and in the  \\  msmith@freebsd.org
\\  end it's only with yourself.  \\  msmith@cdrom.com



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199807261704.KAA10816>