if you want your rename to be safe across a crash/power failure you need to do a fsync.
there have been some hacks added to some filesystems to try and detect this to make it safer, but safer != safe
yes, ext3 let you get away with things like this (at least in the most common case), but no other filesystem on any *nix OS does.
the Unix spec says that renames are atomic, but that's only talking about a running system, not across a crash
Copyright © 2017, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds