]> git.cworth.org Git - mnemon/commit
Add an fsync (Ted T'so would be pleased)
authorCarl Worth <cworth@cworth.org>
Sun, 22 Mar 2009 22:17:08 +0000 (15:17 -0700)
committerCarl Worth <cworth@cworth.org>
Sun, 22 Mar 2009 22:17:08 +0000 (15:17 -0700)
commitbc28e389a7758c1450a90bf5290ba216d5ea1abe
tree7c5a2764ec27ea1af6ecb139d16fba7b4add8862
parentccc2a54bb3a687478f3fadc0648a603e515e4970
Add an fsync (Ted T'so would be pleased)

We've been using open;write;close;rename for udpating mnemon files,
but with recent discussion of ext4 failure modes, Ted has taught
that the only reliable way of getting the desired results is to
fsync before the close. That fsync does more than we really want
here, but there's no way to ask for a less heavy version of what
we want.
mnemon.c