rah has asked for the wisdom of the Perl Monks concerning the following question:
Does anyone know of a way I can put an exlusive lock on a file in an NFS filesystem, shared by just a couple of nodes. I have two processes on boxes which have the FS mounted. Basically I want the first one there, to win exclusive access to the file.
I have super searched and googled and did come up with File::NFSlock, but the readme is rather terse. It mentions an exclusive mode, but I can't tell if it allows this lock on read. I am going to pull it down tomorrow and test. But I was wondering if any monks have done this. Can it be done?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Exclusive locking of a file on an NFS filesystem
by SarahM (Monk) on Jun 14, 2002 at 12:07 UTC | |
|
Re: Exclusive locking of a file on an NFS filesystem
by Abigail-II (Bishop) on Jun 14, 2002 at 11:17 UTC | |
|
Re: Exclusive locking of a file on an NFS filesystem
by Anonymous Monk on Jun 14, 2002 at 01:30 UTC | |
|
Re: Exclusive locking of a file on an NFS filesystem
by robobunny (Friar) on Jun 14, 2002 at 12:39 UTC | |
|
Re: Exclusive locking of a file on an NFS filesystem
by rah (Monk) on Jun 15, 2002 at 01:14 UTC |