1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-08 21:18:16 +03:00
samba-mirror/lib/tdb
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
..
ABI tdb: version 1.3.14 2017-07-02 17:35:19 +02:00
common tdb: Use posix_fallocate 2017-08-24 05:38:49 +02:00
docs Fix various spelling errors 2015-11-06 13:43:45 +01:00
include tdb: Add new function tdb_transaction_active() 2017-07-02 17:35:19 +02:00
man tdbtool: Add "storehex" command 2017-04-22 09:16:16 +02:00
python tdb: eliminate deprecation warnings in python tests 2016-02-16 19:58:39 +01:00
test tdb: Add new function tdb_transaction_active() 2017-07-02 17:35:19 +02:00
tools tdbtool: Add "storehex" command 2017-04-22 09:16:16 +02:00
web Update tdb and talloc web pages 2009-05-05 19:04:39 -04:00
_tdb_text.py pyldb: Add a text-based interface for Python 3 2015-07-21 19:04:15 +02:00
configure tdb: Remove autotools support. 2010-12-24 01:15:05 +01:00
doxy.config doc: Remove build/ from doxygen config or it will not work in brew. 2012-08-04 16:31:22 +02:00
Makefile tdb: import unit tests from CCAN into tdb/test/ 2012-02-14 04:05:43 +10:30
pytdb.c tdb python binding: raise KeyError(key) when the key doesn't exist 2015-07-21 19:04:15 +02:00
tdb.pc.in s4-pkgconfig: add @LIB_RPATH@ to our link flags 2010-12-08 12:46:00 +01:00
wscript tdb: version 1.3.14 2017-07-02 17:35:19 +02:00