path: root/utils.h
diff options
authorJosef Bacik <>2010-12-09 18:31:08 +0000
committerChris Mason <>2011-10-25 09:18:31 -0400
commitb8802ae3fa0c70d4cfc3287ed07479925973b0ac (patch)
treeba2a311453c9a8783121bade7d8a6e64fad791fc /utils.h
parente2a6859d93254ee0cdb2bf575aa23b624bc735e5 (diff)
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 <> Signed-off-by: Chris Mason <>
Diffstat (limited to 'utils.h')
1 files changed, 1 insertions, 1 deletions
diff --git a/utils.h b/utils.h
index 9dce5b05..a28d7f4b 100644
--- a/utils.h
+++ b/utils.h
@@ -27,7 +27,7 @@ int make_btrfs(int fd, const char *device, const char *label,
int btrfs_make_root_dir(struct btrfs_trans_handle *trans,
struct btrfs_root *root, u64 objectid);
int btrfs_prepare_device(int fd, char *file, int zero_end,
- u64 *block_count_ret);
+ u64 *block_count_ret, int *mixed);
int btrfs_add_to_fsid(struct btrfs_trans_handle *trans,
struct btrfs_root *root, int fd, char *path,
u64 block_count, u32 io_width, u32 io_align,