btrfs-progs: convert: Strictly avoid meta or system chunk allocation
authorQu Wenruo <quwenruo@cn.fujitsu.com>
Fri, 29 Jan 2016 05:03:31 +0000 (13:03 +0800)
committerDavid Sterba <dsterba@suse.com>
Tue, 7 Jun 2016 16:15:19 +0000 (18:15 +0200)
commit561f773433129acf5ba2bdd9abd85876f5d098ce
tree1d35f3486949edbf0ab7dcf489104c60878c4253
parente5724bfc8e015835154b77a6e2b1eb7ed4b9f16c
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>
btrfs-convert.c
ctree.h
extent-tree.c