summaryrefslogtreecommitdiff
path: root/utils.h
diff options
context:
space:
mode:
authorSebastian Thorarensen <sebth@naju.se>2015-03-20 02:10:15 +0100
committerDavid Sterba <dsterba@suse.cz>2015-03-23 16:53:15 +0100
commit50580171cb4482e30a30077cb6a734203b745e81 (patch)
tree75c2388fb2c2bb8ac551fcca44aa19ee8bc03b86 /utils.h
parent7a81861b5903251376c2abeb659610f61256f548 (diff)
btrfs-progs: mkfs: Move out some nodesize code
Move the constant DEFAULT_MKFS_LEAF_SIZE to utils.h and rename it to BTRFS_MKFS_DEFAULT_NODE_SIZE for consistency. Move the function check_leaf_or_node_size to utils.c and rename it to btrfs_check_node_or_leaf_size. Signed-off-by: Sebastian Thorarensen <sebth@naju.se> [added btrfs_ prefix] Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'utils.h')
-rw-r--r--utils.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/utils.h b/utils.h
index 82ab5e82..599b007e 100644
--- a/utils.h
+++ b/utils.h
@@ -25,6 +25,7 @@
#define BTRFS_MKFS_SYSTEM_GROUP_SIZE (4 * 1024 * 1024)
#define BTRFS_MKFS_SMALL_VOLUME_SIZE (1024 * 1024 * 1024)
+#define BTRFS_MKFS_DEFAULT_NODE_SIZE 16384
#define BTRFS_SCAN_MOUNTED (1ULL << 0)
#define BTRFS_SCAN_LBLKID (1ULL << 1)
@@ -208,5 +209,6 @@ static inline u64 div_factor(u64 num, int factor)
}
int btrfs_tree_search2_ioctl_supported(int fd);
+int btrfs_check_node_or_leaf_size(u32 size, u32 sectorsize);
#endif