From owner-freebsd-hackers Sun Jul 26 10:05:41 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA10924 for freebsd-hackers-outgoing; Sun, 26 Jul 1998 10:05:41 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from antipodes.cdrom.com (castles247.castles.com [208.214.165.247]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA10919 for ; Sun, 26 Jul 1998 10:05:38 -0700 (PDT) (envelope-from mike@antipodes.cdrom.com) Received: from antipodes.cdrom.com (localhost [127.0.0.1]) by antipodes.cdrom.com (8.8.8/8.8.5) with ESMTP id KAA10816; Sun, 26 Jul 1998 10:04:44 -0700 (PDT) Message-Id: <199807261704.KAA10816@antipodes.cdrom.com> X-Mailer: exmh version 2.0zeta 7/24/97 To: Jacques Vidrine cc: hackers@FreeBSD.ORG Subject: Re: swapon, ccd: device not configure, eh what? In-reply-to: Your message of "Sun, 26 Jul 1998 11:17:45 CDT." <199807261617.LAA08436@bone.nectar.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 26 Jul 1998 10:04:44 -0700 From: Mike Smith Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > -----BEGIN PGP SIGNED MESSAGE----- > > On 26 July 1998 at 1:09, Mike Smith 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