Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2012-06-29 | s3:param: change "server max protocol" to "SMB2" (SMB2_10) | Stefan Metzmacher | 1 | -1/+1 | |
metze | |||||
2012-06-29 | s3:smb2_server: make the logic in smbd_smb2_request_verify_creditcharge() ↵ | Stefan Metzmacher | 1 | -11/+23 | |
simpler We just need a max_charge variable to make the algorithm independent of multi_credit support. metze | |||||
2012-06-29 | s3:smb2_server: simplify smbd_smb2_request_verify_creditcharge() a bit. | Stefan Metzmacher | 1 | -6/+1 | |
A credit charge of 0 is really not a special case, it just means the same as 1. metze | |||||
2012-06-29 | s3:smb2_negprot: support SMB2_CAP_LARGE_MTU on everything but port 139 | Stefan Metzmacher | 1 | -5/+8 | |
In future we'll have other transports like RDMA. This makes NBT (tcp port 139) special instead of port 445. metze | |||||
2012-06-29 | s3:smb2_server: grant extra credits for multi-credit requests | Stefan Metzmacher | 1 | -2/+10 | |
metze | |||||
2012-06-29 | s3:smb2_server: implement credit granting similar to windows | Stefan Metzmacher | 2 | -19/+53 | |
This makes it much easier to compare traces. metze | |||||
2012-06-29 | s3:smb2_server: make sure sequence numbers don't wrap at UINT64_MAX | Stefan Metzmacher | 1 | -2/+17 | |
metze | |||||
2012-06-29 | s3:smb2_server: make sure we don't grant more credits than we allow | Stefan Metzmacher | 2 | -35/+92 | |
If the client hasn't consumed the lowest seqnum, but the distance between lowest and highest seqnum has reached max credits. In that case we should stop granting credits. metze | |||||
2012-06-29 | s3:smb2_server: check the credit_charge against the already granted credits | Stefan Metzmacher | 1 | -7/+12 | |
metze | |||||
2012-06-29 | s3:smb2_server: split out a smb2_validate_sequence_number() function | Stefan Metzmacher | 1 | -40/+77 | |
metze | |||||
2012-06-29 | s3:smb2_server: clear sequence window if we got the lowest sequence id | Stefan Metzmacher | 1 | -2/+2 | |
Otherwise we'll never consume sequence id '0'. metze | |||||
2012-06-29 | s3:smb2_server: fix calculation of the next bitmap_offset | Stefan Metzmacher | 1 | -1/+1 | |
metze | |||||
2012-06-29 | s3:smb2_server: remove unused and confusing ↵ | Stefan Metzmacher | 2 | -8/+4 | |
DEFAULT_SMB2_MAX_CREDIT_BITMAP_FACTOR metze | |||||
2012-06-29 | s3:smb2_server: call smbd_smb2_request_validate() also in ↵ | Stefan Metzmacher | 1 | -0/+6 | |
smbd_smb2_first_negprot() We need to consume message_id 0, for SMB1 negprot starts. metze | |||||
2012-06-29 | s3:smb2_server: start the connection with one credit granted to the client | Stefan Metzmacher | 1 | -1/+1 | |
metze | |||||
2012-06-28 | s3: fine tune and clean up statvfs tests | Björn Jacke | 2 | -9/+8 | |
This should also fix the build on Tru64. Tru64 has a POSIX compliant statvfs() function while most *BSD systems ignore POSIX. Autobuild-User(master): Björn Jacke <bj@sernet.de> Autobuild-Date(master): Thu Jun 28 23:07:23 CEST 2012 on sn-devel-104 | |||||
2012-06-28 | s3: Fix compilation of pthreadpool_sync.c on platforms without pthread.h | Volker Lendecke | 1 | -1/+0 | |
Signed-off-by: Bjoern Jacke <bj@sernet.de> Autobuild-User(master): Björn Jacke <bj@sernet.de> Autobuild-Date(master): Thu Jun 28 16:43:13 CEST 2012 on sn-devel-104 | |||||
2012-06-28 | s3:smbd: change nt_open_pipe() to uint16_t pnum/fnum | Stefan Metzmacher | 1 | -3/+3 | |
This is SMB1 code... metze Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Thu Jun 28 14:47:45 CEST 2012 on sn-devel-104 | |||||
2012-06-28 | s3:smb2_create: add usefull DEBUG() message | Stefan Metzmacher | 1 | -0/+3 | |
All calls which take an file handle have the same, so we should also log it, when we create a handle. metze Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Thu Jun 28 12:41:49 CEST 2012 on sn-devel-104 | |||||
2012-06-28 | s3:smbd/files: fsp->fnum is uint64_t not int! | Stefan Metzmacher | 1 | -3/+3 | |
metze | |||||
2012-06-28 | s3:brlock: s/int/uint64_t for fnum | Stefan Metzmacher | 1 | -1/+1 | |
fsp->fnum and lock->fnum are uint64_t already and we should not truncate the value here. Currently this doesn't matter as we only use 16-bit. But as 'int' is int32_t and we later compare fnum with lock->fnum == fnum, the cast from int32_t to uint64_t goes via int64_t instead of uint32_t. This means even if fsp->fnum just uses 32-bit of the uint64_t we'll get the wrong result, as the implicit cast from a negative int32_t value to uint64_t adds 0xFFFFFFFF00000000. metze | |||||
2012-06-28 | s3:brlock: add some const to print_lock_struct() | Stefan Metzmacher | 1 | -1/+1 | |
metze | |||||
2012-06-28 | s3:wscript: use LOCKING subsystem for smbtorture3 | Stefan Metzmacher | 1 | -1/+2 | |
metze | |||||
2012-06-27 | s3-param: Rename loadparm_s3_context -> loadparm_s3_helpers | Andrew Bartlett | 20 | -29/+29 | |
This helps clarify the role of this structure and wrapper function. The purpose here is to provide helper functions to the lib/param loadparm_context that point back at the s3 lp_ functions. This allows a struct loadparm_context to be passed to any point in the code, and always refer to the correct loadparm system. If this has not been set, the variables loaded in the lib/param code will be returned. As requested by Michael Adam. Andrew Bartlett Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Wed Jun 27 17:11:16 CEST 2012 on sn-devel-104 | |||||
2012-06-27 | s3-pdb_samba4: Remove dupliate profilePath handling | Andrew Bartlett | 1 | -6/+0 | |
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Wed Jun 27 13:16:26 CEST 2012 on sn-devel-104 | |||||
2012-06-27 | s3-pdbtest: Initialise more elements for testing | Andrew Bartlett | 1 | -0/+8 | |
If these were left as defaults, they cause issues when the backend (pdb_samba4) returns the internal defaults from the directory, not the defaults from samu_new() Andrew Bartlett | |||||
2012-06-27 | s3-pdb_samba4: Add support for lastLogon and lastLogoff | Andrew Bartlett | 1 | -2/+10 | |
2012-06-27 | s3-pdb_samba4: Fix time handling, use nt_time_to_unix() | Andrew Bartlett | 1 | -1/+1 | |
This matches 478d74fe1447c4588b14ef7040c8c13339d54026 which I failed to merge from pdb_ads. Andrew Bartlett | |||||
2012-06-27 | s3-pdbtest: show mis-matching times | Andrew Bartlett | 1 | -4/+12 | |
2012-06-27 | s3:registry: change reg_import.c according to coding guidelines. | Michael Adam | 1 | -53/+47 | |
Autobuild-User(master): Michael Adam <obnox@samba.org> Autobuild-Date(master): Wed Jun 27 10:07:54 CEST 2012 on sn-devel-104 | |||||
2012-06-27 | s3:registry: use TALLOC_CTX * instead of const void * in reg_import_adapter() | Michael Adam | 2 | -2/+2 | |
2012-06-27 | s3: add a tool "cclean" to cleanup orphaned entries from connections.tdb | Gregor Beck | 3 | -1/+324 | |
Signed-off-by: Michael Adam <obnox@samba.org> | |||||
2012-06-27 | s3:conn_tdb: add a function connections_fetch_entry_ext() that also takes ↵ | Gregor Beck | 2 | -5/+19 | |
the cnum and have connections_fetch_entry() call connections_fetch_entry_ext(). Signed-off-by: Michael Adam <obnox@samba.org> | |||||
2012-06-27 | s3:lib:dbwrap: fix return value of db_ctdb_traverse[_read] for ↵ | Gregor Beck | 1 | -6/+17 | |
non-persistent dbs to return the number of traversed records upon successful traverse. Signed-off-by: Michael Adam <obnox@samba.org> | |||||
2012-06-27 | s3-printing: fix broken print_job_get_name() return | David Disseldorp | 1 | -1/+2 | |
Autobuild-User(master): David Disseldorp <ddiss@samba.org> Autobuild-Date(master): Wed Jun 27 04:04:56 CEST 2012 on sn-devel-104 | |||||
2012-06-27 | s3:test_net_registry_check.sh: grep -E isn't portable, use egrep | Björn Jacke | 1 | -1/+1 | |
grep -E doesn't work on Solaris /usr/bin/grep e.g. Autobuild-User(master): Björn Jacke <bj@sernet.de> Autobuild-Date(master): Wed Jun 27 02:18:07 CEST 2012 on sn-devel-104 | |||||
2012-06-26 | s3:net registry import: implement dry-run with "--test" | Michael Adam | 1 | -0/+6 | |
Pair-Programmed-With: Gregor Beck <gbeck@sernet.de> Autobuild-User(master): Michael Adam <obnox@samba.org> Autobuild-Date(master): Tue Jun 26 21:43:49 CEST 2012 on sn-devel-104 | |||||
2012-06-26 | s3:net registry import: add an assert | Michael Adam | 1 | -0/+2 | |
Pair-Programmed-With: Gergor Beck <gbeck@sernet.de> | |||||
2012-06-26 | s3:net registry import: reduce indentation | Michael Adam | 1 | -7/+8 | |
Pair-Programmed-With: Gregor Beck <gbeck@sernet.de> | |||||
2012-06-26 | s3:net registry import: fix the return code when transaction commit fails | Michael Adam | 1 | -1/+1 | |
Pair-Programmed-With: Gregor Beck <gbeck@sernet.de> | |||||
2012-06-26 | s3:net registry import: improve regdb_open/close layering | Michael Adam | 1 | -3/+4 | |
Pair-Programmed-With: Gregor Beck <gbeck@sernet.de> | |||||
2012-06-26 | s3:net registry import: untangle nested function calls | Michael Adam | 1 | -3/+8 | |
2012-06-26 | s3:net registry import: reduce indentation and untangle assignment from check | Michael Adam | 1 | -4/+9 | |
in import_with_precheck_action(). | |||||
2012-06-26 | s3:net registry import: move precheck-and-import code to its own function | Michael Adam | 1 | -9/+20 | |
This is the code that is executed in a registry transaction. The purpose of the refactoring is to be able to simplify and untangle the code structure in the sequel. | |||||
2012-06-26 | s3:net registry: fix violation of coding conventions | Gregor Beck | 1 | -32/+35 | |
Signed-off-by: Michael Adam <obnox@samba.org> | |||||
2012-06-26 | s3:net registry import: add option --precheck | Gregor Beck | 3 | -5/+197 | |
Signed-off-by: Michael Adam <obnox@samba.org> | |||||
2012-06-26 | s3:registry: add function registry_value_cmp() | Gregor Beck | 2 | -0/+10 | |
Signed-off-by: Michael Adam <obnox@samba.org> | |||||
2012-06-26 | s3:net registry import: check return values + codecleanup | Gregor Beck | 1 | -16/+30 | |
Signed-off-by: Michael Adam <obnox@samba.org> | |||||
2012-06-26 | s3:net registry: fix output of dwords with sign bit set | Gregor Beck | 1 | -1/+1 | |
Signed-off-by: Michael Adam <obnox@samba.org> | |||||
2012-06-26 | s3:registry: fix possible double free in import | Gregor Beck | 1 | -0/+1 | |
Signed-off-by: Michael Adam <obnox@samba.org> |