Deprecating this, so turn off the tests that require it.
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
rm -f $testcopy > /dev/null 2>&1
param_checked="$param"
;;
- "falloc" )
- testio=`$XFS_IO_PROG -F -f -c "falloc $param 0 1m" $testfile 2>&1`
+ "falloc"|"allocsp")
+ testio=`$XFS_IO_PROG -F -f -c "$command $param 0 1m" $testfile 2>&1`
param_checked="$param"
;;
"fpunch" | "fcollapse" | "zero" | "fzero" | "finsert" | "funshare")
void
allocsp_f(opnum_t opno, long r)
{
+#ifdef XFS_IOC_ALLOCSP64
int e;
pathname_t f;
int fd;
}
free_pathname(&f);
close(fd);
+#endif
}
#ifdef AIO
void
freesp_f(opnum_t opno, long r)
{
+#ifdef XFS_IOC_FREESP64
int e;
pathname_t f;
int fd;
procid, opno, f.path, st, (long long)off, e);
free_pathname(&f);
close(fd);
+#endif
}
void
_supported_fs xfs
_require_test
_require_scratch
+_require_xfs_io_command allocsp # detect presence of ALLOCSP ioctl
_require_test_program allocstale
# Create a 256MB filesystem to avoid running into mkfs problems with too-small