From efbf52b4fe62eeed085961d7e2689b869bae63dc Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Mon, 30 Jan 2012 09:24:50 +1030 Subject: 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 (Imported from CCAN commit c438ec17d7b2efe76e56e5fc5ab88bd4a02735e8) --- lib/tdb2/private.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/tdb2/private.h') 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); -- cgit