Subject: Re: swap on cgd(4)
To: David Brownlee <>
From: Roland Dowdeswell <>
List: tech-kern
Date: 04/17/2003 17:04:12
On 1050604848 seconds since the Beginning of the UNIX epoch
David Brownlee wrote:

>	How about an option to disklabel to create a single partition
>	spanning the given device with the specified type.
>	Eg:	disklabel -g cgd0 a swap
>	could be useful for autogenerated vnd devices and similar.
>	(though it may make sense to fail if there are any other non
>	raw partitions in existance on the device :)

Well, that might be an interesting option to disklabel but I don't
think that it is enough for my problem.  I'd like for it to be very
easy for things to ``just boot'' using rc.d and a couple of config
files.  So, right now with cgd it will parse /etc/cgd/cgd.conf to
grab the list of devices to configure and just do it.  Any solution
should be basically as simple.  So, if we decide to actually put
a label on the disk then it may have to become an option in the
cgd parameters file.  But this means that it should also become a
command line option to cgdconfig(8).

That's why I like the first two solutions a bit better: in the
absence of a disklabel having at least one in the default label on
which swap can be initiated would be good.

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