Re: patch for ext2fs unmount problem at shutdown

From: Matthias Andree <matthias.andree_at_gmx.de>
Date: Tue, 06 Sep 2005 11:01:30 +0200
"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 Andree
Received 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