> I have noticed this behaviour on at least one machine. > If I shutdown the machine with apm power off, the filesystem is dirty and > has to been checked on the next reboot. It seems, the power is cut too fast. > I don't have any problems with reboots. > It seems the drive doesn't have the time to write the superblock back to disk. > > I simply put a DELAY(4000000) in the apm_power_off() routine and the problem > fades away. > Any thoughts on doing this a configurable option? It doesn't break anything, > it only takes a few seconds longer for the machine to power off. > > The drive is a Maxtor Diamond Max (90432D2) 4GB IDE drive in an Asus SP98 > board.
Ok, simple programming project for you. Find a suitable location, and add a SYSCTL node (eg. kern.shutdown.poweroff_delay) and SYSINIT to register an at_shutdown function that delays that long just before the power-off routines are called. Test it, file a PR and gimme the PR number. -- \\ Sometimes you're ahead, \\ Mike Smith \\ sometimes you're behind. \\ m...@smith.net.au \\ The race is long, and in the \\ msm...@freebsd.org \\ end it's only with yourself. \\ msm...@cdrom.com To Unsubscribe: send mail to majord...@freebsd.org with "unsubscribe freebsd-current" in the body of the message