summaryrefslogtreecommitdiff
path: root/mkfs/common.h
diff options
context:
space:
mode:
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