xfstests 249: use -F option for xfs_io
authorEric Sandeen <sandeen@sandeen.net>
Mon, 4 Apr 2011 18:46:10 +0000 (13:46 -0500)
committerEric Sandeen <sandeen@sandeen.net>
Mon, 4 Apr 2011 18:46:10 +0000 (13:46 -0500)
commit4342e767089ffda9924e0011695363b8d1f98c49
tree0cec4daa28f1e15c36b361d601d6b561a8af46f3
parentfa83948599dd10078a62acab8b0c1f93c82ad807
xfstests 249: use -F option for xfs_io

Test 249 was appearing to pass on ext4, but it wasn't really
exercising the test due to lack of "-F" in the xfs_io arguments.

Without -F the files were created (oddly enough); neither pwrite
nor sendfile were executed, and the diff of the two (empty)
files passed, resulting in a passed test without testing anything.

So add the -F, capture the output, and test the result of each
xfs_io invocation.

Also, when it fails, the diff output is huge.  Make diff silent,
but describe the diff failure and exit.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
249 [changed mode: 0644->0755]