4 ms·
guilty of #2. I'll spend part of this afternoon putting in fsyncs(). Pseudo related: I wish I could have anonymous temporary files and associate them with a na
by jws 18y ago
guilty of #2. I'll spend part of this afternoon putting in fsyncs().
Pseudo related: I wish I could have anonymous temporary files and associate them with a name later. Temporary name handling is just bugs waiting to happen. Even if you do it securely, how many programmers have a way of cleaning up spurious debris that might be left after an inelegant termination?
- jws 18y agoThe first application I went to fix is in PHP, there does not seem to be an fsync() call in PHP. I may not succeed this afternoon.
- deleted 18y ago[deleted]
- tptacek 18y agoYou create secure temp files with mkstemp(). It's built into the standard C library. Mad respect to Ts'o, but most Unix apps --- regardless of what he thinks of the developers --- don't do this fsync dance. There isn't an epidemic of corrupted files because of it. And there have been notable cases where syncing has caused calamitous performance problems; for instance, look up what the Apple developers did to sqlite.