Since when is not reseting meta-data (like file owner, permissions, acls, creation timestamp, etc) an esoteric situation
Each case by itself might be insignificant, but all cases together are not, IMO:
Assuming the target is not a symlink to a different volume
Assuming you are allowed to create the tmp file
Assuming you are allowed to overwrite an existing file having the same name as your tmp file
Assuming it's ok to reset meta-data, like file owner, permissions, acls, creation timestamp, etc.
Assuming the performance regression due to fsync is ok (request was for atomic, not durable)
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds