kernel support for open share modes

Jeremy Allison jra at
Mon Feb 7 17:54:05 GMT 2005

On Sun, Feb 06, 2005 at 10:55:56AM -0500, David Collier-Brown wrote:
>  Out of sheer unadulterated curiosity, is there a reason for
> using flock on Linux and not on other Unixes?  I do recollect 
> the O(n^4) problem on Solaris (:-)), but wonder if other 
> Unices had bad behaviors as well.

It's not a normal flock call. It's a special interface into
the kernel just for this purpose. I don't think other UNIXes
have the "LOCK_MAND" constant. :-).


More information about the samba-technical mailing list