1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00
Commit Graph

246 Commits

Author SHA1 Message Date
Rafal Szczesniak
33d1e2dd63 Added copyrights I forgot about looong ago...
rafal
0001-01-01 00:00:00 +00:00
Jeremy Allison
14dee03801 Fix the "too many fcntl locks" scalability problem raised by tridge.
I've now tested this in daemon mode and also on xinetd and I'm pretty
sure it's working.
Jeremy.
0001-01-01 00:00:00 +00:00
Tim Potter
2423a45947 Don't log an error in tdb_brlock() if a non-blocking lock returns EAGAIN -
it's supposed to do that.
0001-01-01 00:00:00 +00:00
Andrew Bartlett
c9f9d6d317 In tdb_allocate(), we would create a new record by writing a local variable
'newrec' into the tdb.

This was not initialised, so valgrind warned about it.

(Note:  valgrind only makes sense on tdbs with 'mmap = no' in your smb.conf)

Andrew Bartlett
0001-01-01 00:00:00 +00:00
Jeremy Allison
1ae1987a00 IRIX spinlock patch from James Peach <jpeach@sgi.com>.
Jeremy.
0001-01-01 00:00:00 +00:00
Tim Potter
2d03d81f75 Add some debugs in the error paths for tdb_brlock() to help track down
a locking problem on HPUX.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
76992e7d16 fixed spinlocks in tdb
I still wouldn't recommend them, but at least they now work
0001-01-01 00:00:00 +00:00
Simo Sorce
c78f2d0bd1 split some security related functions in their own files.
(no need to include all of smbd files to use some basic sec functions)

also minor compile fixes
couldn't compile to test these due to some kerberos problems wirh 3.0,
but on HEAD they're working well, so I suppose it's ok to commit
0001-01-01 00:00:00 +00:00
Jeremy Allison
93669f329e Portability fixes from schmitz@hp.com (Joachim Schmitz). Bug #549.
Jeremy.
0001-01-01 00:00:00 +00:00
Gerald Carter
e1fac713e2 fix some warnings found by the Sun C compiler 0001-01-01 00:00:00 +00:00
Jeremy Allison
155c9ce666 Change some internal interfaces to cause the hash (which is *expensive*)
to be calculated less often. No change to external interface.
Jeremy.
0001-01-01 00:00:00 +00:00
Gerald Carter
d0d85dd49c adding command for moving a record from one tdb to another 0001-01-01 00:00:00 +00:00
Gerald Carter
5df7b9a3ef make tdbtool deal with NULL and non-NULL terminated keys 0001-01-01 00:00:00 +00:00
Gerald Carter
66359531b8 i guess i'm the only one this ever annyoed...
fix the confusion when we tdb_lock_bystring() but
we retrieve an entry using tdb_fetch_by_string.
It's now always tdb.*bystring()
0001-01-01 00:00:00 +00:00
Volker Lendecke
0f3822c8e7 Different fix for memleak just committed. This belongs into
tdb_search_list_free.

Volker
0001-01-01 00:00:00 +00:00
Simo Sorce
73e13b9baf do not forget the include file :-) 0001-01-01 00:00:00 +00:00
Simo Sorce
2bdbeb9e97 add tdb backup function separation and winbind idmap upgrade code form
pre-2.2.4 tdb database format.

tx volker for your work on this
0001-01-01 00:00:00 +00:00
Andrew Tridgell
f327c06108 fixed a bug found by volker
when we are traversing a readonly dababase we should not try to
cleanup the pending-delete records
0001-01-01 00:00:00 +00:00
Volker Lendecke
6684f5b11f Get rid of a const warning.
Volker
0001-01-01 00:00:00 +00:00
Volker Lendecke
678e68a295 Fix typo found by Vance 0001-01-01 00:00:00 +00:00
Tim Potter
865c112756 spelling 0001-01-01 00:00:00 +00:00
Andrew Bartlett
76cd4a8901 Start merging mimir's trusted domain code from HEAD to 3.0. (for HEAD trusting
NT).
0001-01-01 00:00:00 +00:00
Andrew Bartlett
5c978e39f2 Merge valgrind header usage from HEAD. 0001-01-01 00:00:00 +00:00
Jelmer Vernooij
0bc9e5e5d7 It's #ifdef CONFIG_H, not #if CONFI_H 0001-01-01 00:00:00 +00:00
Tim Potter
72e7290daa Comment syncup. 0001-01-01 00:00:00 +00:00
Tim Potter
4f07ab4b6d Merge of tdbtool multi-line string fix. 0001-01-01 00:00:00 +00:00
Jeremy Allison
9783929d4e Fix from Andrew Esh to ensure tdb_pack can't segfault.
Jeremy.
0001-01-01 00:00:00 +00:00
Tim Potter
0eee7a4b1e Merge of tdb_unlockeys() crash fix. 0001-01-01 00:00:00 +00:00
Martin Pool
7090d9f693 When opening an existing DB, don't require the hash_size specified to
the open call to be the same as that of the existing tdb.  The
specified hash_size is only used if the tdb needs to be (re)created.

