mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
fstests: make xfs_io mandatory
_test_inode_flag() and _test_inode_extsz() use "which $XFS_IO_PROG"
to check if xfs_io command is available. And "-i" option was added
to XFS_IO_PROG varibable by commit 54659ecdb5 ("fstests: run
xfs_io with -i option if supported"). So the command becomes "which
/usr/sbin/xfs_io -i", and it stops and waits for input from stdin,
because "-i" option of "which" means "Read aliases from stdin".
I've seen xfs/008 hang when testing with latest xfsprogs, where
xfs_io has "-i" support.
Fix it by removing the xfs_io command detections, and making xfs_io
mandatory in common/config.
Also fix the indentions in these functions, use tab instead of
spaces, while we're at it.
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
This commit is contained in:
+3
-1
@@ -158,11 +158,13 @@ export DF_PROG="`set_prog_path df`"
|
||||
[ "$DF_PROG" = "" ] && _fatal "df not found"
|
||||
[ "$HOSTOS" = "Linux" ] && export DF_PROG="$DF_PROG -T -P"
|
||||
|
||||
export XFS_IO_PROG="`set_prog_path xfs_io`"
|
||||
[ "$XFS_IO_PROG" = "" ] && _fatal "xfs_io not found"
|
||||
|
||||
export XFS_LOGPRINT_PROG="`set_prog_path xfs_logprint`"
|
||||
export XFS_REPAIR_PROG="`set_prog_path xfs_repair`"
|
||||
export XFS_DB_PROG="`set_prog_path xfs_db`"
|
||||
export XFS_GROWFS_PROG=`set_prog_path xfs_growfs`
|
||||
export XFS_IO_PROG="`set_prog_path xfs_io`"
|
||||
export XFS_SCRUB_PROG="`set_prog_path xfs_scrub`"
|
||||
export XFS_PARALLEL_REPAIR_PROG="`set_prog_path xfs_prepair`"
|
||||
export XFS_PARALLEL_REPAIR64_PROG="`set_prog_path xfs_prepair64`"
|
||||
|
||||
Reference in New Issue
Block a user