http://www.perlmonks.org?node_id=837146


in reply to fsyncing directories

I wonder what your objective is. For a thought provoking discussion (not all happy thoughts, unfortunately) you might have a look at https://bugs.edge.launchpad.net/ubuntu/+source/linux/+bug/317781 - you might skim through to entry 45 by Theodore Ts'o. In short, not even sync, much less fsync, is adequate for ensuring your data is written to disk and reliably retrievable, though both/either might reduce your risk.