summaryrefslogtreecommitdiff
path: root/source4/torture/smb2/oplocks.c
AgeCommit message (Collapse)AuthorFilesLines
2009-10-01s4/torture: rename oplocks.c to oplock.c to match SMB1 file layoutSteven Danneman1-3617/+0
2009-10-01s4/torture: Ported SMB oplock torture tests to SMB2Steven Danneman1-67/+3507
I've ported all applicable SMB oplock torture tests to SMB2, giving us a good base for SMB2 oplock testing. There are several differences between oplocks in SMB and SMB2, mostly because of differences in W2K3 and W2K8. The existing SMB oplock tests all pass against W2K3, but several fail against W2K8. These same tests were failing in SMB2, util I reworked them. BATCH19, BATCH20: In W2K3/SMB a setfileinfo - rename command wouldn't cause a sharing violation or break an existing oplock. It appears that in W2K8/SMB2 a sharing violation is raised. BATCH22: In W2K3/SMB when a second opener was waiting the full timeout of an oplock break, it would receive NT_STATUS_SHARING_VIOLATION after about 35 seconds. This bug has been fixed in W2K8/SMB2 and instead the second opener succeeds. LEVELII500: Added 1 new test checking that the server returns a proper error code when a client improperly replies to a levelII to none break notification. STREAM1: W2K8 now grants oplocks on alternate data streams.
2008-10-24Remove unused include param/param.h.Jelmer Vernooij1-1/+0
2008-05-16private -> private_data for struct smb2_requestAndrew Tridgell1-1/+1
(This used to be commit 67290e0ad69df2f2fe651249c6550b8e32dd641b)
2008-04-19torture/smb2: add a simple SMB2-OPLOCK-BATCH1 testStefan Metzmacher1-0/+178
metze (This used to be commit 914f0ac83bc396be0ca34c43e2ea01ecc1c3b826)