Michael Adam
7b2cabea55
r24738: Fix one more use of pwrite in tdb code in the spirit of r23972 and r23977.
...
Michael
2007-10-10 15:03:01 -05:00
Jelmer Vernooij
48d1aa4fcf
r24337: Make libreplace provide offsetof.
2007-10-10 15:01:39 -05:00
Jelmer Vernooij
f90a698387
r24336: Use standard data type uint32_t rather than tdb-specific u32.
2007-10-10 15:01:39 -05:00
Michael Adam
b97acdc67b
r23980: Fix one more use of pwrite in expand_file.
...
Michael
2007-10-10 15:01:15 -05:00
Michael Adam
eb524df0a5
r23979: Fix another occurence of (written != requested) as an
...
error condition to write. This is in tdb_new_database.
Fix one call to tdb_new_database in tdb_open_ex to not
overwrite the newly propagated errno (typically ENOSPC).
Michael
2007-10-10 15:01:14 -05:00
Michael Adam
868cdb1781
r23978: Merge r23161 from Samba3:
...
Add TDB_VOLATILE as open_flag to activate the per-hashchain dead record
optimization.
2007-10-10 15:01:14 -05:00
Michael Adam
7f415d1223
r23977: Im prove the pwrite-patch to tdb_expand_file of r23972:
...
* prevent infinite loops due to 0 bytes written:
try once more. if we still get 0 as return,
set errno to ENOSPC and return -1 (error)
* replace int by correct types (ssize_t and size_t).
* print a warning log message in case "written < requested to write"
usually this means, that the next call to pwrite will fail
with return value -1 and set errno accordingly.
Note that the former error condition "written != requested to write"
is not a correct error condition of write/pwrite. If this is due
to an error, a subsequent call to (p)write will reveal the cause
(typically "no space left on device" - ENOSPC).
Michael
2007-10-10 15:01:13 -05:00
Michael Adam
4c3c6363f8
r23972: Fix a bug in pwrite error detection in tdb_expand_file():
...
The proper error condition is (ret == -1) instead of
(ret != number_of_byte_told_to_write).
Michael
2007-10-10 15:01:13 -05:00
Michael Adam
dc0104be9a
r23950: unlink before rename is superfluous.
...
Michael
2007-10-10 15:01:10 -05:00
Michael Adam
bf7774360b
r23925: Use NULL instead of 0 for a void * argument.
2007-10-10 15:01:10 -05:00
Michael Adam
1685057927
r23853: Fix a very misleading error message in tdbbackup.
...
Michael
2007-10-10 15:01:04 -05:00
Andrew Tridgell
5c9b19271e
r23801: The FSF has moved around a lot. This fixes their Mass Ave address.
2007-10-10 14:59:18 -05:00
Andrew Tridgell
db92b76a00
r23799: updated old Franklin Street FSF addresses to new URL
2007-10-10 14:59:16 -05:00
Andrew Tridgell
40c0919aaa
r23798: updated old Temple Place FSF addresses to new URL
2007-10-10 14:59:15 -05:00
Andrew Tridgell
76c6bfdeb5
r23796: main COPYING file for samba4, plus some formatting varients
2007-10-10 14:59:14 -05:00
Andrew Tridgell
84b468b2f8
r23795: more v2->v3 conversion
2007-10-10 14:59:14 -05:00
Andrew Tridgell
fcf38a38ac
r23792: convert Samba4 to GPLv3
...
There are still a few tidyups of old FSF addresses to come (in both s3
and s4). More commits soon.
2007-10-10 14:59:12 -05:00
Jeremy Allison
59ba128cb6
r23590: Fix realloc leak on failure case from Jim Meyering <jim@meyering.net>.
...
Jeremy.
2007-10-10 14:53:28 -05:00
Jeremy Allison
fa880e6cc1
r23371: Fix the misleading comment I added - it really *should*
...
say "locks chain and returned record", not
"and returns record"
Jeremy.
2007-10-10 14:53:13 -05:00
Jeremy Allison
fa548ad75e
r23370: Traverse in tdb wasn't consistently using the
...
travlocks.lock_rw for lock read/write types, it
was sometimes using it (tdb_next_lock) and
sometimes explicitly using F_WRLCK instead.
Change this to consistently use travlocks.lock_rw
only.
I'm pretty sure about this fix (else I woudn't
be checking this in :-) but tridge and Volker
please review.
Jeremy.
2007-10-10 14:53:12 -05:00
Andrew Tridgell
9dbb2633d7
r23238: merged transaction lock changes from ctdb
...
this ensures that having the global lock also implies the transaction
lock
2007-10-10 14:53:06 -05:00
Andrew Tridgell
a88ab4fa3a
r22832: merged the latest tdb changes from ctdb to Samba4
2007-10-10 14:52:22 -05:00
Jelmer Vernooij
8197cb975e
r22637: Install tdbbackup and tdbdump again.
2007-10-10 14:51:57 -05:00
Jelmer Vernooij
9b991ce9ca
r22600: Update bzr ignores, put right version in .pc files, prepare for support of system versions of tdb, talloc.
2007-10-10 14:51:50 -05:00
Jelmer Vernooij
e72cec408e
r22598: Simplify includes for replace.
2007-10-10 14:51:49 -05:00
Jelmer Vernooij
a3ec90a263
r22596: Set _CFLAGS variables rather than putting knowledge in the ldb Makefile.
...
This should make it easier to allow use of system tdb or talloc libs using
pkg-config.
2007-10-10 14:51:48 -05:00
Jelmer Vernooij
54cc097e0f
r22595: Add version numbers.
2007-10-10 14:51:48 -05:00
Jelmer Vernooij
d0f8d46813
r22516: Use DESTDIR
2007-10-10 14:51:36 -05:00
Jelmer Vernooij
846cfcf44d
r22514: Add version numbers to tdb and talloc (required so they can be packaged independent of Samba for Debian).
2007-10-10 14:51:35 -05:00
Andrew Tridgell
bffb8f8800
r22424: fixed the bad merge (thanks to metze for pointing out)
2007-10-10 14:51:18 -05:00
Andrew Tridgell
a0ff739bca
r22422: merged tdb changes from ctdb
2007-10-10 14:51:17 -05:00
Stefan Metzmacher
8f24f6b38e
r22319: sync lib/tdb/ with samba3
...
metze
2007-10-10 14:51:01 -05:00
Andrew Tridgell
ff78be0be4
r22165: merge transaction fix from samba3
2007-10-10 14:49:56 -05:00
Andrew Tridgell
6921f2f709
r22081: transaction_brlock() should be static
...
thanks to Ted T'so for pointing this out
2007-10-10 14:49:48 -05:00
Stefan Metzmacher
5677b01d1d
r22053: remove samba3 specific stuff from tdbtool
...
should I merge this to SAMBA_3_0? as it's also totally
broken there, as the connection_struct definition is completely
different
metze
2007-10-10 14:49:46 -05:00
Stefan Metzmacher
f471e75216
r22052: merge tdbtool from samba3 and build it
...
metze
2007-10-10 14:49:46 -05:00
Stefan Metzmacher
902a76ca70
r22041: merge trivial changes from samba3
...
metze
2007-10-10 14:49:45 -05:00
Volker Lendecke
98a27ab28a
r21722: Add the dead record functionality presented on samba-technical@samba.org. If
...
you do a tdb_set_max_dead(tdb, n), then for this tdb a delete operation will
only mark a record as dead and re-use it if a new record is created. The
parameter n allows for at most n dead records per hash chain. If this number
is exceeded, all dead records are put on the central freelist.
Volker
2007-10-10 14:49:18 -05:00
Volker Lendecke
afe7d78558
r21445: Apply tdb_parse_record Tridges error return, merge to 3_0_25 and 4_0
2007-10-10 14:48:36 -05:00
Volker Lendecke
ed30a0ff60
r21412: The last patch also incremented the seqnum when tdb_store failed. Not as bad
...
as not doing it at all, but needs fixing. Also simplify the logic, I had
missed the "goto out" at the end of the function.
Volker
2007-10-10 14:48:28 -05:00
Volker Lendecke
e518c68fc5
r21410: We have to increment the sequence number also when tdb_update_hash()
...
succeeded. Found while testing the brlock seqnum patch.
Tridge, please check!
Volker
2007-10-10 14:48:27 -05:00
Volker Lendecke
7b5db2e472
r21303: As discussed on samba-technical: Change the static array for the in-memory
...
mirrors of the hash chain locks to a dynamically allocated one.
Jeremy, I count on you to revert it if the build farm freaks out, it's after
midnight here :-)
Volker
2007-10-10 14:48:06 -05:00
Paul Green
41c775efde
r19989: Add support to the tdb Makefile.in for executable extensions and for
...
separately specifying CPPFLAGS and LDFLAGS.
2007-10-10 14:28:44 -05:00
Jeremy Allison
bd0710fa09
r19960: Add code to check for loops in the free list.
...
Should help us validate tdb's against corruption.
Jeremy.
2007-10-10 14:28:40 -05:00
Jelmer Vernooij
1b04669852
r19570: Fix dependencies in pkg-config files.
2007-10-10 14:24:54 -05:00
Andrew Tridgell
979dd24f5e
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
2007-10-10 14:21:30 -05:00
Andrew Tridgell
c9d9d79c34
r19425: two more tdb functions from samba3
2007-10-10 14:21:29 -05:00
Andrew Tridgell
db3211079f
r19423: merge some tdb changes from SAMBA_3_0 to SAMBA_4_0
...
this is in preparation of a merge in the other direction
2007-10-10 14:21:29 -05:00
Andrew Tridgell
de664ec1f8
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
2007-10-10 14:21:26 -05:00
Stefan Metzmacher
bd4cd24a9d
r19276: remove unused file
...
metze
2007-10-10 14:21:01 -05:00