r1304: Turns out non-io opens that cause oplock breaks are a *different* set
commit38002bfc1c0981a2dba3f2319624c1ef055a3648
authorJeremy Allison <jra@samba.org>
Wed, 30 Jun 2004 01:35:01 +0000 (30 01:35 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:52:05 +0000 (10 10:52 -0500)
treed2ec3b20bea5c6c74a7afdcefa0591b75119701f
parenta5a3df78531dc5400088e1746d6a7cd29f56a714
r1304: Turns out non-io opens that cause oplock breaks are a *different* set
of desired access flags from those that cause sharing violations.
Oplock breaks are caused by : ~(SYNCHRONIZE_ACCESS|FILE_READ_ATTRIBUTES|FILE_WRITE_ATTRIBUTES)
Sharing violations are caused by : ~(SYNCHRONIZE_ACCESS|READ_CONTROL_ACCESS|FILE_READ_ATTRIBUTES|FILE_WRITE_ATTRIBUTES)
We now pass the torture rename test again.
I still need to work out if subsequent opens will cause sharing violations with an existing open
mode of SYNCHRONIZE_ACCESS|READ_CONTROL_ACCESS|FILE_READ_ATTRIBUTES|FILE_WRITE_ATTRIBUTES;
Jeremy.
source/smbd/open.c