Jelmer Vernooij [Sat, 4 Nov 2006 19:38:08 +0000 (19:38 +0000)]
r19555: Silently ignore --use-cached-creds for compatibility with Samba3's ntlm_auth.
Patch by Kai Blin.
(This used to be commit
2167552b9a869c408c5ba17dcba3367241934767)
Jelmer Vernooij [Sat, 4 Nov 2006 17:06:38 +0000 (17:06 +0000)]
r19554: Remove short option for --shell, as it overlaps with the option used for
configuration files.
(This used to be commit
c2e58aa3e67ad6a03464ada5ae0e1437f3863b64)
Jelmer Vernooij [Sat, 4 Nov 2006 15:40:05 +0000 (15:40 +0000)]
r19553: Add check for correct API usage.
(This used to be commit
9e2206ae99ed6dc64788b71f1301bd188ab0026d)
Jelmer Vernooij [Sat, 4 Nov 2006 13:27:06 +0000 (13:27 +0000)]
r19551: List full names for the known failing tests.
(This used to be commit
657c39ac6e4320554b6bb79e604feedb368c9dd5)
Andrew Tridgell [Sat, 4 Nov 2006 04:49:02 +0000 (04:49 +0000)]
r19550: the sense of this test was wrong
(This used to be commit
4dcc26d0a67ec4a611e789b299a1db7ecf297e66)
Andrew Tridgell [Sat, 4 Nov 2006 04:48:46 +0000 (04:48 +0000)]
r19549: fixed some indentation
(This used to be commit
ea1e4685d914c09d615bb7c4a5678b5de00da5f4)
Andrew Tridgell [Sat, 4 Nov 2006 04:48:03 +0000 (04:48 +0000)]
r19548: this talloc_free() is definately wrong.
(This used to be commit
b412a8390588fcbb655252fcc4cccbf3b3b84b5c)
Jelmer Vernooij [Sat, 4 Nov 2006 02:54:24 +0000 (02:54 +0000)]
r19547: Fix use of v1_enum on enums used in return types.
(This used to be commit
dbae9b4e4ea38806062ba34dcf05a67c2e7af043)
Jelmer Vernooij [Sat, 4 Nov 2006 02:51:03 +0000 (02:51 +0000)]
r19546: fix number of bytes pushed when using switch_type() set to enum types.
die() on invalid used of enum_type_fn()
(This used to be commit
de6198c893737e63a5ff70684c1df212da054988)
Jelmer Vernooij [Sat, 4 Nov 2006 01:53:29 +0000 (01:53 +0000)]
r19545: Allow enums as return types in code generated for wireshark. Originally based on a patch by Julien Kerihuel.
(This used to be commit
705cd03c53f097086ef4f5aee9311a45bd19afa2)
Jelmer Vernooij [Fri, 3 Nov 2006 23:08:33 +0000 (23:08 +0000)]
r19544: Fix case of 'warning'.
(This used to be commit
4f1f541837db31322d875b6d2452c3f3a0d37fcd)
Jelmer Vernooij [Fri, 3 Nov 2006 22:35:52 +0000 (22:35 +0000)]
r19543: Make dynconfig less special.
(This used to be commit
2780274e6fb25cec78ad341239090ed286ed1a45)
Jelmer Vernooij [Fri, 3 Nov 2006 19:55:17 +0000 (19:55 +0000)]
r19541: Explicitly segfault when the API is being used incorrectly. Previously
this would've caused a silent premature return.
(This used to be commit
91ae5a803334f77c2328ea12542158aab4da2da8)
Jelmer Vernooij [Fri, 3 Nov 2006 01:49:19 +0000 (01:49 +0000)]
r19539: Move pidfile to smbd/
(This used to be commit
eefa64cbe392c4c4dcbf71b8bcf5128cce0339ba)
Andrew Bartlett [Fri, 3 Nov 2006 00:34:52 +0000 (00:34 +0000)]
r19538: This is getting silly, but I needed an easy way to run 'make testenv'
under valgrind.
Andrew Bartlett
(This used to be commit
f2bdbacaa9796ba30689eae295199983cc352590)
Jelmer Vernooij [Thu, 2 Nov 2006 22:17:11 +0000 (22:17 +0000)]
r19537: Report correct test names when tests failed.
(This used to be commit
7b93b3c8be3d2a253b0737be893e7eb1b7c94dba)
Simo Sorce [Thu, 2 Nov 2006 22:02:37 +0000 (22:02 +0000)]
r19536: Make output understandable (newlines)
(This used to be commit
6960dd2075ed75c844c4a17e215991db2fb72c0d)
Jelmer Vernooij [Thu, 2 Nov 2006 21:41:50 +0000 (21:41 +0000)]
r19535: Fix warnings.
(This used to be commit
7443f4847df6614797c937dd8d45bf7b37464a20)
Simo Sorce [Thu, 2 Nov 2006 00:32:42 +0000 (00:32 +0000)]
r19532: oops forgot this
(This used to be commit
9af225e319838a33141daa450473c157ecd65cd3)
Simo Sorce [Wed, 1 Nov 2006 23:31:26 +0000 (23:31 +0000)]
r19531: Make struct ldb_dn opaque and local to ldb_dn.c
(This used to be commit
889fb983ba1cf8a11424a8b3dc3a5ef76e780082)
Andrew Bartlett [Wed, 1 Nov 2006 09:57:56 +0000 (09:57 +0000)]
r19523: Remove unused functions.
Andrew Bartlett
(This used to be commit
3a3c1040a97e1d7d64e9e151ea4e1af79dcb976e)
Andrew Bartlett [Wed, 1 Nov 2006 03:21:04 +0000 (03:21 +0000)]
r19522: Remove gensec and credentials dependency from the rootdse module (less
dependency loops).
This moves the evaluation of the SASL mechansim list to display in the
rootDSE to the ldap server.
Andrew Bartlett
(This used to be commit
379da475e224d93c05d91b37902c121eb4007d97)
Andrew Bartlett [Wed, 1 Nov 2006 03:17:42 +0000 (03:17 +0000)]
r19521: Fix memory leak.
Andrew Bartlett
(This used to be commit
cf1b0cc19fc7aad2a44777929861e70497ccef7d)
Andrew Bartlett [Wed, 1 Nov 2006 03:17:23 +0000 (03:17 +0000)]
r19520: Try not to read past the end of the ldb buffer.
Andrew Bartlett
(This used to be commit
3a103149a6c083b80f25163c0f3762f86bb496c1)
Jelmer Vernooij [Mon, 30 Oct 2006 11:34:59 +0000 (11:34 +0000)]
r19513: Add support for recipes (using '@')
(This used to be commit
dbe5e8dd8c0986e5ab55a072957048f633838157)
Jelmer Vernooij [Mon, 30 Oct 2006 01:19:31 +0000 (01:19 +0000)]
r19512: Add --shell option to smbtorture (first work towards support for 'recipes')
(This used to be commit
087a8e80a9e912b330178b8c647b83381635f8e9)
Jelmer Vernooij [Mon, 30 Oct 2006 00:24:35 +0000 (00:24 +0000)]
r19511: Remove unused externs.
(This used to be commit
a58a366beadd5558449d2b87b4b8d2777e1da309)
Jelmer Vernooij [Mon, 30 Oct 2006 00:17:16 +0000 (00:17 +0000)]
r19510: Make smbtorture's `nprocs' parameter a parametric option.
(This used to be commit
f5d6b3ca29788d171d53822a26295ae895a5ed8f)
Jelmer Vernooij [Sun, 29 Oct 2006 23:50:32 +0000 (23:50 +0000)]
r19509: Simplify buildsystem code, create proper symlinks for aliases.
(This used to be commit
a6d610805970dcb8b2676db9074432a094f7c149)
Andrew Tridgell [Sun, 29 Oct 2006 22:48:43 +0000 (22:48 +0000)]
r19508: fixed SMB2-SETINFO
the pvfs_acl_xattr backend was not being initialised
(This used to be commit
44c897764e6e2b9cfc4398fd3df52dc3eda6b341)
Jelmer Vernooij [Sun, 29 Oct 2006 17:40:19 +0000 (17:40 +0000)]
r19507: Merge my DSO fixes branch. Building Samba's libraries as shared libraries
works again now, by specifying --enable-dso to configure.
(This used to be commit
7a01235067a4800b07b8919a6a475954bfb0b04c)
Andrew Tridgell [Sun, 29 Oct 2006 05:01:36 +0000 (05:01 +0000)]
r19506: fixed remaining parts of RAW-READ and RAW-WRITE tests to check for
CAP_LARGE_FILES
(This used to be commit
66bebb210550793d0e7fe1b6a03a5140455ae72f)
Andrew Tridgell [Sat, 28 Oct 2006 09:40:00 +0000 (09:40 +0000)]
r19505: fixed a valgrind error
(This used to be commit
8b9359aa7d7b60e0d5e36a2c736278f39dcb07bf)
Andrew Tridgell [Sat, 28 Oct 2006 06:06:15 +0000 (06:06 +0000)]
r19504: - fixed a free error in file_lines_parse
- added a function to test for large file support
- enable CAP_LARGE_FILES only if the test passes
- don't test at large offsets if the server doesn't set
CAP_LARGE_FILES
(This used to be commit
c5423ea22bdaa055807d4e6f7ac4be934194fe45)
Andrew Tridgell [Sat, 28 Oct 2006 05:21:11 +0000 (05:21 +0000)]
r19503: it only makes sense to run the LOCAL-ICONV test on 'known good'
platforms as it tests the system iconv with the built in iconv. Limit
the test to Linux to avoid spurious errors.
(This used to be commit
9e1a8475ca7d1f8490cf8502c08a2544cfec5599)
Andrew Tridgell [Sat, 28 Oct 2006 04:17:43 +0000 (04:17 +0000)]
r19502: fixed the RPC-SECRETS test with kerberos. Andrew, can you look at this
as well?
The server side change is needed to fix a valgrind error, which was
possibly exploitable if the client sent deliberately bad data
(This used to be commit
e3c04cf165fe15739197b2713e78046399aa7653)
Andrew Tridgell [Fri, 27 Oct 2006 01:10:49 +0000 (01:10 +0000)]
r19501: fix the hangs in the build farm in RPC-SECRETS
a RPC-SECRETS on kerberos test still fails, but I'll let andrew take a
look at that later :)
(This used to be commit
c260b175682c1cd95eaba958bfd9f054cb2547ea)
Andrew Tridgell [Thu, 26 Oct 2006 03:26:53 +0000 (03:26 +0000)]
r19498: the autofree test cannot be run as part of smbtorture
(This used to be commit
ebf1d523da45fe19757bca45262f7514702ee108)
Stefan Metzmacher [Wed, 25 Oct 2006 15:14:03 +0000 (15:14 +0000)]
r19496: remove unused file
metze
(This used to be commit
fe733f6307bb5801d523a968aeb5395f463ce6d6)
Jelmer Vernooij [Wed, 25 Oct 2006 14:58:05 +0000 (14:58 +0000)]
r19495: Stop linking binaries twice (once before installation, once during build).
Make TORTURE-TALLOC and TORTURE-REPLACE builtin again rather than
separate binaries.
(This used to be commit
8913d60c72a67b041b08d569c9bd048953106c85)
Stefan Metzmacher [Wed, 25 Oct 2006 11:50:23 +0000 (11:50 +0000)]
r19492: - fix RPC-AUTHCONTEXT and RPC-SAMBA3-GETUSERNAME (sorry volker:-)
smb_composite_sesssetup() doesn't set session->vuid any more...
(I changed that yesterday, because it was inconsistently only done
for spnego session setups, as it was needed internaly for the 2nd
session setup call, but know session->vuid is only touched (reset to 0)
for the wrong password case)
metze
(This used to be commit
bf2a7dd2180c9a025b99b87831960827baf75f16)
Simo Sorce [Wed, 25 Oct 2006 01:59:07 +0000 (01:59 +0000)]
r19490: better to check the return result
(This used to be commit
abdc4edbb8f8b8234bad1be05fa92b3f3bc8876c)
Simo Sorce [Wed, 25 Oct 2006 01:42:59 +0000 (01:42 +0000)]
r19489: Change ldb_msg_add_value and ldb_msg_add_empty to take a foruth argument.
This is a pointer to an element pointer. If it is not null it will be
filled with the pointer of the manipulated element.
Will avoid double searches on the elements list in some cases.
(This used to be commit
0fa5d4bc225b83e9f63ac6d75bffc4c08eb6b620)
Volker Lendecke [Tue, 24 Oct 2006 20:15:13 +0000 (20:15 +0000)]
r19485: Fix Coverity # 319
(This used to be commit
d12bdb6133c1612b9d3e1a0c6692cbc4ab17fe32)
Stefan Metzmacher [Tue, 24 Oct 2006 17:00:52 +0000 (17:00 +0000)]
r19482: remove pointless cast
metze
(This used to be commit
81a975100cbf7058de9245e51992d61cbdcb6473)
Stefan Metzmacher [Tue, 24 Oct 2006 16:16:31 +0000 (16:16 +0000)]
r19481: - reset the vuid before trying a new session setup
- only touch session->vuid when needed
- it make no sense to set an .spnego.out.vuid
metze
(This used to be commit
1940fbed154c89d29214ddf293128a70a97bf923)
Stefan Metzmacher [Tue, 24 Oct 2006 16:14:00 +0000 (16:14 +0000)]
r19480: - clear the whole session struct (only let the pid untouched)
- zero state struct
metze
(This used to be commit
97fb407a4cfcf71e95663e437cb7f638ac4028fc)
Andrew Bartlett [Tue, 24 Oct 2006 08:08:03 +0000 (08:08 +0000)]
r19479: Remove more unused functions. These are handled via authentication
abstractions now.
Andrew Bartlett
(This used to be commit
df31237c0cac0213c4f32fc491bcec2ea9f885c3)
Andrew Bartlett [Tue, 24 Oct 2006 07:56:59 +0000 (07:56 +0000)]
r19478: Remove unused functions, and make static functions used only in this
file. Everybody calls this via the dcerpc_pipe_connect() or
dcerpc_pipe_connect_b() functions.
Andrew Bartlett
(This used to be commit
5ee0fc035179c76f1362547ccc500f8677c8fa1f)
Brad Henry [Tue, 24 Oct 2006 02:50:17 +0000 (02:50 +0000)]
r19476: small typo.
(This used to be commit
51580208a77bfed3981ed4098e39ff401dfb8847)
Brad Henry [Tue, 24 Oct 2006 02:49:15 +0000 (02:49 +0000)]
r19475: fixed a couple of typos.
(This used to be commit
f2df3a90f1f3b85bc3c847ebfc1d01e2fa9e9ee7)
Brad Henry [Tue, 24 Oct 2006 01:40:15 +0000 (01:40 +0000)]
r19474: Move the Samba server / Windows client test to its own script.
(This used to be commit
908b483ed096497e1604b67ea797c223c3e34adf)
Brad Henry [Tue, 24 Oct 2006 01:29:02 +0000 (01:29 +0000)]
r19473: Add NET tests in their own script. Run the same set of tests that 'make test' does.
Comment those tests which don't pass.
(This used to be commit
7d382b175b548ae32b4c7c1b728dcd02e20cbbfa)
Brad Henry [Tue, 24 Oct 2006 01:25:09 +0000 (01:25 +0000)]
r19472: Move rpc tests to their own scripts. Run the same tests as 'make test' does.
Comment those tests that don't pass.
(This used to be commit
046b38817ad30df14214c5d66ae10999699bdb08)
Brad Henry [Tue, 24 Oct 2006 01:18:07 +0000 (01:18 +0000)]
r19471: Move BASE and RAW tests to their own scripts. Run the same set of tests as 'make test' does, at least for those that pass.
Comment the tests that don't pass.
(This used to be commit
33760cfe94f8a4a0e4441dd8fb5089cf8c26487f)
Brad Henry [Tue, 24 Oct 2006 01:04:20 +0000 (01:04 +0000)]
r19470: Move common windows test functions into their own script wintest_functions.sh, and remove them from the main windows test script.
(This used to be commit
587196092846dbab009be9063b1680ad73ae9c14)
Andrew Bartlett [Mon, 23 Oct 2006 06:08:25 +0000 (06:08 +0000)]
r19465: Rather than use the non-standard API for determining the signature
length, use the amount the wapped message expanded by.
This works, because GSSAPI doesn't do AEAD (signing of headers), and
so changing the signature length after the fact is valid.
Andrew Bartlett
(This used to be commit
bd1e0f679c8f2b9755051b8d34114fa127a7cf26)
Andrew Bartlett [Mon, 23 Oct 2006 06:06:35 +0000 (06:06 +0000)]
r19464: Reject passwords that cannot be converted into UCS2.
Andrew Bartlett
(This used to be commit
c843fce7a0e9b91c4d2de44e7a9ad9599b33ec5c)
Andrew Bartlett [Mon, 23 Oct 2006 06:05:41 +0000 (06:05 +0000)]
r19463: Make it clear what argument is incorrect
Andrew Bartlett
(This used to be commit
a28a17c50853ccd4d7b2122497d3d18f0a6feed9)
Andrew Bartlett [Mon, 23 Oct 2006 06:05:21 +0000 (06:05 +0000)]
r19462: This isn't an encrypted attribute.
Andrew Bartlett
(This used to be commit
12765db714de9e0fed61e6616b3671d525ee3bef)
Simo Sorce [Mon, 23 Oct 2006 00:17:44 +0000 (00:17 +0000)]
r19461: Make sqlite3 work again (semi-async)
Still not all tests pass
(This used to be commit
cbfc7305ad594c672a16a7f6f82758d17eb5ba62)
Simo Sorce [Mon, 23 Oct 2006 00:17:04 +0000 (00:17 +0000)]
r19460: currently building when there is an existing previous build in place is broken
(This used to be commit
59ac5cf96b208cebe2eb608d853314d335756068)
Simo Sorce [Sun, 22 Oct 2006 22:06:08 +0000 (22:06 +0000)]
r19459: Do not build nss by default (it probably works only on linux)
Fix warning with standalone.sh if build exists
(This used to be commit
d74fac574067ff2f3918ad435df2c2352e4b2ef7)
Simo Sorce [Sun, 22 Oct 2006 21:30:12 +0000 (21:30 +0000)]
r19458: Some info on the "schema"
(This used to be commit
724d8fb153cfe6f941ba2b8893e5221b24da9431)
Simo Sorce [Sun, 22 Oct 2006 21:20:27 +0000 (21:20 +0000)]
r19457: committed by mistake, this binary is available from here anyway:
http://www.samba.org/ftp/unpacked/junkcode/nsstest.c
(This used to be commit
48e38abe7170a4ec9996079fd5c4672312cc96a0)
Simo Sorce [Sun, 22 Oct 2006 21:18:43 +0000 (21:18 +0000)]
r19456: Add an example application for ldb using the tdb backend
(This used to be commit
778198f279b374222c737e5eda1c47efc2dce39c)
Simo Sorce [Sun, 22 Oct 2006 21:17:30 +0000 (21:17 +0000)]
r19455: forgot this
(This used to be commit
2b770885cd234027f92ba543706df5d55f16f739)
Simo Sorce [Sun, 22 Oct 2006 21:16:46 +0000 (21:16 +0000)]
r19454: In standalone build init asq too
(This used to be commit
e58b03cd666c6e5df8e5720a62aef23f87be9362)
Simo Sorce [Sun, 22 Oct 2006 21:16:22 +0000 (21:16 +0000)]
r19453: Expose helper functions
(This used to be commit
ee86e88e4f523d67900b52b5a4d4040a76360c61)
Simo Sorce [Sun, 22 Oct 2006 21:15:30 +0000 (21:15 +0000)]
r19452: Warn but don't die if registering against the rootdse is not possible
(This used to be commit
4ad2eba2aa7711d480a844766e2dd3da938b3413)
Derrell Lipman [Sun, 22 Oct 2006 02:57:28 +0000 (02:57 +0000)]
r19449: ldbbrowse: installation hopefully works now. "Developer" installations
('configure.developer' or 'configure --enable-developer') may still have
problems as I'm not sure I got all of the paths right for that.
With the changes Tridge has made to the Main Menu in swat, given a
non-developer installation, you should be able to get to ldbbrowse via:
JSON/qooxdoo -> ldb browser
Derrell
(This used to be commit
2406af10791cd8545c598c8591a48de5515c7dc5)
Stefan Metzmacher [Sat, 21 Oct 2006 11:50:34 +0000 (11:50 +0000)]
r19443: reset trap when we have removed the test specifc files already
metze
(This used to be commit
15d24f355a32b9b028d3397911194fa681dd0a40)
Stefan Metzmacher [Sat, 21 Oct 2006 10:12:39 +0000 (10:12 +0000)]
r19442: this real cause of the failures on *BSD came from the missing
ICONV dependency and not from a broken configure test
and incorrect ifdef's.
metze
(This used to be commit
3df2cb1ea82dae7395d3d19ba73f97dad26bb86b)
Andrew Tridgell [Sat, 21 Oct 2006 09:46:12 +0000 (09:46 +0000)]
r19441: work in progress support for NFS4 ACLs in Samba4 on Linux. Still work
to do, particularly with getting the detailed bit mappings right, and
on sid mapping. Does not pass RAW-ACLS yet
(This used to be commit
b92553481b534d0ef5277dbfe8c0d64a03f819eb)
Andrew Tridgell [Sat, 21 Oct 2006 09:42:46 +0000 (09:42 +0000)]
r19440: merged from samba3
(This used to be commit
c22fb040234d0cb808fb36e1b4b7ea7bfd45c8cb)
Andrew Tridgell [Sat, 21 Oct 2006 09:38:16 +0000 (09:38 +0000)]
r19439: revert my change to a torture assert - expected is a bool
(This used to be commit
1d231e45bd898c2d01328aea94f8cbc2886c9e5b)
Andrew Tridgell [Sat, 21 Oct 2006 09:15:15 +0000 (09:15 +0000)]
r19438: try to fix up the build breakages on BSD systems due to incorrectly
detecting iconv.h
(This used to be commit
e6baa13e1f9c35f95021512b713cebba680b2a72)
Andrew Tridgell [Sat, 21 Oct 2006 08:27:18 +0000 (08:27 +0000)]
r19437: don't run the LOCAL-ICONV test on systems that don't have CP850
support
(This used to be commit
bb8cdd7626ced37bb030c3474390275c433c88e0)
Andrew Tridgell [Sat, 21 Oct 2006 06:56:51 +0000 (06:56 +0000)]
r19436: fixed stderr in piped_child() as well
(This used to be commit
db000261f4fe22f7d1ea3dab53c2e214dcf08bfb)
Andrew Tridgell [Sat, 21 Oct 2006 06:44:36 +0000 (06:44 +0000)]
r19435: fixed the subunit code on platforms with small pipe buffers, and use
pipe() on all platforms, not socket pairs (stdin/out are not sockets)
also show the output while its happening, so the tests become useful
again for non-automated usage.
I still really dislike running tests like the TALLOC one as child
processes
(This used to be commit
b621999c59fc56a32ff574523204355c5e0382c0)
Andrew Tridgell [Sat, 21 Oct 2006 06:40:39 +0000 (06:40 +0000)]
r19434: we need to force line buffering as the new torture code doesn't create
a pty in the piped_child() code
Jelmer, if you want to fix this on platforms that support it, see the
forkpty() call, or see
http://junkcode.samba.org/ftp/unpacked/junkcode/rline/
(This used to be commit
35908a29922b93d133b19881dc8205a7116cae8e)
Andrew Tridgell [Sat, 21 Oct 2006 06:13:50 +0000 (06:13 +0000)]
r19433: Metze, please take a look at this one!
Failures on some platforms of the WINSREPLICATION test have been
bugging us for months. I finally traced it down to this one record, at
least on the SerNet-solaris8 machine. Disabling this one record allows
the test to pass. I have no idea why, but I'll leave that to Metze :)
(This used to be commit
94cdfd5458e5c8bc6451d3eb776cbfc0c1d590a7)
Brad Henry [Sat, 21 Oct 2006 03:18:09 +0000 (03:18 +0000)]
r19432: This way of reverting snapshots is much better than the way I was doing them before.
(This used to be commit
42171cbf4959ba36114762a09a747a3c7c87d135)
Andrew Tridgell [Fri, 20 Oct 2006 23:32:23 +0000 (23:32 +0000)]
r19428: moved tdbutil.c from lib/tdb/common/ to lib/util/util_tdb.c
tdbutil.c is Samba specific, so should not be part of the generic tdb
library
(This used to be commit
979dd24f5e44605fc1603b690913b8c31be7478f)
Stefan Metzmacher [Fri, 20 Oct 2006 15:20:48 +0000 (15:20 +0000)]
r19427: print out the currect name
metze
(This used to be commit
0fcdc8c243f50da5a1203370740ac8d022a5cfdc)
Andrew Tridgell [Fri, 20 Oct 2006 09:48:18 +0000 (09:48 +0000)]
r19425: two more tdb functions from samba3
(This used to be commit
c9d9d79c34e8a36a6f684b173b1cc861330adc5c)
Andrew Tridgell [Fri, 20 Oct 2006 08:06:14 +0000 (08:06 +0000)]
r19423: merge some tdb changes from SAMBA_3_0 to SAMBA_4_0
this is in preparation of a merge in the other direction
(This used to be commit
db3211079fd594aa03c3b9bb3eb6ad86bdd32837)
Andrew Tridgell [Thu, 19 Oct 2006 10:02:26 +0000 (10:02 +0000)]
r19412: some rather strange looking changes to talloc that gain us about 50%
in the talloc benchmark. These changes were driven by some cachegrind
profiles, with the biggest improvements coming from inlining some
functions.
I don't think it would be a good idea to start spreading inline and
likely()/unlikely() in other parts of Samba, as the benefit in most
code will be very small, but talloc() is such a speed critical part of
Samba that I think these changes are worthwhile
(This used to be commit
8644708c3f42d249b5d1fd2bde37aeb35288da13)
Andrew Tridgell [Thu, 19 Oct 2006 09:35:05 +0000 (09:35 +0000)]
r19411: sigh - we can't call close here as its mapped to swrap_close() in the
build farm
(This used to be commit
be43b8c5692f6bb6f1cc74d07f24376b43593256)
Andrew Tridgell [Thu, 19 Oct 2006 08:58:55 +0000 (08:58 +0000)]
r19410: - fixed checker error
- close the sockets after the socketpair test
(This used to be commit
e679163ac26dccee028ca501e4ef6229a3c761ee)
Love Hörnquist Åstrand [Thu, 19 Oct 2006 04:56:21 +0000 (04:56 +0000)]
r19409: Pull in <sys/time.h> for struct timeval for non samba build (don't
depend on namespace pollution)
(This used to be commit
5052d2d10693e67f1b7c6c71277c8d1bc9c8b612)
Andrew Tridgell [Thu, 19 Oct 2006 03:04:00 +0000 (03:04 +0000)]
r19408: I think tm_mon is ending up as -1 on some platforms
(This used to be commit
d01bdf1f2dcdf77043a5ad162ee336d3c6f2e944)
Derrell Lipman [Thu, 19 Oct 2006 01:19:44 +0000 (01:19 +0000)]
r19407: add a copyright notice
(This used to be commit
802ede34e83014fe216a5b7bcdf18586327a8a09)
Derrell Lipman [Thu, 19 Oct 2006 01:10:57 +0000 (01:10 +0000)]
r19406: ldbbrowse: done!
With ldbbrowse, you can issue searches or browse the database in tree format.
To try it, ensure that "make installswat" is done (it's run by "make install"
so you shouldn't have to do anything special). Run smbd and connect with your
browser to http://localhost:901/apps/samba/utils/ldbbrowse.html
(It looks great in firefox. There's some problem with the layout in IE.
Maybe if I get really really motivated one of these days, I'll look into that.)
There's lots more that could be done with it, but as an example of using
qooxdoo and JSON-RPC, I think it accomplishes its task.
Enjoy!
Derrell
(This used to be commit
0888c7098daefc23738dd47fe1c072516ba55feb)
Andrew Tridgell [Thu, 19 Oct 2006 00:59:33 +0000 (00:59 +0000)]
r19405: the talloc speed test suite was not giving an accurate picture of the
cost of talloc versus malloc. The size parameter in the test suite was
constantly increasing, leading to a worst case for malloc. It is far
more common to have talloc calls of 100 bytes or lower, so change the
benchmark to reflect this.
This makes talloc look much worse - on my laptop I now get:
talloc:
5615164 ops/sec
malloc:
14337130 ops/sec
I'm working on improving that.
(This used to be commit
db273ef4dd6ab58da57bb4b59fb1fd5568585ed8)
Andrew Tridgell [Wed, 18 Oct 2006 23:27:48 +0000 (23:27 +0000)]
r19404: fixed the LOCAL-ICONV test
(This used to be commit
0b3e83814bdf015064d7dd1f26cf9ec3ddadc7f4)
Andrew Tridgell [Wed, 18 Oct 2006 22:33:20 +0000 (22:33 +0000)]
r19403: try to fix the crashes in the buildfarm related to timegm
(This used to be commit
c4e1d2c5ae11acac7dd2cedca411b9b6be84962f)
Andrew Tridgell [Wed, 18 Oct 2006 21:45:46 +0000 (21:45 +0000)]
r19402: - use the new tdb_lockall_read() to make ldb_search() more efficient,
by avoiding chain locks on each tdb_fetch() within the search
- use the tdb_get_seqnum() call to avoid re-reading the @BASEINFO
record when it hasn't changed.
These speed up the LOCAL-DBSPEED test for ldb from 7k ops/sec to a bit
over 11k ops/sec
(This used to be commit
1347ad254eb8cd12ce22a5a2a37bec0a0ac8dbf1)
Andrew Tridgell [Wed, 18 Oct 2006 21:41:59 +0000 (21:41 +0000)]
r19401: make tdb_lockall() much more efficient, and add a tdb_lockall_read()
call which does a read lock on all chains. These will be used to make
ldb searches more efficient
(This used to be commit
de664ec1f8cf179f1d650563272c0de3f7636e2b)
Andrew Tridgell [Wed, 18 Oct 2006 21:37:37 +0000 (21:37 +0000)]
r19400: fixed a valgrind error in the directory registry backend (name was
used after closedir(), which invalidates the name)
(This used to be commit
d8af519c2d2fcab3baa822c5fd4c1079dcbd1de3)