Re: FOPS needs Shutdown SIG Hook!!!

From: Andre Hedrick (andre@linux-ide.org)
Date: Mon Jun 05 2000 - 05:26:48 EST


On Sun, 4 Jun 2000, Alan Cox wrote:

> > Regardless of my need for this, it would be useful for all devices.
> > This would remove the need of special scripts to do any special device
> > cleanups before shutdown/reboot......
>
> The kernel flushes all its blocks, and you get told your block device
> is being closed so you can act then. You can also hook the reboot notifier
> for final reboot stuff

I am not talking about the kernel buffers.
I am referring to the buffer cache on the disks. There will be a need to
flush/force write completion of data to the disk before power down if I
enable the intelligent write-caching in the hardware.

Do if something exists, what do I need look for or hook to issue flush
cache during a halt/reboot event?

Andre Hedrick
The Linux ATA/IDE guy

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Jun 07 2000 - 21:00:20 EST