mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
common/rc: convert some egrep to grep
Signed-off-by: Amir Goldstein <amir73il@gmail.com> Reviewed-by: Eryu Guan <eguan@redhat.com> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Eryu Guan <eguan@redhat.com>
This commit is contained in:
committed by
Eryu Guan
parent
53600ec6d3
commit
5bbc4ffa0d
@@ -2177,7 +2177,7 @@ _require_xfs_io_command()
|
||||
;;
|
||||
"fsmap" )
|
||||
testio=`$XFS_IO_PROG -f -c "fsmap" $testfile 2>&1`
|
||||
echo $testio | egrep -q "Inappropriate ioctl" && \
|
||||
echo $testio | grep -q "Inappropriate ioctl" && \
|
||||
_notrun "xfs_io $command support is missing"
|
||||
;;
|
||||
"open")
|
||||
@@ -2185,12 +2185,12 @@ _require_xfs_io_command()
|
||||
# a new -C flag was introduced to execute one shot commands.
|
||||
# Check for -C flag support as an indication for the bug fix.
|
||||
testio=`$XFS_IO_PROG -F -f -C "open $testfile" $testfile 2>&1`
|
||||
echo $testio | egrep -q "invalid option" && \
|
||||
echo $testio | grep -q "invalid option" && \
|
||||
_notrun "xfs_io $command support is missing"
|
||||
;;
|
||||
"scrub"|"repair")
|
||||
testio=`$XFS_IO_PROG -x -c "$command dummy 0" $TEST_DIR 2>&1`
|
||||
echo $testio | egrep -q "Inappropriate ioctl" && \
|
||||
echo $testio | grep -q "Inappropriate ioctl" && \
|
||||
_notrun "xfs_io $command support is missing"
|
||||
;;
|
||||
"utimes" )
|
||||
@@ -2209,7 +2209,7 @@ _require_xfs_io_command()
|
||||
_notrun "xfs_io $command failed (old kernel/wrong fs/bad args?)"
|
||||
echo $testio | grep -q "foreign file active" && \
|
||||
_notrun "xfs_io $command not supported on $FSTYP"
|
||||
echo $testio | egrep -q "Function not implemented" && \
|
||||
echo $testio | grep -q "Function not implemented" && \
|
||||
_notrun "xfs_io $command support is missing (missing syscall?)"
|
||||
|
||||
if [ -n "$param" -a $param_checked -eq 0 ]; then
|
||||
|
||||
Reference in New Issue
Block a user