btrfs-progs: mkfs should check for small vol well before
authorAnand Jain <anand.jain@oracle.com>
Fri, 30 Aug 2013 08:50:37 +0000 (16:50 +0800)
committerChris Mason <chris.mason@fusionio.com>
Wed, 16 Oct 2013 12:20:03 +0000 (08:20 -0400)
commitcdbc10729266c03aeb2eb812c17a3ef6c1ceae26
tree07f8b91940f7436f143800be36f91dcd998c919d
parent71d6bd3c8d70fb682c7fd50796f587ce1f1cf6f8
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 <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
mkfs.c
utils.c
utils.h