why doesn't the kernel enforce oplocks? (was: Re: [Samba] Re: How Samba let us down)

Ben Johnson ben at blarg.net
Thu Oct 24 18:58:04 GMT 2002


On Thu, Oct 24, 2002 at 06:29:23PM +0000, jra at dp.samba.org wrote:

> POSIX has "mandatory" locks that are kernel enforced. Almost no application
> uses them and they also require permission changes on the file.

hm.  I've never heard of them. time to crack a book.

> If your applications aren't written to cooperate, what are they doing
> accessing the data in the same file ? It's just a disaster waiting to
> happen.

samba and vi aren't written to cooperate for example.  should these be
written to cooperate?  that would mean the authors of each would have to
cooperate.  it seems like it would be easier to have the kernel force
cooperation.

- Ben




More information about the samba-technical mailing list