summaryrefslogtreecommitdiff
path: root/mkfs/common.h
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2017-01-31 23:13:54 +0100
committerDavid Sterba <dsterba@suse.com>2017-03-08 13:00:46 +0100
commit11c83cefb8b4a03b1835efaf603ddc95430a0c9e (patch)
tree40eadc38c54f41235a6defd65d0782c25ab496c8 /mkfs/common.h
parentdf32b5fa2298dab7fb3ee955c3f496570c20d5de (diff)
btrfs-progs: move more mkfs declarations to the common header
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'mkfs/common.h')
-rw-r--r--mkfs/common.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/mkfs/common.h b/mkfs/common.h
index 2a188390..7011c672 100644
--- a/mkfs/common.h
+++ b/mkfs/common.h
@@ -25,6 +25,9 @@
#include "kerncompat.h"
#include "common-defs.h"
+#define BTRFS_MKFS_SYSTEM_GROUP_SIZE SZ_4M
+#define BTRFS_MKFS_SMALL_VOLUME_SIZE SZ_1G
+
struct btrfs_mkfs_config {
char *label;
char fs_uuid[BTRFS_UUID_UNPARSED_SIZE];
@@ -41,5 +44,12 @@ struct btrfs_mkfs_config {
};
int make_btrfs(int fd, struct btrfs_mkfs_config *cfg);
+u64 btrfs_min_dev_size(u32 nodesize);
+u64 btrfs_min_global_blk_rsv_size(u32 nodesize);
+int test_minimum_size(const char *file, u32 nodesize);
+int is_vol_small(const char *file);
+int test_num_disk_vs_raid(u64 metadata_profile, u64 data_profile,
+ u64 dev_cnt, int mixed, int ssd);
+int test_dev_for_mkfs(const char *file, int force_overwrite);
#endif