Subject: Re: Crash-resilience of FFS (w/softdeps)
To: David Laight <David.Laight@btinternet.com>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: netbsd-users
Date: 11/29/2001 22:42:47
On Thu, Nov 29, 2001 at 10:18:07AM -0000, David Laight wrote:
> As a software developer, the usual problem is that, after a crash (or
> untidy shutdown) the file you just finished editing has zero size!
> (especially when you are testing loadable device drivers....)

Do you exit the editor, or just write the file ?
If you just write the file then the editor should maybe call flush()
after.
I wonder if a close() of the last descriptor to a file should do an implicit
flush()

--
Manuel Bouyer <bouyer@antioche.eu.org>
--