diff options
author | Stefan Behrens <sbehrens@giantdisaster.de> | 2013-08-15 11:11:24 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@fusionio.com> | 2013-09-01 08:15:59 -0400 |
commit | f420ee1e923b931eeef5e2928791e84b1197cab3 (patch) | |
tree | 11c4273d3ff3a08d18587fb3ae1f9b156e35d12c /fs/btrfs/disk-io.c | |
parent | 70f801754728017ebc909d603c69255dc1e6f06f (diff) |
Btrfs: add mount option to force UUID tree checking
This should never be needed, but since all functions are there
to check and rebuild the UUID tree, a mount option is added that
allows to force this check and rebuild procedure.
Signed-off-by: Stefan Behrens <sbehrens@giantdisaster.de>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to 'fs/btrfs/disk-io.c')
-rw-r--r-- | fs/btrfs/disk-io.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index e7ef82ad0d26..00914a62abec 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c | |||
@@ -2929,7 +2929,8 @@ retry_root_backup: | |||
2929 | close_ctree(tree_root); | 2929 | close_ctree(tree_root); |
2930 | return ret; | 2930 | return ret; |
2931 | } | 2931 | } |
2932 | } else if (check_uuid_tree) { | 2932 | } else if (check_uuid_tree || |
2933 | btrfs_test_opt(tree_root, RESCAN_UUID_TREE)) { | ||
2933 | pr_info("btrfs: checking UUID tree\n"); | 2934 | pr_info("btrfs: checking UUID tree\n"); |
2934 | ret = btrfs_check_uuid_tree(fs_info); | 2935 | ret = btrfs_check_uuid_tree(fs_info); |
2935 | if (ret) { | 2936 | if (ret) { |