Btrfs-progs: add support for mixed data+metadata block groups
authorJosef Bacik <josef@redhat.com>
Thu, 9 Dec 2010 18:31:08 +0000 (18:31 +0000)
committerChris Mason <chris.mason@oracle.com>
Tue, 25 Oct 2011 13:18:31 +0000 (09:18 -0400)
commitb8802ae3fa0c70d4cfc3287ed07479925973b0ac
treeba2a311453c9a8783121bade7d8a6e64fad791fc
parente2a6859d93254ee0cdb2bf575aa23b624bc735e5
Btrfs-progs: add support for mixed data+metadata block groups

So alot of crazy people (I'm looking at you Meego) want to use btrfs on phones
and such with small devices.  Unfortunately the way we split out metadata/data
chunks it makes space usage inefficient for volumes that are smaller than
1gigabyte.  So add a -M option for mixing metadata+data, and default to this
mixed mode if the filesystem is less than or equal to 1 gigabyte.  I've tested
this with xfstests on a 100mb filesystem and everything is a-ok.

Signed-off-by: Josef Bacik <josef@redhat.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
btrfs-vol.c
btrfs_cmds.c
ctree.h
mkfs.c
utils.c
utils.h