diff options
author | Omar Sandoval <osandov@fb.com> | 2015-09-29 20:50:36 -0700 |
---|---|---|
committer | Chris Mason <clm@fb.com> | 2015-12-17 12:16:47 -0800 |
commit | 7c55ee0c4afba4434d973117234577ae6ff77a1c (patch) | |
tree | 70866c20b2f0b6d8a3fa598218a5b8f73d320fd5 /fs/btrfs/super.c | |
parent | a5ed91828518ab076209266c2bc510adabd078df (diff) | |
download | op-kernel-dev-7c55ee0c4afba4434d973117234577ae6ff77a1c.zip op-kernel-dev-7c55ee0c4afba4434d973117234577ae6ff77a1c.tar.gz |
Btrfs: add free space tree sanity tests
This tests the operations on the free space tree trying to excercise all
of the main cases for both formats. Between this and xfstests, the free
space tree should have pretty good coverage.
Signed-off-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: Chris Mason <clm@fb.com>
Diffstat (limited to 'fs/btrfs/super.c')
-rw-r--r-- | fs/btrfs/super.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c index 11d1eab..442bf43 100644 --- a/fs/btrfs/super.c +++ b/fs/btrfs/super.c @@ -2212,6 +2212,9 @@ static int btrfs_run_sanity_tests(void) if (ret) goto out; ret = btrfs_test_qgroups(); + if (ret) + goto out; + ret = btrfs_test_free_space_tree(); out: btrfs_destroy_test_fs(); return ret; |