1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
samba-mirror/lib/tdb/common
Volker Lendecke a475e1c4b0 tdb: Use posix_fallocate
This should be significantly faster than pwriting.

openbsd doesn't have posix_fallocate, so we do need the fallback. Also, it
might have weird failure modes, so we keep the old code in place except for
posix_fallocate returning success or ENOSPC.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>

Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Thu Aug 24 05:38:49 CEST 2017 on sn-devel-144
2017-08-24 05:38:49 +02:00
..
check.c tdb: introduce TDB_SUPPORTED_FEATURE_FLAGS 2014-05-22 21:05:15 +02:00
dump.c tdb: fix tbdtool list freelist output 2017-08-22 23:32:13 +02:00
error.c tdb: Fix blank line endings 2012-12-21 11:54:53 +01:00
freelist.c tdb: defragment the freelist in tdb_allocate_from_freelist() 2014-06-26 12:16:03 +02:00
freelistcheck.c tdb: Use tdb_null in freelistcheck 2013-02-19 15:46:45 +01:00
hash.c tdb: enable VALGRIND to remove valgrind noise. 2011-06-08 11:05:47 +02:00
io.c tdb: Use posix_fallocate 2017-08-24 05:38:49 +02:00
lock.c tdb: document hashtable bucket offset calculation madness 2017-08-22 23:32:13 +02:00
mutex.c tdb: runtime check for robust mutexes may hang in threaded programs 2017-04-27 14:52:16 +02:00
open.c tdb: Clarify the CLEAR_IF_FIRST locked logic 2017-08-17 11:54:10 +02:00
rescue.c tdb: Remove "header" from tdb_context 2013-02-05 13:18:28 +01:00
summary.c tdb: add TDB_MUTEX_LOCKING support 2014-05-22 21:05:15 +02:00
tdb_private.h tbd: BUCKET(-1) returns wrong offset because tdb->hash_size is an unsigned int 2017-08-22 23:32:13 +02:00
tdb.c tdb: Avoid NULL tdb_write 2017-08-09 22:34:17 +02:00
transaction.c tdb: Fix a typo 2017-08-24 01:46:08 +02:00
traverse.c tdb: rename struct tdb_traverse_lock hash member to list 2017-08-22 23:32:13 +02:00