Directory fsync
Zhu Han
schumi.han at gmail.com
Fri Sep 23 10:12:02 CDT 2011
I note below words in the manual of fsync:
Calling fsync() does not necessarily ensure that the entry in
the directory containing the file has also reached disk. For that an
explicit fsync() on a file
descriptor for the directory is also needed.
I am wondering is directory sync is essential after below steps if I want to
assure the file can be retrieved after system crash?
1) create file A
2) write file A
3) fsync(file A)
--------------------------------> fsync(parent directory) [Is it essential
to make the inode linked to parent directory?]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://oss.sgi.com/pipermail/xfs/attachments/20110923/279325e2/attachment.htm>
More information about the xfs
mailing list