Btrfs: add sanity tests for new qgroup accounting code
authorJosef Bacik <jbacik@fb.com>
Wed, 7 May 2014 21:06:09 +0000 (17:06 -0400)
committerChris Mason <clm@fb.com>
Tue, 10 Jun 2014 00:20:49 +0000 (17:20 -0700)
commitfaa2dbf004e89e8f7ccd28fbe6f07c308417b8ae
treeb700876fe08b8830d4e8686c039f4241cc9cb5e2
parentfcebe4562dec83b3f8d3088d77584727b09130b2
Btrfs: add sanity tests for new qgroup accounting code

This exercises the various parts of the new qgroup accounting code.  We do some
basic stuff and do some things with the shared refs to make sure all that code
works.  I had to add a bunch of infrastructure because I needed to be able to
insert items into a fake tree without having to do all the hard work myself,
hopefully this will be usefull in the future.  Thanks,

Signed-off-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: Chris Mason <clm@fb.com>
16 files changed:
fs/btrfs/Makefile
fs/btrfs/backref.c
fs/btrfs/ctree.c
fs/btrfs/ctree.h
fs/btrfs/disk-io.c
fs/btrfs/disk-io.h
fs/btrfs/extent-tree.c
fs/btrfs/extent_io.c
fs/btrfs/extent_io.h
fs/btrfs/qgroup.c
fs/btrfs/super.c
fs/btrfs/tests/btrfs-tests.c
fs/btrfs/tests/btrfs-tests.h
fs/btrfs/tests/inode-tests.c
fs/btrfs/tests/qgroup-tests.c [new file with mode: 0644]
fs/btrfs/transaction.h