|
|
| P is for Practical | |
| PerlMonks |
Re^2: fsyncing directoriesby betterworld (Curate) |
| on Apr 27, 2010 at 13:26 UTC ( [id://837101]=note: print w/replies, xml ) | Need Help?? |
|
Thank you, this is a nice workaround :) IO::Handle accepts this file handle because it thinks that it is opened for writing. From the strace output it seems that this does in fact fsync the directory. Excerpt:
I don't think the dup() hurts the functionality. Though of course I cannot be sure because I'd have to crash my system repeatedly to see if the effect is the same.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||