LXer: ext4 vs fsync, my take
Published at LXer:
There has been a lot of discussion about the ext4 data loss issue, and I see a lot of misconceptions, both about why rename() is used and what guarantees POSIX gives. Iíll try to give the background, and then my opinion on the situation. There are two basic ways to update a file. You can either truncate the old file and write the new contents, or you can write the new contents to a temporary file and rename it over the old file when finished. The rename method have several advantages, partly based on the fact that rename is atomic.
|All times are GMT -5. The time now is 06:53 AM.|