1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-12 04:23:49 +03:00
Commit Graph

218 Commits

Author SHA1 Message Date
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
Andrew Tridgell
61104953c8 r18604: fixed shell syntax 2007-10-10 14:18:55 -05:00
Andrew Tridgell
13878b7e7e r18600: - fix shell syntax in tests for libraries
- add library test for libpopt
2007-10-10 14:18:55 -05:00
Andrew Tridgell
9f45f970f7 r18594: fail the configure step if the required library is not found for tdb,
talloc or libreplace
2007-10-10 14:18:54 -05:00
Andrew Tridgell
5a8becb1be r18539: 'make distclean' should delete config.cache 2007-10-10 14:18:43 -05:00
Andrew Tridgell
823cd3ab35 r18535: move the AC_CANONICAL_HOST and host specific flag tests into
libreplace. This should fix the standalone build of tdb on HPUX, where
we need to blacklist mmap.

Unfortunately this requires that we have a copy of config.guess and
config.sub in each of our project subdirectories. I tried to find a
way to use something like AC_CONFIG_AUX_DIR($libreplacedir) and just
put config.{guess,sub} in the lib/replace/ directory, but I couldn't
figure out how to do that in a way that kept autoconf happy for each
of our separate builds. Any autoconf guru out there see a way to do
this?
2007-10-10 14:18:42 -05:00
Stefan Metzmacher
95d33e4d71 r18485: include libreplace.m4 in the aclocal.m4 files
and use the macros in configure.ac

metze
2007-10-10 14:18:36 -05:00
Andrew Tridgell
025b142ff2 r18400: move MAP_FAILED define to lib/replace/system/shmem.h 2007-10-10 14:18:23 -05:00
Andrew Tridgell
eba6c84eff r18301: I discovered how to load the warnings from a build farm build into
emacs compile mode (hint, paste to a file, and compile as "cat
filename").

This allowed me to fix nearly all the warnings for a IA_64 SuSE build
very quickly.
2007-10-10 14:18:04 -05:00
Andrew Tridgell
007da6115a r18285: tdb now needs install-sh 2007-10-10 14:18:01 -05:00
Andrew Tridgell
4860d02565 r18280: more portability tidyups, ensuring we use libreplace everywhere 2007-10-10 14:18:00 -05:00
Stefan Metzmacher
135d096776 r18213: don't list LIBREPLACE depdendecies explicit and
always at it as first private dependencies

metze
2007-10-10 14:17:50 -05:00
Andrew Tridgell
57cd0ca176 r18160: - pread and pwrite replacements need to be non-static
- replacing rename() is pointless - all platforms have it (and the
  #define of rename breaks some code)

- use system/locale.h in snprintf.c

- fix passwd.h for initgroups

- stdlib is in replace.h, not needed elsewhere

- fix the initgroups replacement

- fix mapping of dl functions to rep_*
2007-10-10 14:17:44 -05:00
Stefan Metzmacher
38f9e90a12 r18152: move our AC macros into lib/replace/libreplace_macros.m4
and include them from there

metze
2007-10-10 14:17:43 -05:00
Stefan Metzmacher
477c83c983 r18149: fix make *clean
metze
2007-10-10 14:17:42 -05:00
Stefan Metzmacher
67cb692a48 r18148: - use PHONY for test
- don't try to install with make test
- add make distclean and realdistclean

metze
2007-10-10 14:17:41 -05:00
Andrew Tridgell
a4d1f1d222 r18143: the 'showflags' convention from Samba is useful for the other packages 2007-10-10 14:17:40 -05:00
Andrew Tridgell
2f6cd41f40 r18131: fixed tdb subsystem to use right tdb.h
fixed LIBREPLACE dep in lib/charset
2007-10-10 14:17:37 -05:00
Andrew Tridgell
77d1a468e0 r18129: moved the system includes into libreplace - this gives much more
isolation of our portability environment from the main code, and also
simplifies the includes system (no separate #ifdef _SAMBA_BUILD for
tdb. ldb etc now)
2007-10-10 14:17:36 -05:00
Andrew Tridgell
05521650c6 r18108: move tdb to use the same build methods 2007-10-10 14:17:18 -05:00