With this patch in place, tdbtool can open the printing tdbs, which
are created with a hash_size of 5000.  Before it would fail with EIO.
0001-01-01 00:00:00 +00:00
Jeremy Allison
fcaacb5fab Ensure tdb error code is set for corrupt and i/o errors before calling
the log function. This allows the log function to take action.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
b300696cb5 Ensure we overwrite a tdb if the hash size changes.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
07efebb984 Add 3 second timeout when terminating server and sending print notify
messages. Stops build-up of large numbers of smbd's waiting to terminate
on large print throughput.
Jeremy.
0001-01-01 00:00:00 +00:00
Gerald Carter
0fb724b321 *lots of small merges form HEAD
*sync up configure.in
*don't build torture tools in make all
*make sure to remove torture tools as part of make clean
0001-01-01 00:00:00 +00:00
Andrew Bartlett
7d52f011e7 Merge from HEAD:
Keep all the const warnings in one place, by adding a utility function to
make the TDB_DATA.
0001-01-01 00:00:00 +00:00
Gerald Carter
d1c97738ba fix tdb_append() prototype 0001-01-01 00:00:00 +00:00
Jeremy Allison
724cefabb0 Added tdb_append() call. Efficiently adds to an entry. Used by new messaging
code. Also added torture tests for it.
Jeremy.
0001-01-01 00:00:00 +00:00
Andrew Bartlett
3a7458f947 Merge from HEAD - make Samba compile with -Wwrite-strings without additional
warnings.  (Adds a lot of const).

Andrew Bartlett
0001-01-01 00:00:00 +00:00
Tim Potter
0f556b1c02 Merge of some kind of bugfix from idra. 0001-01-01 00:00:00 +00:00
Jeremy Allison
ec4ed45563 Fixed auth module code. Added VALGRIND defines to reduce spurious warnings.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
5d5762d178 Lots of fixes for error paths where tdb_fetch() data need freeing.
Found via a post from Arcady Chernyak <Arcady.Chernyak@efi.com>.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
d4b795e6a4 Add chainlock_read functions to get a read lock. Used in *massively*
contended tdb's (and I've got one :-).
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
d030df7643 Merge of scalable printing code fix... Needs testing.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
9fe3c0b90d Add a timeout to tdb_lock_bystring(). Ensure we never have more than
MAX_PRINT_JOBS in a queue.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
7b841247bd Make explicit the difference between a tdb key with no data attached, and
a non existent entry. Stop a malloc(0) being called in the first case.
Jeremy.
0001-01-01 00:00:00 +00:00
Gerald Carter
65e7b5273b sync'ing up for 3.0alpha20 release 0001-01-01 00:00:00 +00:00
Andrew Tridgell
03ac082dcb updated the 3.0 branch from the head branch - ready for alpha18 0001-01-01 00:00:00 +00:00
cvs2svn Import User
b8d39651fb This commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'. 0001-01-01 00:00:00 +00:00
Jeremy Allison
b0909cfa14 *Experimental* new large-scaling printer code. Splits printing.tdb into
a separate tdb per printer, but only keeps (currently one) tdb open at
a time (although this is easily changed by changing a #define). Needs
scalability testing with large numbers of printers now....
Jeremy.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
ae2f8aa9d0 don't backup to a newer file 0001-01-01 00:00:00 +00:00
Tim Potter
0cd3952f40 Added tdb_delete_by_string() function. 0001-01-01 00:00:00 +00:00