LWN.net Logo

Fsyncers and curveballs (the Firefox 3 fsync() problem)

Fsyncers and curveballs (the Firefox 3 fsync() problem)

Posted May 27, 2008 16:23 UTC (Tue) by drag (subscriber, #31333)
In reply to: Fsyncers and curveballs (the Firefox 3 fsync() problem) by lmb
Parent article: Fsyncers and curveballs (the Firefox 3 fsync() problem)

You mean something like:
echo "<something>blahlbahlbah</something>" >> file.text


... what a concept ...


(Log in to post comments)

Fsyncers and curveballs (the Firefox 3 fsync() problem)

Posted Jun 20, 2008 20:38 UTC (Fri) by jlokier (subscriber, #52227) [Link]

If you think 'echo "text" >> file' cannot corrupt data before the place you're writing to,
when power is lost at the wrong moment (e.g. laptop runs out of battery), think again.  There
are filesystems and filesystem options that will prevent that, but ext3 with default options
isn't one of them.  Not just theoretically: I have actually seen such corruption in log files.

Copyright © 2012, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds