Subject: Re: listing all active CGD devices?
To: Steven M. Bellovin <smb@cs.columbia.edu>
From: Daniel Carosone <dan@geek.com.au>
List: tech-security
Date: 12/14/2006 07:28:10
--Pgaa2uWPnPrfixyx
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On Wed, Dec 13, 2006 at 02:06:35PM -0500, Steven M. Bellovin wrote:
> Is there any way to list all active cgd devices?  I want to add
> code /etc/apm/suspend to cgdconfig all such devices, but I don't know
> what they are.  'cgdconfig -U' will unconfigure devices listed in a
> given configuration file, but there's no requirement that only the
> standard one be used.  (Yes, it would would work well for me, because I
> know what I have; I'd like a more general solution.)  What I really
> want is an analog to 'vnconfig -l'.  (Yes, I know that I have to do
> 'umount -f' first.)

sysctl hw.disknames

crib from /etc/rc.d/raidframeparity to iterate over all the cgd's

--
Dan.
--Pgaa2uWPnPrfixyx
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (NetBSD)

iD8DBQFFgGJaEAVxvV4N66cRAsGjAJ4k9RFndAnp7lgqUXpX9bmvzCRr9QCgp1Pj
BguMOfDQsYQoXw5nFxHZJNU=
=JB2b
-----END PGP SIGNATURE-----

--Pgaa2uWPnPrfixyx--