Re: fcntl(F_GETLEASE) semantics??

From: Trond Myklebust
Date: Thu Aug 11 2005 - 14:16:06 EST


to den 11.08.2005 Klokka 22:02 (+0300) skreiv Heikki Orsila:
> On Thu, Aug 11, 2005 at 02:56:59PM -0400, Trond Myklebust wrote:
> > inotify does not give you synchronous notification. It just tells you
> > something has happened after the fact. Not the same thing at all.
>
> Then what could be done for inotify to fit the purpose? SETLEASE is
> still a bad interface for userspace programs because it relies on
> signals and thus can't be conveniently put into shared libraries..

What applications other than the very specialised case of filesystem
servers do you expect will ever want to use it?

The difference between inotify and leases is, as I said, that leases
notify the lease holder synchronously. This allows the notified process
to flush all the cached information _before_ the operation that
triggered the lease notification is executed.

Cheers,
Trond

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/