diff options
author | Dimitri John Ledkov <xnox@ubuntu.com> | 2017-10-18 13:15:59 +0100 |
---|---|---|
committer | Dimitri John Ledkov <xnox@ubuntu.com> | 2017-10-18 13:15:59 +0100 |
commit | 74d288e05c2d0cb97186f51049813b3e5b5bb0cd (patch) | |
tree | 4fc213398dc89e053d53ff7d42102942470e9cb5 /mkfs/common.h | |
parent | 569a646293cd782de7665b6158514f3b48d229d3 (diff) |
New upstream release.
Diffstat (limited to 'mkfs/common.h')
-rw-r--r-- | mkfs/common.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/mkfs/common.h b/mkfs/common.h index 666a75b3..dee0ea97 100644 --- a/mkfs/common.h +++ b/mkfs/common.h @@ -28,6 +28,20 @@ #define BTRFS_MKFS_SYSTEM_GROUP_SIZE SZ_4M #define BTRFS_MKFS_SMALL_VOLUME_SIZE SZ_1G +/* + * Tree root blocks created during mkfs + */ +enum btrfs_mkfs_block { + MKFS_SUPER_BLOCK = 0, + MKFS_ROOT_TREE, + MKFS_EXTENT_TREE, + MKFS_CHUNK_TREE, + MKFS_DEV_TREE, + MKFS_FS_TREE, + MKFS_CSUM_TREE, + MKFS_BLOCK_COUNT +}; + struct btrfs_mkfs_config { /* Label of the new filesystem */ const char *label; @@ -43,7 +57,7 @@ struct btrfs_mkfs_config { /* Output fields, set during creation */ /* Logical addresses of superblock [0] and other tree roots */ - u64 blocks[8]; + u64 blocks[MKFS_BLOCK_COUNT + 1]; char fs_uuid[BTRFS_UUID_UNPARSED_SIZE]; char chunk_uuid[BTRFS_UUID_UNPARSED_SIZE]; |