On Wed, March 18, 2009 05:08, Joerg Schilling wrote: > The problem in this case is not whether rename() is atomic but whether the > file that replaces the old file in an atomic rename() operation is in a > stable state on the disk before calling rename().
Good, I was hoping somebody saw it that way. People tend to assume that a successful close() guarantees the data written to that file is on disk, and I don't believe that is actually promised by POSIX (though I'm by no means a POSIX rules lawyer) or most other modern systems. -- David Dyer-Bennet, d...@dd-b.net; http://dd-b.net/ Snapshots: http://dd-b.net/dd-b/SnapshotAlbum/data/ Photos: http://dd-b.net/photography/gallery/ Dragaera: http://dragaera.info _______________________________________________ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss