Re: gnome-vfs and file locking



Ian McKellar wrote:

> On Thu, Aug 31, 2000 at 05:40:14PM +0200, Dietmar Maurer wrote:
> > I wonder how we can implement file locking for gnome. What if we
> > extend the GnomeVFSMethod with lock and unlock functions:
> >
> > GnomeVFSResult lock (GnomeVFSMethod *method,
> >                      GnomeVFSMethodHandle *method_handle,
> >                      gboolean shared);
> >
> > GnomeVFSResult unlock (GnomeVFSMethod *method,
> >                        GnomeVFSMethodHandle *method_handle);
> >
> We've been discussing this a bit in relation to WebDAV locking. WebDAV
> locking is much richer including timeouts, read/write locks, lock querying,
> etc. What does your application need locking for?

I am thinking about bonobo (just trying to make libefs a native gnome-vfs
module). Bonobo needs locking when someone opens a document.

I think timeouts should be handled by the application (the lock
method should not block).

shared means read-lock, not shared is a write-lock.

lock querying can be done through get_info

what else do you need?






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]