Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

Re^2: Safely create new directory (mkdir, NFS)

by elTriberium (Friar)
on Jul 26, 2012 at 00:17 UTC ( #983756=note: print w/replies, xml ) Need Help??

in reply to Re: Safely create new directory (mkdir, NFS)
in thread Safely create new directory

Thanks, that helps! About your point that there's no atomic "delete the file and create the dir" operation. I understand that, but my point was to just leave the file there. Sure it's a dirty solution, that's why I was looking for better solution. Just using "mkdir" sounds good, if it's atomic then that will do the trick. I saw similar issues with O_EXCL not being guaranteed on older Linux kernels, but it was mentioned that it should be safe from 2.6.5 onwards.
  • Comment on Re^2: Safely create new directory (mkdir, NFS)

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://983756]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2023-05-30 18:28 GMT
Find Nodes?
    Voting Booth?

    No recent polls found