generic/401 failed on RHEL6.8GA because output option is not supported by df. So we use $FSTYP and $SCRATCH_DEV instead of df --output to fix it. Signed-off-by: Xiao Yang <yangx.jy@xxxxxxxxxxxxxx> --- common/rc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/common/rc b/common/rc index 892c46e..90ad496 100644 --- a/common/rc +++ b/common/rc @@ -268,14 +268,12 @@ _supports_filetype() { local dir=$1 - local fstyp=$(df --output=fstype $dir | tail -1) - case "$fstyp" in + case $FSTYP in xfs) xfs_info $dir | grep -q "ftype=1" ;; ext2|ext3|ext4) - tune2fs -l $(df --output=source $dir | tail -1) | \ - grep -q filetype + tune2fs -l $SCRATCH_DEV | grep -q filetype ;; *) local testfile=$dir/$$.ftype -- 1.8.3.1 -- To unsubscribe from this list: send the line "unsubscribe fstests" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html