generic/311: add fallocate() check
authorEric Whitney <enwlinux@gmail.com>
Mon, 14 Apr 2014 00:37:33 +0000 (10:37 +1000)
committerDave Chinner <david@fromorbit.com>
Mon, 14 Apr 2014 00:37:33 +0000 (10:37 +1000)
commitf72961645f85a006591f45ec87a1a69401d27661
tree864cc8977b188bfc38427148d1fc56aa5813a43b
parent2e9061fb91601049c983e3912d36d70750928972
generic/311: add fallocate() check

Generic/311 fails when run on a test filesystem that does not
support fallocate().  Its I/O load is produced by fsync-tester,
which uses fallocate() system calls to allocate blocks for some of
its test cases.  This causes EOPNOTSUPP failures when the test is
run on indirect block-mapped ext4 filesystems.

Verify that the test filesystem supports fallocate() before
proceeding with the test, checking for block allocation
capabilities.  Also, fix a minor error message typo.

Signed-off-by: Eric Whitney <enwlinux@gmail.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
tests/generic/311 [changed mode: 0644->0755]