Ts'o: Delayed allocation and the zero-length file problem
Posted Mar 13, 2009 15:03 UTC (Fri) by
rsidd (subscriber, #2582)
In reply to:
Ts'o: Delayed allocation and the zero-length file problem by welinder
Parent article:
Ts'o: Delayed allocation and the zero-length file problem
It reminds me of Richard Gabriel's famous "Worse is better" screed.
From Gabriel's article:
The New Jersey guy said that the Unix folks were aware of the [PC-losering] problem, but the solution was for the system routine to always finish, but sometimes an error code would be returned that signaled that the system routine had failed to complete its action. A correct user program, then, had to check the error code to determine whether to simply try the system routine again.
Which, to me, sounds very much the same as saying, like Ted Ts'o, that a correct user program has to fsync() its data and not rely on fclose() actually flushing anything to disk. Also, there are lots of people (like scientific programmers) who write their own short file-handling code without being fanaticallyc "correct" C programmers; buffer overflows and other such bugs are probably OK for them, since their systems are trusted, but data loss really is not OK.
Still, as Gabriel says, Unix won against Lisp systems. And Windows (which was even worse up until Windows ME) won against Unix. So there's food for thought there.
(
Log in to post comments)