Btrfs: add tests for btrfs_get_extent
I'm going to be removing hole extents in the near future so I wanted to make a sanity test for btrfs_get_extent to make sure I don't break anything in the meantime. This patch just puts btrfs_get_extent through its paces by giving it a completely unreasonable mapping to look at and make sure it is giving us back maps that make sense. Thanks, Signed-off-by:Josef Bacik <jbacik@fusionio.com> Signed-off-by:
Chris Mason <chris.mason@fusionio.com>
Showing
- fs/btrfs/Makefile 2 additions, 1 deletionfs/btrfs/Makefile
- fs/btrfs/ctree.h 4 additions, 0 deletionsfs/btrfs/ctree.h
- fs/btrfs/inode.c 8 additions, 0 deletionsfs/btrfs/inode.c
- fs/btrfs/super.c 3 additions, 0 deletionsfs/btrfs/super.c
- fs/btrfs/tests/btrfs-tests.c 7 additions, 1 deletionfs/btrfs/tests/btrfs-tests.c
- fs/btrfs/tests/btrfs-tests.h 5 additions, 0 deletionsfs/btrfs/tests/btrfs-tests.h
- fs/btrfs/tests/inode-tests.c 832 additions, 0 deletionsfs/btrfs/tests/inode-tests.c
Loading