Amitay Isaacs [Tue, 25 Oct 2011 04:06:07 +0000 (15:06 +1100)]
s4-drepl: Search for application partitions in addition to main ones
To replicate application partitions (e.g. DNS partitions) consult
msDs-hasMasterNCs attribute as well. Also, make sure we don't add
same partition twice in the list. hasMasterNCs and msDs-hasMasterNCs
have domain, configuration and schema partitions common.
Signed-off-by: Andrew Tridgell <tridge@samba.org>
Amitay Isaacs [Mon, 24 Oct 2011 06:37:24 +0000 (17:37 +1100)]
s4-dnsserver: Check the raised exception with assertRaises
Signed-off-by: Andrew Tridgell <tridge@samba.org>
Amitay Isaacs [Mon, 24 Oct 2011 06:22:21 +0000 (17:22 +1100)]
s4-dnsserver: Handle the case when the dns name is NULL
Signed-off-by: Andrew Tridgell <tridge@samba.org>
Amitay Isaacs [Mon, 24 Oct 2011 06:20:46 +0000 (17:20 +1100)]
s4-dnsserver: Build a dns name tree for correct enumeration
The result of EnumRecords/EnumRecords2 RPC calls, is a list of
dns records that are one level below in the name hierarchy starting
from the search name. This patch builds a tree of names to get
the list of records one level below the search names and correctly
count the number of child records for each of those.
Signed-off-by: Andrew Tridgell <tridge@samba.org>
Amitay Isaacs [Mon, 24 Oct 2011 06:15:27 +0000 (17:15 +1100)]
s4-dnsserver: List dns zones matching the search filter
Signed-off-by: Andrew Tridgell <tridge@samba.org>
Amitay Isaacs [Mon, 24 Oct 2011 06:07:45 +0000 (17:07 +1100)]
s4-dnsserver: Compare two dns names using last uncommon name components
When search_name is not NULL, use the second last component of name
instead of the last name.
e.g. To compare following two names,
_ldap._tcp.gc, and
_ldap._tcp.Default-First-Site-Name._sites.gc
with search_name=NULL, it is gc and gc
with search_name=gc, it is _tcp and _sites
Signed-off-by: Andrew Tridgell <tridge@samba.org>
Amitay Isaacs [Mon, 24 Oct 2011 05:54:16 +0000 (16:54 +1100)]
s4-dnsserver: Set DNS_DP_AUTOCREATED flag for the zone information
This make the zone information similar to windows (W2K8r2).
Signed-off-by: Andrew Tridgell <tridge@samba.org>
Amitay Isaacs [Fri, 21 Oct 2011 00:27:28 +0000 (11:27 +1100)]
samba-tool: Improve the description of dns subcommands.
Signed-off-by: Andrew Tridgell <tridge@samba.org>
Amitay Isaacs [Tue, 20 Sep 2011 07:31:24 +0000 (17:31 +1000)]
samba-tool: Enable comparison of DNS naming contexts in ldapcmp
Signed-off-by: Andrew Tridgell <tridge@samba.org>
Jeremy Allison [Mon, 31 Oct 2011 19:38:36 +0000 (12:38 -0700)]
Remove opendir() VFS code from ACL modules.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed Nov 2 02:13:51 CET 2011 on sn-devel-104
Jeremy Allison [Mon, 31 Oct 2011 19:38:20 +0000 (12:38 -0700)]
Call check_parent_access() on readdir.
Jeremy Allison [Mon, 31 Oct 2011 19:37:39 +0000 (12:37 -0700)]
Change function signature of check_parent_access() to take char * instead of struct smb_filename.
Expose it so it can be called from directory code.
Matthieu Patou [Wed, 26 Oct 2011 21:58:15 +0000 (23:58 +0200)]
s4-socket: do not segfault if the socket is NULL
Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Tue Nov 1 19:02:52 CET 2011 on sn-devel-104
Matthieu Patou [Tue, 25 Oct 2011 18:16:38 +0000 (20:16 +0200)]
s4-join: Send ReplicaUpdateRefs at the end of the join
Matthieu Patou [Sun, 23 Oct 2011 20:27:08 +0000 (22:27 +0200)]
s4-domain-join: do not add DFSR entries when joining, this should be done in the code handling DFSR replication
Matthieu Patou [Sun, 23 Oct 2011 13:01:29 +0000 (15:01 +0200)]
s4-vampire: Fix the output of fetched object for the schema-dn
Jelmer Vernooij [Tue, 1 Nov 2011 11:29:16 +0000 (12:29 +0100)]
Simplify handling of user add command.
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Tue Nov 1 14:25:39 CET 2011 on sn-devel-104
Theresa Halloran [Sun, 23 Oct 2011 22:23:28 +0000 (15:23 -0700)]
s4: samba-tool subcommand rename - change samba-tool user add to samba-tool user create
Signed-off-by: Theresa Halloran <thallora@linux.vnet.ibm.com>
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Andrew Bartlett [Tue, 1 Nov 2011 01:11:57 +0000 (12:11 +1100)]
s4-dsdb Remove LDAP backend credentials support
The error message from this causes confusion, for a feature
that we have never finished and have agreed to remove.
Andrew Bartlett
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Tue Nov 1 06:32:52 CET 2011 on sn-devel-104
Michael Adam [Tue, 1 Nov 2011 00:50:52 +0000 (01:50 +0100)]
s4:torture:smb2: add a new durable-open.upgrade2 test to test all upgrade combinations
Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Tue Nov 1 04:58:03 CET 2011 on sn-devel-104
Michael Adam [Mon, 31 Oct 2011 23:56:29 +0000 (00:56 +0100)]
s4:torture:smb2: expand durable-open.open2 test matrix by all share-modes
Michael Adam [Mon, 31 Oct 2011 23:55:48 +0000 (00:55 +0100)]
s4:torture:smb2: expand durable-open.open1 test matrix by all share-modes
Michael Adam [Mon, 31 Oct 2011 23:01:31 +0000 (00:01 +0100)]
s4:torture:smb2: rename the durable-open.basic2 test to durable-open.open2 for clarity
Michael Adam [Mon, 31 Oct 2011 22:54:06 +0000 (23:54 +0100)]
s4:torture:smb2: rename the durable-open.basic1 test to durable-open.open1 for clarity
Rusty Russell [Mon, 31 Oct 2011 20:41:25 +0000 (07:11 +1030)]
tdb2: use HAVE_LIBREPLACE instead of _SAMBA_BUILD_.
This is what lib/tdb2 really wants: to know if it should use normal
headers or replace.h. It currently uses _SAMBA_BUILD_, which is wrong
for ldb, for example.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Autobuild-User: Rusty Russell <rusty@rustcorp.com.au>
Autobuild-Date: Tue Nov 1 03:19:58 CET 2011 on sn-devel-104
Stefan Metzmacher [Thu, 27 Oct 2011 19:41:11 +0000 (21:41 +0200)]
s4:torture/smb2: fix compound.invalid2 against windows
Tested against w2k8r2 with signing and win8pre0 without signing.
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Mon Oct 31 21:40:25 CET 2011 on sn-devel-104
Stefan Metzmacher [Mon, 31 Oct 2011 14:23:00 +0000 (15:23 +0100)]
s4:smb_server/smb2: correctly implement related compound requests
We need to remember the session id and tree id.
metze
Stefan Metzmacher [Mon, 31 Oct 2011 12:43:01 +0000 (13:43 +0100)]
s4:smb_server/smb2: always grant the requested credits
At least one credit, if the client asked for 0.
metze
Stefan Metzmacher [Thu, 27 Oct 2011 18:46:12 +0000 (20:46 +0200)]
s4:smb_server/smb2: echo back more header fields
metze
Stefan Metzmacher [Thu, 27 Oct 2011 14:35:28 +0000 (16:35 +0200)]
s3:smb2_server: FLAG_CHAINED means we always use the last session_id and tid
metze
Stefan Metzmacher [Thu, 27 Oct 2011 11:01:22 +0000 (13:01 +0200)]
s3:smb2_server: don't reset the tid and session id in the out hdr of compound requests
Windows also leaves tid (0xFFFFFFFF) and session id (0xFFFFFFFFFFFFFFFF)
as the client requested them.
metze
Stefan Metzmacher [Thu, 27 Oct 2011 14:42:44 +0000 (16:42 +0200)]
s3:smb2_server: echo the SMB2_HDR_CREDIT_CHARGE and SMB2_HDR_SIGNATURE fields
Windows just echos back the given values by default.
metze
David Disseldorp [Tue, 11 Oct 2011 09:44:03 +0000 (11:44 +0200)]
s4-torture: smb2 copychunk data integrity checks
Perform simple integrity checks on destination file data following
a successful copychunk request.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User: David Disseldorp <ddiss@samba.org>
Autobuild-Date: Mon Oct 31 19:28:20 CET 2011 on sn-devel-104
David Disseldorp [Fri, 30 Sep 2011 12:33:36 +0000 (14:33 +0200)]
s4-torture: add smb2 copychunk ioctl tests
test_ioctl_copy_chunk_multi: Issue a copychunk request with multiple
chunk descriptors.
test_ioctl_copy_chunk_over: Issue a copychunk request with overlapping
chunks.
test_ioctl_copy_chunk_append: append data as part of a copy chunk
test_ioctl_copy_chunk_tiny: issue request with sub FS block size chunk
descriptors.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
David Disseldorp [Fri, 30 Sep 2011 10:50:36 +0000 (12:50 +0200)]
s4-torture: split common copychunk ioctl test code into helpers
Signed-off-by: Stefan Metzmacher <metze@samba.org>
David Disseldorp [Tue, 27 Sep 2011 14:40:20 +0000 (16:40 +0200)]
s4-torture: Add tests for the smb2 copychunk ioctl
Add idls for parsing of copychunk ioctl args.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
David Disseldorp [Tue, 27 Sep 2011 22:37:54 +0000 (00:37 +0200)]
idl: add copychunk and request_resume_key ioctl definitions
Stefan Metzmacher [Mon, 31 Oct 2011 14:52:37 +0000 (15:52 +0100)]
s3:smbd: also the parent smbd needs FLAG_MSG_PRINT_GENERAL (bug #8553)
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Mon Oct 31 17:37:34 CET 2011 on sn-devel-104
Stefan Metzmacher [Mon, 31 Oct 2011 11:15:18 +0000 (12:15 +0100)]
s4:nbt_server/dgram: higher debug level for NBT_MAILSLOT_NETLOGON requests
This matches the log level of the CLDAP case.
metze
Stefan Metzmacher [Mon, 31 Oct 2011 08:34:13 +0000 (09:34 +0100)]
s4:lib/socket: don't pass -1 to close()
metze
David Disseldorp [Mon, 31 Oct 2011 12:47:15 +0000 (13:47 +0100)]
s3: fix typo in net ads join output
Space missing from "DNS update in aclustered setup".
Autobuild-User: David Disseldorp <ddiss@samba.org>
Autobuild-Date: Mon Oct 31 16:01:35 CET 2011 on sn-devel-104
Volker Lendecke [Mon, 31 Oct 2011 11:41:09 +0000 (12:41 +0100)]
s3: Fix some nonempty blank lines
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Mon Oct 31 14:25:14 CET 2011 on sn-devel-104
Volker Lendecke [Mon, 31 Oct 2011 11:40:58 +0000 (12:40 +0100)]
s3: Fix a comment
Volker Lendecke [Mon, 31 Oct 2011 11:37:09 +0000 (12:37 +0100)]
s3: Remove some leftovers of old ctdb tdb2 code
Michael Adam [Sat, 29 Oct 2011 15:28:38 +0000 (17:28 +0200)]
s4:torture:smb2: add durable_open_basic2 test: test durable open against all lease types
Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Sun Oct 30 20:17:16 CET 2011 on sn-devel-104
Michael Adam [Sat, 29 Oct 2011 15:26:53 +0000 (17:26 +0200)]
s4:torture:smb2: add a new durable_open_basic1 test: test open against all oplock types
Michael Adam [Sat, 29 Oct 2011 15:25:00 +0000 (17:25 +0200)]
s4:torture:smb2: check wheter open was durable in existing tests
Michael Adam [Sat, 29 Oct 2011 11:18:05 +0000 (13:18 +0200)]
s4:libcli: in smb2_create_recv, map SMB2_CREATE_DURABLE_HANDLE_RESPONSE buffer smb2_create.out.durable_open
Michael Adam [Sat, 29 Oct 2011 11:16:07 +0000 (13:16 +0200)]
source4/libcli: add bool durable_open to smb2_create.out.
The server gives indication whether the open was durable
we should record this.
Michael Adam [Sat, 29 Oct 2011 12:48:58 +0000 (14:48 +0200)]
s4:torture: test also break semantics between batch-oplocks and leases
This must have been a typo (listing EXCLUSIVE twice).
But BATCH and EXCLUSIVE oplocks apparently share the
same break semantics with respect to leases.
Michael Adam [Sun, 30 Oct 2011 17:40:00 +0000 (18:40 +0100)]
s4:torture:smb2: adapt comment in durable-open.lease test according to current information.
Michael Adam [Sat, 29 Oct 2011 09:56:48 +0000 (11:56 +0200)]
s4:torture:smb2: fix the durable_open test to succeed against w7 and w2k8r2
When a first client that has a durable open with share read/write/delete
and a read-write-handle lease on the file disconnects, a second
client will succeed in opening the file and the new client will be
given a RWH-lease if requested, not only a RH-lease, as was previously
checked in the test.
This might have been a bug in win7 build 7000, which is what the
comments in the test give as reference.
Jeremy Allison [Fri, 28 Oct 2011 19:29:54 +0000 (12:29 -0700)]
Fix bug #8548 - winbind_samlogon_retry_loop ignores logon_parameters flags.
Fix confirmed by reporter.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Fri Oct 28 23:04:47 CEST 2011 on sn-devel-104
Jeremy Allison [Fri, 28 Oct 2011 19:15:51 +0000 (12:15 -0700)]
The xcopy test is used in unusual ways (via a different uid). Ensure we can cope with this.
Jeremy Allison [Thu, 27 Oct 2011 23:48:13 +0000 (16:48 -0700)]
Remove the order dependency in parent_override_delete(), just check for & not ==.
Jeremy Allison [Thu, 27 Oct 2011 23:41:18 +0000 (16:41 -0700)]
The xcopy test requires "dos filemode=yes" as it opens with WRITE_OWNER.
Jeremy Allison [Wed, 26 Oct 2011 23:02:40 +0000 (16:02 -0700)]
Remove the mkdir and open functions from the ACL modules - main code paths now handle this.
Jeremy Allison [Wed, 26 Oct 2011 22:30:00 +0000 (15:30 -0700)]
Remove unused "struct security_descriptor" parameter from check_parent_access()
Jeremy Allison [Wed, 26 Oct 2011 22:03:28 +0000 (15:03 -0700)]
Finally do all the open checks inside open_file(). Checks inside
vfs_acl_common can now be removed.
Jeremy Allison [Wed, 26 Oct 2011 21:58:32 +0000 (14:58 -0700)]
Simplify smbd_check_open_rights() and move all the special casing inside it.
Jeremy Allison [Wed, 26 Oct 2011 21:47:52 +0000 (14:47 -0700)]
Move parent_override_delete() to before I need to use it.
Jeremy Allison [Wed, 26 Oct 2011 21:06:41 +0000 (14:06 -0700)]
Make smbd_check_open_rights() static.
Günther Deschner [Fri, 28 Oct 2011 10:03:58 +0000 (12:03 +0200)]
s3-net: Make sure to always re-use the "good" dc for the DNS updates as well.
Guenther
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Fri Oct 28 19:13:49 CEST 2011 on sn-devel-104
Andrew Bartlett [Tue, 25 Oct 2011 00:39:47 +0000 (11:39 +1100)]
lib/util Add ABI to the samba-module library
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Fri Oct 28 14:42:43 CEST 2011 on sn-devel-104
Andrew Bartlett [Mon, 24 Oct 2011 23:34:13 +0000 (10:34 +1100)]
lib/util Rename samba_modules_load -> samba_module_init_fns_for_subsystem
This is to provide a cleaner namespace in the public samba plugin
functions.
Andrew Bartlett
Andrew Bartlett [Mon, 24 Oct 2011 23:30:14 +0000 (10:30 +1100)]
lib/util Rename samba_init_module -> samba_module_init
This is to provide a cleaner namespace in the public samba plugin
functions.
Andrew Bartlett
Andrew Bartlett [Mon, 24 Oct 2011 23:11:06 +0000 (10:11 +1100)]
lib/util Rename samba_init_module_fns_run -> samba_module_init_fns_run
This is to provide a cleaner namespace in the public samba plugin
functions.
Andrew Bartlett
Andrew Bartlett [Mon, 24 Oct 2011 20:43:06 +0000 (07:43 +1100)]
lib/util Rename samba_init_module_fn -> samba_module_init_fn
This is to provide a cleaner namespace in the public samba plugin
functions.
Andrew Bartlett
Andrew Bartlett [Mon, 24 Oct 2011 08:39:53 +0000 (19:39 +1100)]
lib/util Split samba-modules library into public and private parts
This will allow OpenChange to get at the symbols it needs, without
exposing any more of this as a public API than we must.
Andrew Bartlett
Andrew Bartlett [Mon, 24 Oct 2011 08:07:12 +0000 (19:07 +1100)]
lib/util Rename load_samba_modules -> samba_modules_load
This is to provide a cleaner namespace in the public samba plugin
functions.
Andrew Bartlett
Andrew Bartlett [Mon, 24 Oct 2011 08:01:16 +0000 (19:01 +1100)]
lib/util Rename run_init_functions -> samba_init_module_fns_run
This is to provide a cleaner namespace in the public samba plugin
functions.
Andrew Bartlett
Andrew Bartlett [Sun, 23 Oct 2011 22:49:26 +0000 (09:49 +1100)]
lib/util Rename init_module_fn to samba_init_module_fn
This prepares for making the samba_module.h header public again, for OpenChange.
I am keen to avoid too much API namespace pollution if we can.
Andrew Bartlett [Sat, 22 Oct 2011 00:48:30 +0000 (11:48 +1100)]
gensec: Add parinoia about integer wrapping
Andrew Bartlett [Wed, 26 Oct 2011 06:59:47 +0000 (17:59 +1100)]
s3-selftest Add all the LOCAL-* smbtorture tests to make test
The extra knownfail and skip entries are for tests the currently do
not pass or hang. We need to work out why this happens, and fix the
test or the test invocation.
Andrew Bartlett
Andrew Bartlett [Wed, 26 Oct 2011 06:32:55 +0000 (17:32 +1100)]
s3-build: Remove libbigballofmud.so
We no longer need this, as all the small test binaries have either
been converted rolled into python bindings and python-subunit tests, or have
been moved into smbtorture.
--------------
/ \
/ REST \
/ IN \
/ PEACE \
/ \
| libbigballofmud.so |
| |
| |
| 26 October |
| |
| 2011 |
*| * * * | *
_________)/\\_//(\/(/\)/\//\/\///|_)_______
Andrew Bartlett
Andrew Bartlett [Wed, 26 Oct 2011 06:30:45 +0000 (17:30 +1100)]
s3-torture Remove t_stringoverflow as fstrcpy now uses strlcpy
Because we no longer use safe_strcpy() internally, we no longer have a
mode where we write to the end of the buffer in developer mode, and so
there isn't anything for this test to test.
Andrew Bartlett
Andrew Bartlett [Wed, 26 Oct 2011 06:25:59 +0000 (17:25 +1100)]
s3-selftest: Add LOCAL-sprintf_append
Andrew Bartlett [Wed, 26 Oct 2011 06:21:04 +0000 (17:21 +1100)]
s3-torture run t_strappend tests as LOCAL-sprintf_append
Andrew Bartlett [Wed, 26 Oct 2011 06:13:36 +0000 (17:13 +1100)]
s3-torture Run t_strappend test for less time
Andrew Bartlett [Wed, 26 Oct 2011 06:13:16 +0000 (17:13 +1100)]
s3-torture Fix t_strappend test
Andrew Bartlett [Wed, 26 Oct 2011 02:38:15 +0000 (13:38 +1100)]
selftest: Have only one set of selftest knownfail and skip files
Listing tests that are not ever proposed (eg samba4.* in the samba3 selftest)
is not an error, so just combine the lists.
This is being done because some folks trying to learn how our 'make
test' works are having trouble following the distributed nature of the
selftest system.
Andrew Bartlett
Andrew Bartlett [Wed, 26 Oct 2011 04:21:11 +0000 (15:21 +1100)]
selftest: Remove --target option and the ability to run 'samba4 only' tests
This simplifies the selftest system, and by default we always tested
all of samba3 and samba4 in the waf build. This simply removes a
rarely used option for testing only part of the system. The make test
TESTS="^samba3" syntax remains unchanged, so no functionality is lost.
Andrew Bartlett
Andrew Bartlett [Tue, 25 Oct 2011 22:28:08 +0000 (09:28 +1100)]
s3-torture remove unused t_push_ucs2.c t_strcmp.c t_strstr.c
These tests were incorportated into
source4/scripting/python/samba/tests/strings.py with
fa3e2fc8bb3e935c65b7043382cad1d649cb68a6.
Andrew Bartlett
Andrew Bartlett [Tue, 25 Oct 2011 22:22:40 +0000 (09:22 +1100)]
s3-torture remove unused t_asn1.c
This test was incorportated into lib/util/test/asn1_test.c with
ede98c0e5190bf59461703629d5a4742ad8e044f
Andrew Bartlett
Andrew Bartlett [Tue, 25 Oct 2011 01:52:00 +0000 (12:52 +1100)]
examples: rework wscript to use a loop
I think this format is more compact and easier to understand.
Andrew Bartlett
Günther Deschner [Thu, 27 Oct 2011 14:28:27 +0000 (16:28 +0200)]
s3-passdb: use tevent_context in passdb.
Guenther
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Fri Oct 28 13:09:47 CEST 2011 on sn-devel-104
Günther Deschner [Thu, 27 Oct 2011 14:19:07 +0000 (16:19 +0200)]
s3-smbldap: use tevent_context in smbldap.
Guenther
Andreas Schneider [Thu, 27 Oct 2011 15:11:19 +0000 (17:11 +0200)]
Add systemd service files.
Autobuild-User: Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date: Fri Oct 28 11:34:27 CEST 2011 on sn-devel-104
Stefan Metzmacher [Thu, 27 Oct 2011 20:55:17 +0000 (22:55 +0200)]
s4:librpc/dcerpc_smb2: fix smb2_write_callback()
The should use smb2_write_recv() to get the result.
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Fri Oct 28 09:55:48 CEST 2011 on sn-devel-104
Stefan Metzmacher [Thu, 27 Oct 2011 20:55:17 +0000 (22:55 +0200)]
s4:librpc/dcerpc_smb: fix smb_write_callback()
The should use smb_raw_write_recv() to get the result.
metze
Michael Adam [Thu, 27 Oct 2011 22:11:08 +0000 (00:11 +0200)]
s4:torture:smb2: avoid leaking tree connects up to the main function from the durable_open test
The tree connects are handed in from the calling wrapper.
Those that are freed and reconnected inside the test function
can not be freed in the wrapper and stick to the torture_context
until this is released in the main function.
Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Fri Oct 28 02:37:25 CEST 2011 on sn-devel-104
Michael Adam [Thu, 27 Oct 2011 22:05:44 +0000 (00:05 +0200)]
s4:torture:smb2: fix a nasty double free error.
This error manifested itself in sporadic "talloc_free with references" error.
Michael Adam [Thu, 27 Oct 2011 11:06:32 +0000 (13:06 +0200)]
s4:torture:smb2: fix a comment
Michael Adam [Wed, 26 Oct 2011 20:48:29 +0000 (22:48 +0200)]
s4:torture:smb2: be leass leaky in wrap_simple_2smb2_test()
Volker Lendecke [Thu, 27 Oct 2011 13:21:29 +0000 (15:21 +0200)]
s3-ctdb: Fix ctdb_read_req
If a complete request has come in already before we consumed it, the
ctdb_packet_fd_read_sync will block indefinitely. So always try packet_handler
first and only if that fails due to insufficient data, read from the socket.
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Thu Oct 27 22:12:05 CEST 2011 on sn-devel-104
Volker Lendecke [Wed, 26 Oct 2011 15:51:09 +0000 (17:51 +0200)]
s3-ctdb: Add debug to ctdb_processes_exist
Volker Lendecke [Wed, 26 Oct 2011 11:43:07 +0000 (13:43 +0200)]
s3: Use serverids_exist in parse_share_modes
This is the main reason for the preceding commits. We need to reduce the number
of round-trips to ctdb when checking the locking record entries for existence.
Using the plural version of process_exists gets the number of round-trips to
ctdb for process_exists down to 1.
Volker Lendecke [Wed, 26 Oct 2011 11:36:56 +0000 (13:36 +0200)]
s3: Add serverids_exist
Volker Lendecke [Wed, 26 Oct 2011 10:18:21 +0000 (12:18 +0200)]
s3: Add processes_exist
Volker Lendecke [Wed, 26 Oct 2011 09:36:21 +0000 (11:36 +0200)]
s3-ctdb: Make ctdbd_process_exists use ctdbd_processes_exist
Not strictly necessary, but more code exercise is good