Subject: Re: kern/22774: there is no way to swapctl -a to a wrongly typed partition
To: Alan Barrett <apb@cequrux.com>
From: Roland Dowdeswell <elric@imrryr.org>
List: netbsd-bugs
Date: 09/13/2003 13:07:04
On 1063468444 seconds since the Beginning of the UNIX epoch
Alan Barrett wrote:
>

>I know I sent a PR about this months ago, but I can't find it now.
>Even a search for "dksubr" fails to find the PR.
>
>Anyway, the appended patch to sys/dev/dksubr.c 
>allows swap to /dev/cgd0d to work.

This isn't how the rest of the disk devices work, though, which is why
I did not do it.  I posted a note about some strategies that could be
taken to tech-kern quite some time back:

	http://mail-index.netbsd.org/tech-kern/2003/04/17/0004.html

No conclusion was reached.

The decision to not allow swap directly to the raw partition is [I
think] quite deliberate, since it would allow typos to destroy the
contents of the disk.  But, as I mentioned in the referenced e-mail,
I think that in the absence of a valid disklabel it would be safe
to allow swapping directly to RAW_PART.

--
    Roland Dowdeswell                      http://www.Imrryr.ORG/~elric/