From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from userp1040.oracle.com ([156.151.31.81]:22137 "EHLO userp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751375AbdH3PqO (ORCPT ); Wed, 30 Aug 2017 11:46:14 -0400 Date: Wed, 30 Aug 2017 08:45:58 -0700 From: "Darrick J. Wong" Subject: Re: [PATCH v2 01/14] common/rc: convert some egrep to grep Message-ID: <20170830154558.GH4757@magnolia> References: <1504104706-11965-1-git-send-email-amir73il@gmail.com> <1504104706-11965-2-git-send-email-amir73il@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1504104706-11965-2-git-send-email-amir73il@gmail.com> Sender: linux-xfs-owner@vger.kernel.org List-ID: List-Id: xfs To: Amir Goldstein Cc: Eryu Guan , Josef Bacik , Christoph Hellwig , fstests@vger.kernel.org, linux-xfs@vger.kernel.org On Wed, Aug 30, 2017 at 05:51:33PM +0300, Amir Goldstein wrote: > Signed-off-by: Amir Goldstein Reviewed-by: Darrick J. Wong > --- > common/rc | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/common/rc b/common/rc > index 9c5f54a..9d7b783 100644 > --- a/common/rc > +++ b/common/rc > @@ -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 > -- > 2.7.4 > > -- > To unsubscribe from this list: send the line "unsubscribe linux-xfs" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html