[PLUG] file locking

Aditya Godbole aag.lists at gmail.com
Mon Jul 20 10:34:06 IST 2009

On Fri, Jul 17, 2009 at 8:48 AM, Vishal Rao<vishalrao at gmail.com> wrote:
>> I am looking at a user level approach, not a programmer level approach.
> For a user level (requires cooperation) approach, assume you have the same
> app sharing files in the same folder, then this app co-operates with other
> instances by always calling for exclusive lock, then NOT working on the file
> until it can gain the lock.

I did not expect to be misunderstood on such a grand scale; let me be
more specific.
If a file (inode) has already been opened, all other calls to 'open'
the file should fail. As simple as that. Is there a way to do this
using either the native filesystem, or using samba?


More information about the Plug-mail mailing list