]> www.infradead.org Git - users/hch/xfstests-dev.git/commitdiff
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)
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

index e3dd300ac0d8dbb0e35486c7d84aa1aa3ef674ea..dfe2f2dc70cb5ca302fe4a8dbd20cb4df194bbca 100755 (executable)
@@ -14,6 +14,7 @@ _begin_fstest auto quick dump
 . ./common/dump
 
 _supported_fs xfs
+_require_xfs_io_command "falloc"
 _require_scratch
 
 # A large stripe unit will put the root inode out quite far