Subject: Re: raidframe, cgd and parity errors
To: None <>
From: Eric Haszlakiewicz <>
List: tech-kern
Date: 05/05/2005 12:20:38
On Wed, May 04, 2005 at 03:13:22PM +0200, Alan Barrett wrote:
> Why doesn't the shutdownhook mechanism (in kern_subr.c) work for
> unconfiguring cgd/vnd/raidframe/swap/mounts/whatever in the correct
> order?  Are the drivers simply failing to register appropriate hooks, or
> does the mechanism need to be extended to allow stuff that's currently
> impossible?

	The only driver in dev/*.c that does shutdownhooks is ld.c, which
uses it to flush all ld devices (multiple times if there's more than
one ld!)  dev/ata/wd.c also uses it to flush the disk.
dev/cgd.c doesn't do anything like that, so maybe adding the equivalent
of "cgdconfig -u" would help.  Other devices, like ccd or vnd, should
probably do the same thing too.  vnd even has an unused vndshutdown()
that could probably be plugged right in to a shutdownhok_establish()