From 441d8aea8ff939dcd4e37286831d42c91610b5eb Mon Sep 17 00:00:00 2001 From: Omar Sandoval Date: Mon, 14 Nov 2016 10:43:20 -0800 Subject: btrfs-progs: add OPEN_CTREE_INVALIDATE_FST flag If this flag is passed to open_ctree(), we'll clear the FREE_SPACE_TREE_VALID compat_ro bit. The kernel will then reconstruct the free space tree the next time the filesystem is mounted. Reviewed-by: Qu Wenruo Signed-off-by: Omar Sandoval Signed-off-by: David Sterba --- chunk-recover.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'chunk-recover.c') diff --git a/chunk-recover.c b/chunk-recover.c index e33ee8b8..e6b26ac3 100644 --- a/chunk-recover.c +++ b/chunk-recover.c @@ -1477,7 +1477,7 @@ open_ctree_with_broken_chunk(struct recover_control *rc) memcpy(fs_info->fsid, &disk_super->fsid, BTRFS_FSID_SIZE); - ret = btrfs_check_fs_compatibility(disk_super, 1); + ret = btrfs_check_fs_compatibility(disk_super, OPEN_CTREE_WRITES); if (ret) goto out_devices; -- cgit v1.2.3