path: root/ctree.h
diff options
authorQu Wenruo <>2016-01-29 13:03:31 +0800
committerDavid Sterba <>2016-06-07 18:15:19 +0200
commit561f773433129acf5ba2bdd9abd85876f5d098ce (patch)
tree1d35f3486949edbf0ab7dcf489104c60878c4253 /ctree.h
parente5724bfc8e015835154b77a6e2b1eb7ed4b9f16c (diff)
btrfs-progs: convert: Strictly avoid meta or system chunk allocation
Before this patch, btrfs-convert only rely on large enough initial system/metadata chunk size to ensure no newer system/meta chunk will be created. But that's not safe enough. So add two new members in fs_info, avoid_sys/meta_chunk_alloc flags to prevent any newer system or meta chunks to be created before init_btrfs_v2(). Signed-off-by: Qu Wenruo <> Signed-off-by: David Sterba <>
Diffstat (limited to 'ctree.h')
1 files changed, 2 insertions, 0 deletions
diff --git a/ctree.h b/ctree.h
index cccbd5ba..c1534fa3 100644
--- a/ctree.h
+++ b/ctree.h
@@ -1032,6 +1032,8 @@ struct btrfs_fs_info {
unsigned int suppress_check_block_errors:1;
unsigned int ignore_fsid_mismatch:1;
unsigned int ignore_chunk_tree_error:1;
+ unsigned int avoid_meta_chunk_alloc:1;
+ unsigned int avoid_sys_chunk_alloc:1;
int (*free_extent_hook)(struct btrfs_trans_handle *trans,
struct btrfs_root *root,