xfs/545: check for fallocate support before running test
authorDarrick J. Wong <djwong@kernel.org>
Tue, 24 May 2022 19:52:19 +0000 (12:52 -0700)
committerZorro Lang <zlang@kernel.org>
Fri, 27 May 2022 07:10:52 +0000 (15:10 +0800)
commita8812199578bcfebb80b66dcad7b0ff5919aa4b6
tree60eaddecc4ee26b46f2edc3f329664d4b2b3c9ec
parent7eb01db2b7767a514771990ef7801a6cc4e513fa
xfs/545: check for fallocate support before running test

This test fails when alwayscow mode is enabled:

 QA output created by 545
+fallocate: Operation not supported
 Creating directory system to dump using fsstress.

Fix this by checking for fallocate support first.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
tests/xfs/545