summaryrefslogtreecommitdiff
path: root/lib/tdb2/private.h
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2012-01-30 09:24:50 +1030
committerRusty Russell <rusty@rustcorp.com.au>2012-01-30 09:24:50 +1030
commitefbf52b4fe62eeed085961d7e2689b869bae63dc (patch)
tree2b9c45dca6168947ca3c25443268a71043b43b12 /lib/tdb2/private.h
parent205e198471a481b849d05b5756261f1739c0c8b2 (diff)
downloadsamba-efbf52b4fe62eeed085961d7e2689b869bae63dc.tar.gz
samba-efbf52b4fe62eeed085961d7e2689b869bae63dc.tar.bz2
samba-efbf52b4fe62eeed085961d7e2689b869bae63dc.zip
tdb2: copy tdb1's changed expansion logic.
TDB2 uses the same expansion logic as TDB1, which got factored out recently. So update TDB2 to match. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (Imported from CCAN commit c438ec17d7b2efe76e56e5fc5ab88bd4a02735e8)
Diffstat (limited to 'lib/tdb2/private.h')
-rw-r--r--lib/tdb2/private.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/tdb2/private.h b/lib/tdb2/private.h
index 9b044610ae..91d3ca0933 100644
--- a/lib/tdb2/private.h
+++ b/lib/tdb2/private.h
@@ -437,6 +437,9 @@ tdb_off_t bucket_off(tdb_off_t ftable_off, unsigned bucket);
/* Used by tdb_summary */
tdb_off_t dead_space(struct tdb_context *tdb, tdb_off_t off);
+/* Adjust expansion, used by create_recovery_area */
+tdb_off_t tdb_expand_adjust(tdb_off_t map_size, tdb_off_t size);
+
/* io.c: */
/* Initialize tdb->methods. */
void tdb_io_init(struct tdb_context *tdb);