Windows servers with NTFS allow the SHARING_VIOLATION delay to be switched off

Jeremy Allison jra at samba.org
Fri Apr 12 11:57:55 MDT 2013


On Fri, Apr 12, 2013 at 10:32:54AM -0700, Richard Sharpe wrote:
> On Fri, Apr 12, 2013 at 9:06 AM, Richard Sharpe
> <realrichardsharpe at gmail.com> wrote:
> > On Fri, Apr 12, 2013 at 8:58 AM, Stefan (metze) Metzmacher
> > <metze at samba.org> wrote:
> >> Am 12.04.2013 17:51, schrieb Richard Sharpe:
> >>> Hi folks,
> >>>
> >>> In researching the issue of the 1 second sharing violation delay I found this:
> >>>
> >>> http://support.microsoft.com/kb/150384
> >>
> >> For SMB2 it's always off on windows...
> >
> > How interesting.
> >
> > Also, while reading the code I noticed that there is the 'defer
> > sharing violation' parameter that can be used to switch this off.
> 
> Hmmm, since this test is deep in the open code, doesn't that mean that
> Samba's SMB2 implementation suffers from this problem?
> 
> We should hoist the test to a level where the SMB2 code is not
> affected or have protocol dependent parameters, it seems.

We can always turn off if "conn->sconn->using_smb2" is set.
We already do this for some behaviors in open.


More information about the samba-technical mailing list