fsx: check for filesystem support of FALLOCATE_FL_KEEP_SIZE
authorAnna Schumaker <Anna.Schumaker@netapp.com>
Thu, 12 Feb 2015 03:14:20 +0000 (14:14 +1100)
committerDave Chinner <david@fromorbit.com>
Thu, 12 Feb 2015 03:14:20 +0000 (14:14 +1100)
commit3de543f7915c7f6b3feeb96d3154f1a2f5e58d8e
treec8c506878ba5205b0f996a248af5d4503d799aec
parent5e8b9e64ecf0d2d3670d99b80d427090c49bbf82
fsx: check for filesystem support of FALLOCATE_FL_KEEP_SIZE

The NFS implementation of fallocate() does not support passing the
KEEP_SIZE flag by itself, causing tests to randomly fail.

Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dave Chinner <david@fromorbit.com>
ltp/fsx.c