From cdbc10729266c03aeb2eb812c17a3ef6c1ceae26 Mon Sep 17 00:00:00 2001 From: Anand Jain Date: Fri, 30 Aug 2013 16:50:37 +0800 Subject: btrfs-progs: mkfs should check for small vol well before This fix the regression introduced by 830427d that it no more creates the FS if disk is small and if no mixed option is provided. This patch will bring it to the original design which will force mixed profile when disk is small and go ahead to create the FS. Which also means that before we open the device for the write we should also check if disk is small. v2: fixes the checkpatch.pl warnings Signed-off-by: Anand Jain Signed-off-by: David Sterba Signed-off-by: Chris Mason --- utils.h | 1 + 1 file changed, 1 insertion(+) (limited to 'utils.h') diff --git a/utils.h b/utils.h index 5dc1d98c..dc795f41 100644 --- a/utils.h +++ b/utils.h @@ -77,4 +77,5 @@ int scan_for_btrfs(int where, int update_kernel); int get_label_mounted(const char *mount_path, char *labelp); int test_num_disk_vs_raid(u64 metadata_profile, u64 data_profile, u64 dev_cnt, int mixed, char *estr); +int is_vol_small(char *file); #endif -- cgit v1.2.3