]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
btrfs: add test to stress chunk allocation/removal and fstrim
authorFilipe Manana <fdmanana@suse.com>
Fri, 12 Dec 2014 00:07:22 +0000 (11:07 +1100)
committerDave Chinner <david@fromorbit.com>
Fri, 12 Dec 2014 00:07:22 +0000 (11:07 +1100)
commit038401d7bace38d435e04034fb4be84c324a05f8
tree2bc2e4f4d1aa7c74ff1cff838a86f2060d2fb0d6
parentbf1b82fd6414cab5193392629c7c7b635be8ab3f
btrfs: add test to stress chunk allocation/removal and fstrim

Stress btrfs' block group allocation and deallocation while running
fstrim in parallel. Part of the goal is also to get data block groups
deallocated so that new metadata block groups, using the same physical
device space ranges, get allocated while fstrim is running. This caused
several issues ranging from invalid memory accesses, kernel crashes,
metadata or data corruption, free space cache inconsistencies, free
space leaks and memory leaks.

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
tests/generic/038 [new file with mode: 0755]
tests/generic/038.out [new file with mode: 0644]
tests/generic/group