]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
xfstests: btrfs/013 regression test for prealloc with balance
authorJosef Bacik <jbacik@fusionio.com>
Fri, 27 Sep 2013 14:27:33 +0000 (14:27 +0000)
committerRich Johnston <rjohnston@sgi.com>
Wed, 16 Oct 2013 20:14:35 +0000 (15:14 -0500)
commit5956d1dd653decd08dd323a4be8b1c3cc40eb673
treeefb78c5596e0db3e26d1c6dd075cdc95623ada13
parent01476628aa7e004654481a41c78d3e5df63c1845
xfstests: btrfs/013 regression test for prealloc with balance

We had a regression where we were not copying csums properly when balancing a
prealloc extent.  Unfortunately the way this showed up the most was with the
csum simply missing, which doesn't result in an error to userspace.  So I've
copied what generic/310 does and check dmesg for csum errors when the test
starts and then compare that count to the csum errors after the test finishes to
see if there was a problem.  This approach caught the error without my fix, and
then passed fine with my fix in place but with the previous errors still in
dmesg.  Thanks,

[rjohnston: changed test number to 13]

Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Reviewed-by: Stefan Behrens <sbehrens@giantdisaster.de>
Signed-off-by: Rich Johnston <rjohnston@sgi.com>
tests/btrfs/013 [new file with mode: 0644]
tests/btrfs/013.out [new file with mode: 0644]
tests/btrfs/group