News for hackers. Stuff that matters.
Re:File handling in Unix: tips, traps and outright badness by for_xyz on Thursday August 13, 2020 @01:33AM (#24140236)
Does write situation apply to linux as well?

Since 99% of the disk I/O is cached, write either success or fails completely. It's beyond scope of the userspace application to know what and when data arrives on the physical disk. Same applies to Windows as well.

Using direct I/O is different story where this is the correct behaviour.

Re:File handling in Unix: tips, traps and outright badness by iforgotpassword on Thursday August 13, 2020 @02:20AM (#24140490)
NFS. Also the gdb/strace case still holds. It's really rare so many programs get away with not doing it, and then when it happened once in a honeymoon your shrug it off and restart the program.
Re:File handling in Unix: tips, traps and outright badness by saagarjha on Thursday August 13, 2020 @04:31AM (#24141152)
I hope you’re not fixing short writes during your honeymoon…