kernel support for open share modes
David Collier-Brown
davec-b at rogers.com
Sun Feb 6 15:55:56 GMT 2005
On Fri, Feb 04, 2005 at 02:26:23PM -0500, J. Bruce Fields wrote:
>>I'm interested because we'd like to support something similar for NFSv4,
>>and it doesn't seem that existing kernel support is sufficient to do it
>>correctly.
>>
>>This looks like a hard problem, but I'd be curious whether anyone had
>>thought about it and had any ideas.
Jeremy Allison wrote:
> In Linux Samba makes a kernel call to flock to tell the kernel about
> Samba-related deny modes, but only on Linux. Look for the kernel_flock
> code in smbd/open.c. Samba handles deny modes in memory, and they are
> not coordinated with local access.
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.
--dave
--
David Collier-Brown, | Always do right. This will gratify
System Programmer and Author | some people and astonish the rest
davecb at spamcop.net | -- Mark Twain
More information about the samba-technical
mailing list