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


in reply to Re^4: locking over the network (SMB link)
in thread locking over the network

Ah, I see now. It sounds like hard links aren't the best solution here. Thanks for clarifying the costs involved.

  • Comment on Re^5: locking over the network (SMB link)

Replies are listed 'Best First'.
Re^6: locking over the network (SMB link)
by tye (Sage) on Feb 02, 2011 at 18:09 UTC

    I wouldn't disqualify hard links. stat itself is surprisingly complex and expensive under Windows Perl and if you haven't just given up on using Windows Perl, then it probably isn't expensive enough to be a show stopper for other uses (since stat gets used willy nilly when using Perl). (stat emulation is so slow that git implemented Windows-specific replacements in order to make a lot of stuff go noticeably faster.)

    - tye