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


in reply to Re^3: locking over the network
in thread locking over the network

Perl's link works on an SMB mount of an NTFS volume (for non-ancient versions of Perl and non-ancient Windows operating systems).

I'd be more worried about getting the link count. That is a surprisingly complex and expensive operation under NTFS, as I understand it. But simplistic testing shows that it works okay using native Win32 Perl and Cygwin Perl to a NTFS volume over SMB.

- tye        

Replies are listed 'Best First'.
Re^5: locking over the network (SMB link)
by rowdog (Curate) on Feb 02, 2011 at 17:30 UTC

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

      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