Btrfs: add free space tree sanity tests
authorOmar Sandoval <osandov@fb.com>
Wed, 30 Sep 2015 03:50:36 +0000 (20:50 -0700)
committerChris Mason <clm@fb.com>
Thu, 17 Dec 2015 20:16:47 +0000 (12:16 -0800)
commit7c55ee0c4afba4434d973117234577ae6ff77a1c
tree70866c20b2f0b6d8a3fa598218a5b8f73d320fd5
parenta5ed91828518ab076209266c2bc510adabd078df
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>
fs/btrfs/Makefile
fs/btrfs/super.c
fs/btrfs/tests/btrfs-tests.c
fs/btrfs/tests/btrfs-tests.h
fs/btrfs/tests/free-space-tests.c
fs/btrfs/tests/free-space-tree-tests.c [new file with mode: 0644]
fs/btrfs/tests/qgroup-tests.c