Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 06 Sep 2005 11:01:30 +0200
From:      Matthias Andree <matthias.andree@gmx.de>
To:        "Poul-Henning Kamp" <phk@phk.freebsd.dk>
Cc:        Don Lewis <truckman@FreeBSD.org>, current@FreeBSD.org
Subject:   Re: patch for ext2fs unmount problem at shutdown
Message-ID:  <m3fysiin85.fsf@merlin.emma.line.org>
In-Reply-To: <64074.1125994865@phk.freebsd.dk> (Poul-Henning Kamp's message of "Tue, 06 Sep 2005 10:21:05 %2B0200")
References:  <64074.1125994865@phk.freebsd.dk>

next in thread | previous in thread | raw e-mail | index | archive | help
"Poul-Henning Kamp" <phk@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?m3fysiin85.fsf>