scoutfs-utils: add transaction seq btree

Signed-off-by: Zach Brown <zab@versity.com>
This commit is contained in:
Zach Brown
2019-04-12 10:54:20 -07:00
committed by Zach Brown
parent 587760edb3
commit 3c9eeeb2ef
3 changed files with 35 additions and 4 deletions
+11 -1
View File
@@ -280,6 +280,15 @@ struct scoutfs_lock_client_btree_key {
__be64 node_id;
} __packed;
/*
* The server tracks transaction sequence numbers that clients have
* open. This limits results that can be returned from the seq indices.
*/
struct scoutfs_trans_seq_btree_key {
__be64 trans_seq;
__be64 node_id;
} __packed;
/*
* The max number of links defines the max number of entries that we can
* index in o(log n) and the static list head storage size in the
@@ -453,7 +462,7 @@ struct scoutfs_super_block {
__le64 format_hash;
__u8 uuid[SCOUTFS_UUID_BYTES];
__le64 next_ino;
__le64 next_seq;
__le64 next_trans_seq;
__le64 total_blocks;
__le64 free_blocks;
__le64 alloc_cursor;
@@ -465,6 +474,7 @@ struct scoutfs_super_block {
struct scoutfs_manifest manifest;
struct scoutfs_quorum_config quorum_config;
struct scoutfs_btree_root lock_clients;
struct scoutfs_btree_root trans_seqs;
} __packed;
#define SCOUTFS_ROOT_INO 1