From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pg0-f65.google.com ([74.125.83.65]:39180 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750867AbeDMGOS (ORCPT ); Fri, 13 Apr 2018 02:14:18 -0400 Received: by mail-pg0-f65.google.com with SMTP id b9so1473472pgf.6 for ; Thu, 12 Apr 2018 23:14:17 -0700 (PDT) Date: Fri, 13 Apr 2018 14:14:08 +0800 From: Eryu Guan Subject: Re: [PATCH] xfs/187: fix ftype brokenness Message-ID: <20180413061408.GH2932@desktop> References: <20180411160809.GA13697@magnolia> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180411160809.GA13697@magnolia> Sender: fstests-owner@vger.kernel.org To: "Darrick J. Wong" Cc: fstests List-ID: On Wed, Apr 11, 2018 at 09:08:09AM -0700, Darrick J. Wong wrote: > From: Darrick J. Wong > > This test requires XFS_SB_VERSION_MOREBITSBIT to be zero. ftype (which > is now enabled by default) causes this to be set, so detect it in mkfs > and disable it. > > Signed-off-by: Darrick J. Wong > --- > tests/xfs/187 | 10 ++++++++-- > 1 file changed, 8 insertions(+), 2 deletions(-) > > diff --git a/tests/xfs/187 b/tests/xfs/187 > index 07ef3ae..e1a8ce9 100755 > --- a/tests/xfs/187 > +++ b/tests/xfs/187 > @@ -70,8 +70,14 @@ export MOUNT_OPTIONS="" > # lazysb, attr2 and other feature bits are held in features2 and will require > # morebitsbit on So test with lazysb and without it to see if the morebitsbit is > # okay etc. If the mkfs defaults change, these need to change as well. > -export MKFS_NO_LAZY="-m crc=0 -l lazy-count=0 -i projid32bit=0" > -export MKFS_LAZY="-m crc=0 -l lazy-count=1 -i projid32bit=0" > +MKFS_NO_LAZY="-m crc=0 -l lazy-count=0 -i projid32bit=0" > +MKFS_LAZY="-m crc=0 -l lazy-count=1 -i projid32bit=0" > + > +# Detect ftype I'd put the reason of detecting ftype support in comments here. I can fix it on commit. Thanks, Eryu > +if _scratch_mkfs --help 2>&1 | grep -q "ftype="; then > + MKFS_NO_LAZY="$MKFS_NO_LAZY -n ftype=0" > + MKFS_LAZY="$MKFS_LAZY -n ftype=0" > +fi > > # Make sure that when we think we are testing with morebits off > # that we really are.