X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Ftdb2%2Fprivate.h;h=4b61d13fba3f4f98d82cd902bd264c90838b1dcf;hb=56ea2c52a18a41a88ceaed72aef56c10de85ce93;hp=6c727aff4a20a62dc800e5806079742cd32d7ec1;hpb=3d10865d159072553933fb72394862c884e60079;p=ccan-lca-2011.git diff --git a/ccan/tdb2/private.h b/ccan/tdb2/private.h index 6c727af..4b61d13 100644 --- a/ccan/tdb2/private.h +++ b/ccan/tdb2/private.h @@ -65,6 +65,7 @@ typedef uint64_t tdb_off_t; #define TDB_VERSION ((uint64_t)(0x26011967 + 7)) #define TDB_MAGIC ((uint64_t)0x1999) #define TDB_FREE_MAGIC ((~(uint64_t)TDB_MAGIC) << 6) +#define TDB_COALESCING_MAGIC (0xBAD1DEA2FEEDULL << 6) #define TDB_HASH_MAGIC (0xA1ABE11A01092008ULL) #define TDB_RECOVERY_MAGIC (0xf53bc0e7U) #define TDB_RECOVERY_INVALID_MAGIC (0x0) @@ -380,7 +381,7 @@ int add_free_record(struct tdb_context *tdb, unsigned int zone_bits, int set_header(struct tdb_context *tdb, struct tdb_used_record *rec, uint64_t keylen, uint64_t datalen, - uint64_t actuallen, uint64_t hash, + uint64_t actuallen, unsigned hashlow, unsigned int zone_bits); /* Used by tdb_check to verify. */