OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
CVS: cvs.openbsd.org: src

From: Brad Smith (bradcvs.openbsd.org)
Date: Wed Nov 01 2006 - 19:52:08 CST


CVSROOT: /cvs
Module name: src
Changes by: bradcvs.openbsd.org 2006/11/01 18:52:08

Modified files:
        sys/dev/pci : Tag: OPENBSD_4_0 arc.c

Log message:
MFC:
Fix by dlg

well, this is embarassing.

it turns out a drivers detach code isnt called when the machine is shutting
down which meant my bits to stop bgrb and sync the cache werent being
run. without those bits being run the filesystems on these controllers
were never clean on reboot, so we'd always get an fsck.

so now we provide a shutdown hook which does get run on shutdown to sync
the cache properly.

found by claudio

ok dlg