|laziness, impatience, and hubris|
Delaying NFS writesby ZlR (Chaplain)
|on Dec 10, 2010 at 13:52 UTC||Need Help??|
ZlR has asked for the
wisdom of the Perl Monks concerning the following question:
I'm trying to do consistent writes to a NFS folder that can go offline for maybe 30 seconds while i'm writing in it. I tried different things and ended with the following code :
I also tried without closing the filehandle, just repeating the if (print "...) until it's ok, but in both versions i still end up losing some data ! That is, it seems there's a delay between the moment the nfs folder becomes unavailable and the moment the OS (and my script) become aware of it.
Is there a specific way to handle writes to nfs folders ?
Thanks for your advice !