On Fri, Jul 06, 2018 at 01:53:24AM +0000, Gu, Jinxiang wrote: > > >> Subject: [PATCH 1/4] btrfs-progs: check: Remove the ability to rebuild > > >> root overwritting existing tree blocks > > >> > > >> We have function btrfs_fsck_reinit_root() to reinit csum or extent tree. > > > > > > Nit: > > > or fs/file tree > > > > Nope, btrfs check is only capable of reinit csum or extent tree. > Sorry, not fs/file tree. But DATA RELOC TREE. > Call stack is reset_balance -> btrfs_fsck_reinit_root, and the root is get by > btrfs_read_fs_root(fs_info, &key), which key is > (BTRFS_DATA_RELOC_TREE_OBJECTID, BTRFS_ROOT_ITEM_KEY , (u64)-1)
So, it's correct that the data reloc tree is reinitialized, but this is part of extent tree reset and there's no separate commandline option for it. I understand the changelog as a reference to --init-csum-tree and --init-extent-tree . -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html