"Poul-Henning Kamp" <phk_at_phk.freebsd.dk> writes: > PS: Considering power management, sleep/suspend modes etc, it would > make sense to add a "MNT_CLEAN" flag to pass to VOP_FSYNC which > instructed the filesystem to flush everything to disk, and reset > any "dirty" flags on the disk to "clean" but leave the filesystem > mounted. (On subsequent I/O the first thing the filesystem must > do is set the dirty flag again. That way it would be as safe (as > possible) to power a sleeping/suspend machine off. If you have proper cache flushing/synchronization semantics (such as putting an ATA disk to sleep), go right ahead - but woe betide the user whose disk choses to reorder writes and sleep before flushing the whole cache. -- Matthias AndreeReceived on Tue Sep 06 2005 - 07:01:36 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:42 UTC