diff options
author | Josef Bacik <jbacik@fusionio.com> | 2013-04-26 19:13:59 +0000 |
---|---|---|
committer | Rich Johnston <rjohnston@sgi.com> | 2013-05-03 14:13:09 -0500 |
commit | dd3b5268312e0518ae695e8ee2a618f13805c425 (patch) | |
tree | bc0c8527d53ec94d383939f38472c601040c51cf /common/punch | |
parent | 7f622f44b651aec13b99ef62c2942388a6fbee5d (diff) |
xfstests 311: test fsync with dm flakey V4
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>
Diffstat (limited to 'common/punch')
-rw-r--r-- | common/punch | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/common/punch b/common/punch index cfbe5769..b9f9acd4 100644 --- a/common/punch +++ b/common/punch @@ -234,13 +234,6 @@ _filter_hole_fiemap() _coalesce_extents } - -# Prints the md5 checksum of a given file -_md5_checksum() -{ - md5sum $1 | cut -d ' ' -f1 -} - _filter_bmap() { awk ' |