]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfstests-dev.git/commit
xfstests 311: test fsync with dm flakey V3
authorJosef Bacik <jbacik@fusionio.com>
Fri, 26 Apr 2013 19:13:59 +0000 (19:13 +0000)
committerRich Johnston <rjohnston@sgi.com>
Fri, 3 May 2013 18:18:18 +0000 (13:18 -0500)
commit2ca254dfddbbab8def35472b6ca39140400aff76
tree640225fca9602dbff13b203ac4547819b94acb95
parent120752942a542742a32aafa2cd5d247f3e0d1479
xfstests 311: test fsync with dm flakey V3

This test sets up a dm flakey target and then runs my fsync tester I've been
using to verify btrfs's fsync() is working properly.  It will create a dm flakey
device, mount it, run my test, make the flakey device start dropping writes, and
then unmount the fs.  Then we mount it back up and make sure the md5sums match
and then run fsck on the device to make sure we got a consistent fs.  I used the
output from a run on BTRFS since it's the only one that passes this test
properly.  I verified each test manually to make sure they were in fact valid
files.  XFS and Ext4 both fail this test in one way or another.

Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Acked-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Rich Johnston <rjohnston@sgi.com>
[rjohnston@sgi.com changed syncfs() to sync() for older kernels]
Signed-off-by: Rich Johnston <rjohnston@sgi.com>
common/config
common/punch
common/rc
src/Makefile
src/fsync-tester.c [new file with mode: 0644]
tests/generic/311 [new file with mode: 0644]
tests/generic/311.out [new file with mode: 0644]
tests/generic/group