Great Filesystem Quote

From Valerie Aurora on POSIX semantics:

It may not be POSIX, but the programmer’s intent is clear – no one ever, ever wrote “creat(); write(); close(); rename();” and hoped they would get an empty file if the system crashed during the next 5 minutes. That’s what truncate() is for.

:-)

Leave a Reply

Comments will be closed on January 26, 2011.

Bear
Creative Commons Attribution-NonCommercial-ShareAlike 2.5 Australia
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 2.5 Australia.