diff options
author | Stefan Behrens <sbehrens@giantdisaster.de> | 2013-08-15 17:11:24 +0200 |
---|---|---|
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) | |
download | blackbird-op-linux-f420ee1e923b931eeef5e2928791e84b1197cab3.tar.gz blackbird-op-linux-f420ee1e923b931eeef5e2928791e84b1197cab3.zip |
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: close_ctree(tree_root); return ret; } - } else if (check_uuid_tree) { + } else if (check_uuid_tree || + btrfs_test_opt(tree_root, RESCAN_UUID_TREE)) { pr_info("btrfs: checking UUID tree\n"); ret = btrfs_check_uuid_tree(fs_info); if (ret) { |