X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ftdb2%2Fprivate.h;h=8e7df501b716a139c77e8de2ff673fe1afa55266;hp=e15d1ad835968bfe76a89ac97f64ead1e6db1b2a;hb=2b5cb9bd6be4e61870ba7a400d1a9d91c5933371;hpb=a0e0927e1f34d80fd4d4ee2d68fa2acb94ae9eb2 diff --git a/ccan/tdb2/private.h b/ccan/tdb2/private.h index e15d1ad8..8e7df501 100644 --- a/ccan/tdb2/private.h +++ b/ccan/tdb2/private.h @@ -116,6 +116,9 @@ typedef int tdb_bool_err; #define TDB_OFF_HASH_EXTRA_BIT 57 #define TDB_OFF_UPPER_STEAL_SUBHASH_BIT 56 +/* Additional features we understand. Currently: none. */ +#define TDB_FEATURE_MASK ((uint64_t)0) + /* The bit number where we store the extra hash bits. */ /* Convenience mask to get actual offset. */ #define TDB_OFF_MASK \ @@ -240,7 +243,10 @@ struct tdb_header { tdb_off_t free_table; /* (First) free table. */ tdb_off_t recovery; /* Transaction recovery area. */ - tdb_off_t reserved[26]; + uint64_t features_used; /* Features all writers understand */ + uint64_t features_offered; /* Features offered */ + + tdb_off_t reserved[24]; /* Top level hash table. */ tdb_off_t hashtable[1ULL << TDB_TOPLEVEL_HASH_BITS];