diff options
author | Qu Wenruo <quwenruo@cn.fujitsu.com> | 2016-01-29 13:03:31 +0800 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-06-07 18:15:19 +0200 |
commit | 561f773433129acf5ba2bdd9abd85876f5d098ce (patch) | |
tree | 1d35f3486949edbf0ab7dcf489104c60878c4253 /ctree.h | |
parent | e5724bfc8e015835154b77a6e2b1eb7ed4b9f16c (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 <quwenruo@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'ctree.h')
-rw-r--r-- | ctree.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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, |