summaryrefslogtreecommitdiff
path: root/mkfs
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2017-02-01 14:17:12 +0100
committerDavid Sterba <dsterba@suse.com>2017-03-08 13:00:46 +0100
commita2ed85a11ddbc152190b8dd24a59920ffec3f027 (patch)
tree15f86e3b81abee0ff70aa62fdff52660d9c673e5 /mkfs
parente945e27712782de2dab3a28bc0a813e72c9f684f (diff)
btrfs-progs: mkfs: describe fields of btrfs_mkfs_config
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'mkfs')
-rw-r--r--mkfs/common.h17
1 files changed, 12 insertions, 5 deletions
diff --git a/mkfs/common.h b/mkfs/common.h
index 7011c672..09edc28b 100644
--- a/mkfs/common.h
+++ b/mkfs/common.h
@@ -29,17 +29,24 @@
#define BTRFS_MKFS_SMALL_VOLUME_SIZE SZ_1G
struct btrfs_mkfs_config {
+ /* Label of the new filesystem */
char *label;
- char fs_uuid[BTRFS_UUID_UNPARSED_SIZE];
- char chunk_uuid[BTRFS_UUID_UNPARSED_SIZE];
- u64 blocks[8];
- u64 num_bytes;
+ /* Blck sizes */
u32 nodesize;
u32 sectorsize;
u32 stripesize;
+ /* Bitfield of incompat features, BTRFS_FEATURE_INCOMPAT_* */
u64 features;
+ /* Size of the filesystem in bytes */
+ u64 num_bytes;
+ /* Logical addresses of superblock [0] and other tree roots */
+ u64 blocks[8];
+
+ /* Output fields, set during creation */
+ char fs_uuid[BTRFS_UUID_UNPARSED_SIZE];
+ char chunk_uuid[BTRFS_UUID_UNPARSED_SIZE];
- /* Super bytenr after make_btrfs */
+ /* Superblock offset after make_btrfs */
u64 super_bytenr;
};