aboutsummaryrefslogtreecommitdiffstats
path: root/btrfs-find-root.c
diff options
context:
space:
mode:
authorLu Fengqi <lufq.fnst@cn.fujitsu.com>2016-03-07 12:57:41 +0800
committerDavid Sterba <dsterba@suse.com>2016-03-14 13:42:47 +0100
commit05640939ea24c609c7c2badc76ebba9ec6a4896d (patch)
tree1ee641f486db5a5767aa52d8f2603eae73451b10 /btrfs-find-root.c
parentda3ae9c69ab4e557e625cabe8894e442def60b62 (diff)
downloadbtrfs-progs-05640939ea24c609c7c2badc76ebba9ec6a4896d.tar.gz
btrfs-progs-05640939ea24c609c7c2badc76ebba9ec6a4896d.tar.xz
btrfs-progs-05640939ea24c609c7c2badc76ebba9ec6a4896d.zip
btrfs-progs: Add new option for specify chunk root bytenr
Add new btrfsck option, '--chunk-root', to specify chunk root bytenr. And allow open_ctree_fs_info() function accept chunk_root_bytenr to override the bytenr in superblock. This will be mainly used when chunk tree corruption. Signed-off-by: Lu Fengqi <lufq.fnst@cn.fujitsu.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'btrfs-find-root.c')
-rw-r--r--btrfs-find-root.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/btrfs-find-root.c b/btrfs-find-root.c
index e6ccc53..ed1540a 100644
--- a/btrfs-find-root.c
+++ b/btrfs-find-root.c
@@ -190,7 +190,7 @@ int main(int argc, char **argv)
exit(1);
}
- fs_info = open_ctree_fs_info(argv[optind], 0, 0,
+ fs_info = open_ctree_fs_info(argv[optind], 0, 0, 0,
OPEN_CTREE_CHUNK_ROOT_ONLY |
OPEN_CTREE_IGNORE_CHUNK_TREE_ERROR);
if (!fs_info) {