Implement high-level snapshot flatten and remove commands

This commit is contained in:
Vitaliy Filippov
2021-09-25 01:36:44 +03:00
parent 95c55da0ad
commit 3a3e168c42
2 changed files with 510 additions and 24 deletions
+1
View File
@@ -9,6 +9,7 @@
#define POOL_ID_MAX 0x10000
#define POOL_ID_BITS 16
#define INODE_POOL(inode) (pool_id_t)((inode) >> (64 - POOL_ID_BITS))
#define INODE_NO_POOL(inode) (inode_t)(inode & ((1l << (64-POOL_ID_BITS)) - 1))
// Pool ID is 16 bits long
typedef uint32_t pool_id_t;