1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-08 21:18:16 +03:00
samba-mirror/source4/libcli/smb2
Steven Danneman 1160d68062 s4/torture: Ported SMB oplock torture tests to SMB2
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.
2009-10-01 14:59:52 -07:00
..
break.c libcli/smb2: add smb2_break() calls 2008-04-19 01:54:44 +02:00
cancel.c implemented client side SMB2 signing 2008-05-30 17:03:54 +10:00
close.c Install public header files again and include required prototypes. 2008-04-02 04:53:27 +02:00
config.mk s4:smb2: Add lease break support for SMB2.1 2009-04-01 08:30:25 -07:00
connect.c s4-resolve: fixed a crash bug on timeout 2009-09-19 08:23:03 -07:00
create.c libcli/smb: move smb2_create_blob code to libcli/smb/ 2009-08-12 19:22:06 +02:00
find.c update some SMB2 find flags 2008-05-15 20:46:10 +10:00
flush.c fixed SMB2 flush call, and added flush to gentest_smb2 2008-05-21 22:51:21 +10:00
getinfo.c s4:libcli/smb2: s/class/info_class 2009-02-02 13:08:39 +01:00
ioctl.c r25554: Convert last instances of BOOL, True and False to the standard types. 2007-10-10 15:07:55 -05:00
keepalive.c r25554: Convert last instances of BOOL, True and False to the standard types. 2007-10-10 15:07:55 -05:00
lease_break.c s4:smb2: Add lease break support for SMB2.1 2009-04-01 08:30:25 -07:00
lock.c fixed SMB2 locking 2008-05-21 22:12:20 +10:00
logoff.c libcli/smb2: sign SMB2 Logoff requests 2008-07-28 14:09:45 +02:00
negprot.c Install public header files again and include required prototypes. 2008-04-02 04:53:27 +02:00
notify.c implemented client side SMB2 signing 2008-05-30 17:03:54 +10:00
read.c fill in unknown fields in SMB2 READ call 2008-04-14 11:31:17 +02:00
request.c s4:libcli/smb2: add smb2_transport_credits_set_charge() to change the CreditsCharge value for the next request 2009-07-15 10:57:32 +02:00
session.c s4:libcli/smb2: fix session setup with raw NTLMSSP 2009-05-20 19:58:37 +02:00
setinfo.c Install public header files again and include required prototypes. 2008-04-02 04:53:27 +02:00
signing.c s4:libcli/smb2: prepare SMB2 signing code for compounded requests 2009-06-09 16:49:29 +02:00
smb2_calls.h s4:libcli/smb2: move SMB2_GETINFO_* flags into smb2_constants.h 2009-08-07 14:56:23 +02:00
smb2.h libcli: move some common SMB and SMB2 stuff into libcli/smb/ 2009-08-12 18:28:32 +02:00
tcon.c make signing per session in the SMB2 client library 2008-06-07 08:30:51 -07:00
tdis.c r25554: Convert last instances of BOOL, True and False to the standard types. 2007-10-10 15:07:55 -05:00
transport.c s4:libcli/smb2: add smb2_transport_credits_set_charge() to change the CreditsCharge value for the next request 2009-07-15 10:57:32 +02:00
util.c s4/torture: Ported SMB oplock torture tests to SMB2 2009-10-01 14:59:52 -07:00
write.c r25554: Convert last instances of BOOL, True and False to the standard types. 2007-10-10 15:07:55 -05:00