Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Oct 2013 10:44:01 +0200
From:      CeDeROM <cederom@tlen.pl>
To:        Charles Swiger <cswiger@mac.com>
Cc:        Daniel Feenberg <feenberg@nber.org>, FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: SU+J Lost files after a power failure
Message-ID:  <CAFYkXjnVPsbM5YGNZnARhsZFmrrLcmHuCohEWNnMReUrgvGyJg@mail.gmail.com>
In-Reply-To: <2351E8C5-4FC0-4AE9-AC21-312DA46C0EE8@mac.com>
References:  <525A6831.5070402@gmail.com> <l3gc7e$c91$1@ger.gmane.org> <20131014133953.58f74659@gumby.homeunix.com> <525C1D1C.9050708@gmail.com> <CA+tpaK2Pr2po2cQ1yanQK9+wLp77SYqYHjxiXaU5FfXwHrkGow@mail.gmail.com> <CAFYkXjn-1wTJcQ4a_fyXCvwh9ukt3+djM2qsMeaH1HhVJNvhiA@mail.gmail.com> <525C2554.7080203@pchotshots.com> <CAFYkXjm8y0Br31_pqRZc0sNFbqCNtKHhjeQuiLXkGT2zxSu0GA@mail.gmail.com> <525C2FBC.4080808@cran.org.uk> <alpine.LRH.2.03.1310141447520.16969@nber.org> <2351E8C5-4FC0-4AE9-AC21-312DA46C0EE8@mac.com>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
On Mon, Oct 14, 2013 at 11:04 PM, Charles Swiger <cswiger@mac.com> wrote:
> First, unless you call fsync() before close() and your OS and/or drive ha=
rdware isn't being deceptive when fsync() returns about whether the bits ha=
ve made it to permanent storage, then you might be surprised at just how lo=
ng the unwritten buffers containing the last updates to the file data take =
to get properly flushed to disk.

Nice hint! Thank you! :-)

--=20
CeDeROM, SQ7MHZ, http://www.tomek.cedro.info



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?CAFYkXjnVPsbM5YGNZnARhsZFmrrLcmHuCohEWNnMReUrgvGyJg>