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

I think this works only for NFS, doesn't it? When accessing the files from Windows, CIFS or Samba is used on the hosts where this application is running.

-- 
Ronald Fischer <ynnor@mm.st>

Replies are listed 'Best First'.
Re^3: locking over the network (NFSLock)
by tye (Sage) on Feb 02, 2011 at 03:26 UTC

    The man page is quite clear what it does. Did you read it? You only have to read the first paragraph.

    - tye        

      The man page is quite clear what it does. Did you read it? You only have to read the first paragraph.
      Yes, I *did* read it, and it says that this class applies only to locking over NFS (which is not a big surprise, considering the name of the class). That's why I said this class might be nice, but doesn't help me much, because it would require that the file to be locked is accessed via NFS. Or did I misunderstand something in the documentation?

      -- 
      Ronald Fischer <ynnor@mm.st>

        Then I guess you need more practice reading. I don't see the word "only" in the description and what is clearly described in the first paragraph is precisely the approach offered elsewhere in this thread as a generic approach known to work over NFS but not "only NFS": "creating a random local file, hard linking a common file to the local file, and then checking the nlink status".

        The module Name is even documented as "File::NFSLock - perl module to do NFS (or not) locking" where, just to be clear, "or not" indicates that NFS is not required.

        - tye