summaryrefslogtreecommitdiff
path: root/cmds-inspect-tree-stats.c
diff options
context:
space:
mode:
authorQu Wenruo <wqu@suse.com>2018-07-05 15:37:28 +0800
committerDavid Sterba <dsterba@suse.com>2018-08-06 15:04:58 +0200
commit5f594c3ce3cd5158d16f80db576ae84d69bc0636 (patch)
tree882fd12f259a05351591dbd2d6393c6789deaa40 /cmds-inspect-tree-stats.c
parenta4770b0a013e5934461d05f256dd90266c4cf0c5 (diff)
btrfs-progs: check: Remove the ability to rebuild root overwriting existing tree blocks
We have function btrfs_fsck_reinit_root() to reinit csum or extent tree. However this function allows us to let it overwrite existing tree blocks using @overwrite parameter. Such behavior is pretty dangerous while no caller is using this feature explicitly. So just remove @overwrite parameter and allow btrfs_fsck_reinit_root() to error out when it fails to allocate tree block. Signed-off-by: Qu Wenruo <wqu@suse.com> Reviewed-by: Gu Jinxiang <gujx@cn.fujitsu.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'cmds-inspect-tree-stats.c')
0 files changed, 0 insertions, 0 deletions