Subject: Re: raidframe, cgd and parity errors
To: Eric Haszlakiewicz <>
From: Roland Dowdeswell <>
List: tech-kern
Date: 05/07/2005 12:10:48
On 1115313638 seconds since the Beginning of the UNIX epoch
Eric Haszlakiewicz wrote:

>	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()

To get the ordering right, pseudo disks would need to register not
a generic shutdown hook but rather register a shutdown hook with
the underlying disk or filesystem which the underlying code would
call prior to its own shutdown code.

For devices which do not provide a shutdown registration mechanism,
a pseudo-disk [which needed it] would register a generic shutdown

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