Subject: Re: how to bring a mounted filesystem to an almost clean state?
To: Greywolf <greywolf@starwolf.com>
From: Bill Studenmund <wrstuden@netbsd.org>
List: tech-kern
Date: 02/24/2003 11:09:24
On Sun, 16 Feb 2003, Greywolf wrote:
> On Sun, 16 Feb 2003, David Young wrote:
>
> [DY: > I find myself wanting to do this for a different reason -- I want to
> [DY: > assure on system sleep (think APM or ACPI suspends) that all file
> [DY: > systems are synced cleanly.
>
> Sounds like what you want to do is remount the filesystems RO just before
> going to sleep, except that has the bad tendency to vgone() anything
> that's open RW.
I think instead you want to mount it write-defered, a state we don't have
yet. :-) The difference is that it's ok to be open r/w, but if you start
to do something that will update metadata, you block until "write-defered"
is cleared.
Hmmm.. It might be ok to ignore certain updates in this case, rather than
defering them. Like you may well want to keep reads working, and just
throw away the atime change - implicitly set noatime and nodevtime.
Take care,
Bill