LWN.net Logo

This is a regression

This is a regression

Posted Mar 14, 2009 13:09 UTC (Sat) by nix (subscriber, #2304)
In reply to: This is a regression by tialaramex
Parent article: Ts'o: Delayed allocation and the zero-length file problem

In any case anyone writing for Unix/Linux should know about and use at least the rename trick for replacing small files. Not doing so causes much worse problems than this one.
I checked at work (a random Unix/Oracle financial shop) some time ago.

One person knew this trick (the only person there other than me who reads standards documents for fun), and not even he had spotted the old oops-better-retry-my-writes-on-EINTR trap. Most people assumed that 'oh, the O_TRUNC and the writes will all get put off until I close the file, won't they?' and hadn't even thought it through that much until I pressed them on it.

J. Random Programmer is much, much less competent than you seem to think.


(Log in to post comments)

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