1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
samba-mirror/source4
Jeremy Allison c324b9f03f s4: torture: Add a new lock test to show that the Samba SMB1 multi-lock implementation is (currently) correct.
Needed as there was a proposal to re-architect
our multi-lock to dispense with lock order precedence,
which isn't how Windows does it (unfortunately,
as the new code would have been cleaner :-).
Tested against the Win2k12 SMB1 implementation.

This test is designed to show that
lock precedence on the server is based
on the order received, not on the ability
to grant. For example:

A blocked lock request containing 2 locks
will be satified before a subsequent blocked
lock request over one of the same regions,
even if that region is then unlocked. E.g.

(a) lock 100->109, 120->129 (granted)
(b) lock 100->109, 120-129 (blocks)
(c) lock 100->109          (blocks)
(d) unlock 100->109

lock (c) will not be granted as lock (b)
will take precedence.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>

Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Tue Jul  8 10:16:59 CEST 2014 on sn-devel-104
2014-07-08 10:16:59 +02:00
..
auth s4-auth: Do not override the NT_STATUS_NOT_IMPLEMENTED error for winbindd 2014-07-04 02:52:35 +02:00
build/pasn1
cldap_server s3/s4: smbd, rpc, ldap, cldap, kdc services. 2014-06-07 01:01:43 +02:00
client s4:client: fix some compiler warnings 2014-02-13 11:54:13 +01:00
cluster s4:cluster: use DBWRAP_LOCK_ODER_NONE for local_db_tmp_open() 2014-02-07 16:06:07 +01:00
dns_server s3/s4: smbd, rpc, ldap, cldap, kdc services. 2014-06-07 01:01:43 +02:00
dsdb Order switch statements 2014-07-07 07:47:44 +02:00
echo_server s4:echo_server fix compiler warnings 2013-12-12 14:21:28 -08:00
heimdal heimdal: Only indicate successful authentication after successful authz 2014-04-02 17:12:47 +02:00
heimdal_build Remove special nss_wrapper code 2014-04-17 14:56:06 +02:00
include Replace all uses of setXX[ug]id() and setgroups with samba_setXX[ug]id() calls. 2012-06-28 17:15:16 -07:00
kdc s3/s4: smbd, rpc, ldap, cldap, kdc services. 2014-06-07 01:01:43 +02:00
ldap_server s3/s4: smbd, rpc, ldap, cldap, kdc services. 2014-06-07 01:01:43 +02:00
lib s4-messaging: Make header guard less generic 2014-06-04 03:22:26 +02:00
libcli libsmb: Put the "smb2_lease" struct into idl 2014-06-12 03:34:41 +02:00
libnet Order switch statements 2014-07-07 07:47:44 +02:00
librpc librpc/idl: Merge wbint.idl with winbind.idl so we can forward IRPC requests to internal winbind calls 2014-06-11 10:18:26 +02:00
nbt_server s4:nbt_server/wins: make use explicit use of the top level event context 2014-05-13 00:08:12 +02:00
ntp_signd build: Build with system md5.h on OpenIndiana 2013-06-19 21:32:36 +02:00
ntptr spoolss: make spoolss deal with ndr64 SetForm by using proper container object. 2013-01-17 17:11:37 +01:00
ntvfs s4-ntfs: Improve uid check in wrapper mode. 2014-04-17 14:56:05 +02:00
param s4:param/tests: add missing #include "torture/local/proto.h" 2014-04-02 09:03:45 +02:00
rpc_server Use GUID_equal in a few places 2014-06-10 19:19:13 +02:00
script lib/param: generate the param_functions.h containing the prototypes 2014-02-12 13:17:13 +13:00
scripting s4:samba_kcc: Use 'dburl' passed from command line rather than lp.samdb_url() 2014-04-22 23:34:15 +02:00
selftest selftest: Make the wbinfo userinfo tests work properly with the qualified name 2014-07-04 02:52:35 +02:00
setup selftest: make blackbox_setpassword.sh test run independently 2014-04-02 17:12:45 +02:00
smb_server s4:smb_server/smb: fix invalid pointer type warnings in negprot.c 2014-04-02 09:03:44 +02:00
smbd s4:service_task: explicitly use dcerpc_binding_handle_set_sync_ev() for irpc 2014-05-13 00:08:12 +02:00
torture s4: torture: Add a new lock test to show that the Samba SMB1 multi-lock implementation is (currently) correct. 2014-07-08 10:16:59 +02:00
utils Typo: s/preceeded/preceded/ 2014-04-14 03:51:15 +02:00
web_server s4:lib/socket: simplify iface_list_wildcard() and its callers 2014-03-07 02:18:17 +01:00
winbind winbind: Fix template homedir to match source3 2014-06-04 03:22:26 +02:00
wrepl_server Remove all uses of the NT_STATUS_NOT_OK_RETURN_AND_FREE macro from the codebase. 2014-03-05 16:33:22 +01:00
.clang_complete
.valgrind_suppressions
wscript_build Do not install smbclient4 and nmblookup4 2014-04-15 03:25:13 +02:00