fsync, rename, O_ATOMIC/O_PONIES

Olaf van der Spek olaf at xwis.net
Fri Mar 2 06:39:37 CST 2012


Hi XFS devs,

I'm a bit late to the party, but I'd like to respond to some comments at 
http://lwn.net/Articles/476263/#Comments
http://lwn.net/Articles/484709/

 > Could any of the fsync advocates post real code that does the atomic 
variant of open, write, close?

 > Hint: it's not possible without tons of regressions.

 > Linux devs should really provide a proper solution (like O_ATOMIC) 
instead of blaming app devs for not doing the impossible.

I'd like to ask:
- Is there a tool to log all unsafe operations?
- What is the *right* way to update a file?

I've asked the last question multiple times, but nobody has been able to 
give me a proper answer.

Greetings,

Olaf



More information about the xfs mailing list