4 ms·Bug #67477: file gone after unexpected reboot1 points by marcodiego 1y agotheamk 1y agoNice to know. It would be nicer to write the new content first, and only then truncate. This way even if the worst happens, there is less data loss.