@Daniel,

Note that if you don't call fsync(), and you hence you don't check the
error returns from fsync(), your application won't be notified about any
possible I/O errors.   So that means if the new file doesn't get written
out due to media errors, the rename may also end up wiping out the
existing file.   This can be an issue with some remote file systems,
like AFS, where you'll miss quota errors unless you fsync() and check
the error returns on both fsync() and close().   But hey, if you don't
care about that, feel free to write your applications any way you want.

-- 
Ext4 data loss
https://bugs.launchpad.net/bugs/317781
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to