Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C81F1C433F5 for ; Tue, 26 Apr 2022 05:18:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242241AbiDZFVq (ORCPT ); Tue, 26 Apr 2022 01:21:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55756 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236396AbiDZFVp (ORCPT ); Tue, 26 Apr 2022 01:21:45 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C6AE715838 for ; Mon, 25 Apr 2022 22:18:34 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id DA732B81C0E for ; Tue, 26 Apr 2022 05:18:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 61286C385A4; Tue, 26 Apr 2022 05:18:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1650950311; bh=gJlk7ywYl8c5kZE7ypRKn/6LPIMAPUT1/obRnQ01Sw4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=LsQE/RwSFhlADVjI3jk703HxPeLF5u8qw1ZhJtxDgEaLu2s/HaFdYAEBgrU80V4r1 Ts/ELNoutVQBYuMZJgEO1wyr/6jpXO/Xce7bQ+P188RDtBbQ5w7faDq8tSB8EhYZFT UmIsHn9uMcTptrXOfXDTvDz5jm3cE3MnLgU22gMcRseaMmcBLj1+VYmEOR47mmIGQs TPObL2O3EECfZD2l7ZJ/WGTUWjor7T3S3ROeGyDwPbSBilIU4WBZ0xzJ9sc9nuiYEm r8b3UuqeH6Pgioo85MblgQJK54wFltmOWSqCo0kaHXiC/nJlcodzI5hWO6zQIxLx1C MXPpdcAQXzrvQ== Date: Mon, 25 Apr 2022 22:18:30 -0700 From: "Darrick J. Wong" To: Eric Sandeen Cc: fstests@vger.kernel.org, zlang@kernel.org, david@fromorbit.com Subject: Re: [PATCH] fstests: remove xfs/144 Message-ID: <20220426051830.GI17059@magnolia> References: <1650950094-18453-1-git-send-email-sandeen@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1650950094-18453-1-git-send-email-sandeen@redhat.com> Precedence: bulk List-ID: X-Mailing-List: fstests@vger.kernel.org On Tue, Apr 26, 2022 at 12:14:53AM -0500, Eric Sandeen wrote: > This test was designed to validate the quota warning limit, which in > theory was supposed to migrate from a soft quota to hard enforcement > after a certain number of warnings. However, the xfs kernel commit > which incremented the warning counter was reverted; see: > > xfs: revert "xfs: actually bump warning counts when we send warnings" > > in the kernel tree for an explanation of why. Due to that revert, > which removed this functionality, remove this test. > > Signed-off-by: Eric Sandeen Reviewed-by: Darrick J. Wong --D > --- > tests/xfs/144 | 128 --------------------------------------------- > tests/xfs/144.out | 151 ------------------------------------------------------ > 2 files changed, 279 deletions(-) > delete mode 100755 tests/xfs/144 > delete mode 100644 tests/xfs/144.out > > diff --git a/tests/xfs/144 b/tests/xfs/144 > deleted file mode 100755 > index 5abec9a..0000000 > --- a/tests/xfs/144 > +++ /dev/null > @@ -1,128 +0,0 @@ > -#! /bin/bash > -# SPDX-License-Identifier: GPL-2.0-or-later > -# Copyright (c) 2021 Oracle. All Rights Reserved. > -# > -# FS QA Test No. 144 > -# > -# Check that quota softlimit warnings work the way they should. This means > -# that we can disobey the softlimit up to warnlimit times before it turns into > -# hard(er) enforcement. This is a functional test for quota warnings, but > -# since the functionality has been broken for decades, this is also a > -# regression test for commit 4b8628d57b72 ("xfs: actually bump warning counts > -# when we send warnings"). > - > -. ./common/preamble > -_begin_fstest auto quick quota > - > -# Import common functions. > -. ./common/filter > -. ./common/quota > - > -# real QA test starts here > -_supported_fs xfs > -_require_xfs_quota > -_require_scratch > - > -exercise() { > - _scratch_mkfs_xfs | _filter_mkfs 2>$tmp.mkfs > - cat $tmp.mkfs >>$seqres.full > - > - # keep the blocksize and data size for dd later > - . $tmp.mkfs > - > - _qmount > - > - _qsetup $1 > - > - echo "Using type=$type id=$id" >>$seqres.full > - > - echo > - echo "*** report initial settings" | tee -a $seqres.full > - $XFS_QUOTA_PROG -x \ > - -c "limit -$type isoft=3 ihard=500000 $id" \ > - -c "warn -$type -i -d 13" \ > - $SCRATCH_DEV > - $XFS_QUOTA_PROG -x \ > - -c "state -$type" >> $seqres.full > - $XFS_QUOTA_PROG -x \ > - -c "repquota -birnN -$type" $SCRATCH_DEV | > - _filter_quota_report | LC_COLLATE=POSIX sort -ru > - > - echo > - echo "*** push past the soft inode limit" | tee -a $seqres.full > - _file_as_id $SCRATCH_MNT/softok1 $id $type $bsize 0 > - _file_as_id $SCRATCH_MNT/softok2 $id $type $bsize 0 > - _file_as_id $SCRATCH_MNT/softok3 $id $type $bsize 0 > - _file_as_id $SCRATCH_MNT/softwarn1 $id $type $bsize 0 > - $XFS_QUOTA_PROG -D $tmp.projects -P $tmp.projid -x \ > - -c "repquota -birnN -$type" $SCRATCH_DEV | > - _filter_quota_report | LC_COLLATE=POSIX sort -ru > - > - echo > - echo "*** push further past the soft inode limit" | tee -a $seqres.full > - for warn_nr in $(seq 2 5); do > - _file_as_id $SCRATCH_MNT/softwarn$warn_nr $id $type $bsize 0 > - done > - $XFS_QUOTA_PROG -D $tmp.projects -P $tmp.projid -x \ > - -c "repquota -birnN -$type" $SCRATCH_DEV | > - _filter_quota_report | LC_COLLATE=POSIX sort -ru > - > - echo > - echo "*** push past the soft inode warning limit" | tee -a $seqres.full > - for warn_nr in $(seq 6 15); do > - _file_as_id $SCRATCH_MNT/softwarn$warn_nr $id $type $bsize 0 > - done > - $XFS_QUOTA_PROG -D $tmp.projects -P $tmp.projid -x \ > - -c "repquota -birnN -$type" $SCRATCH_DEV | > - _filter_quota_report | LC_COLLATE=POSIX sort -ru > - > - echo > - echo "*** unmount" > - _scratch_unmount > -} > - > -_scratch_mkfs > $seqres.full > -_scratch_mount >> $seqres.full > - > -chmod a+rwx $SCRATCH_MNT $seqres.full # arbitrary users will write here > -bsize=$(_get_file_block_size $SCRATCH_MNT) > -_scratch_unmount > - > -cat >$tmp.projects < -1:$SCRATCH_MNT > -EOF > - > -cat >$tmp.projid < -root:0 > -scratch:1 > -EOF > - > -projid_file="$tmp.projid" > - > -echo "*** user" > -_qmount_option "uquota" > -exercise u > - > -echo "*** group" > -_qmount_option "gquota" > -exercise g > - > -echo "*** uqnoenforce" > -_qmount_option "uqnoenforce" > -exercise uno > - > -echo "*** gqnoenforce" > -_qmount_option "gqnoenforce" > -exercise gno > - > -echo "*** pquota" > -_qmount_option "pquota" > -exercise p > - > -echo "*** pqnoenforce" > -_qmount_option "pqnoenforce" > -exercise pno > - > -# success, all done > -status=0 > -exit > diff --git a/tests/xfs/144.out b/tests/xfs/144.out > deleted file mode 100644 > index 963eb80..0000000 > --- a/tests/xfs/144.out > +++ /dev/null > @@ -1,151 +0,0 @@ > -QA output created by 144 > -*** user > -meta-data=DDEV isize=XXX agcount=N, agsize=XXX blks > -data = bsize=XXX blocks=XXX, imaxpct=PCT > - = sunit=XXX swidth=XXX, unwritten=X > -naming =VERN bsize=XXX > -log =LDEV bsize=XXX blocks=XXX > -realtime =RDEV extsz=XXX blocks=XXX, rtextents=XXX > - > -*** report initial settings > -[ROOT] 0 0 0 00 [--------] 3 0 0 13 [--------] 0 0 0 00 [--------] > -[NAME] 0 0 0 00 [--------] 0 3 500000 00 [--------] 0 0 0 00 [--------] > - > -*** push past the soft inode limit > -[ROOT] 0 0 0 00 [--------] 3 0 0 13 [--------] 0 0 0 00 [--------] > -[NAME] 0 0 0 00 [--------] 4 3 500000 01 [7 days] 0 0 0 00 [--------] > - > -*** push further past the soft inode limit > -[ROOT] 0 0 0 00 [--------] 3 0 0 13 [--------] 0 0 0 00 [--------] > -[NAME] 0 0 0 00 [--------] 8 3 500000 05 [7 days] 0 0 0 00 [--------] > - > -*** push past the soft inode warning limit > -[ROOT] 0 0 0 00 [--------] 3 0 0 13 [--------] 0 0 0 00 [--------] > -[NAME] 0 0 0 00 [--------] 16 3 500000 13 [7 days] 0 0 0 00 [--------] > - > -*** unmount > -*** group > -meta-data=DDEV isize=XXX agcount=N, agsize=XXX blks > -data = bsize=XXX blocks=XXX, imaxpct=PCT > - = sunit=XXX swidth=XXX, unwritten=X > -naming =VERN bsize=XXX > -log =LDEV bsize=XXX blocks=XXX > -realtime =RDEV extsz=XXX blocks=XXX, rtextents=XXX > - > -*** report initial settings > -[ROOT] 0 0 0 00 [--------] 3 0 0 13 [--------] 0 0 0 00 [--------] > -[NAME] 0 0 0 00 [--------] 0 3 500000 00 [--------] 0 0 0 00 [--------] > - > -*** push past the soft inode limit > -[ROOT] 0 0 0 00 [--------] 3 0 0 13 [--------] 0 0 0 00 [--------] > -[NAME] 0 0 0 00 [--------] 4 3 500000 01 [7 days] 0 0 0 00 [--------] > - > -*** push further past the soft inode limit > -[ROOT] 0 0 0 00 [--------] 3 0 0 13 [--------] 0 0 0 00 [--------] > -[NAME] 0 0 0 00 [--------] 8 3 500000 05 [7 days] 0 0 0 00 [--------] > - > -*** push past the soft inode warning limit > -[ROOT] 0 0 0 00 [--------] 3 0 0 13 [--------] 0 0 0 00 [--------] > -[NAME] 0 0 0 00 [--------] 16 3 500000 13 [7 days] 0 0 0 00 [--------] > - > -*** unmount > -*** uqnoenforce > -meta-data=DDEV isize=XXX agcount=N, agsize=XXX blks > -data = bsize=XXX blocks=XXX, imaxpct=PCT > - = sunit=XXX swidth=XXX, unwritten=X > -naming =VERN bsize=XXX > -log =LDEV bsize=XXX blocks=XXX > -realtime =RDEV extsz=XXX blocks=XXX, rtextents=XXX > - > -*** report initial settings > -[ROOT] 0 0 0 00 [--------] 3 0 0 13 [--------] 0 0 0 00 [--------] > -[NAME] 0 0 0 00 [--------] 0 3 500000 00 [--------] 0 0 0 00 [--------] > - > -*** push past the soft inode limit > -[ROOT] 0 0 0 00 [--------] 3 0 0 13 [--------] 0 0 0 00 [--------] > -[NAME] 0 0 0 00 [--------] 4 3 500000 00 [--------] 0 0 0 00 [--------] > - > -*** push further past the soft inode limit > -[ROOT] 0 0 0 00 [--------] 3 0 0 13 [--------] 0 0 0 00 [--------] > -[NAME] 0 0 0 00 [--------] 8 3 500000 00 [--------] 0 0 0 00 [--------] > - > -*** push past the soft inode warning limit > -[ROOT] 0 0 0 00 [--------] 3 0 0 13 [--------] 0 0 0 00 [--------] > -[NAME] 0 0 0 00 [--------] 18 3 500000 00 [--------] 0 0 0 00 [--------] > - > -*** unmount > -*** gqnoenforce > -meta-data=DDEV isize=XXX agcount=N, agsize=XXX blks > -data = bsize=XXX blocks=XXX, imaxpct=PCT > - = sunit=XXX swidth=XXX, unwritten=X > -naming =VERN bsize=XXX > -log =LDEV bsize=XXX blocks=XXX > -realtime =RDEV extsz=XXX blocks=XXX, rtextents=XXX > - > -*** report initial settings > -[ROOT] 0 0 0 00 [--------] 3 0 0 13 [--------] 0 0 0 00 [--------] > -[NAME] 0 0 0 00 [--------] 0 3 500000 00 [--------] 0 0 0 00 [--------] > - > -*** push past the soft inode limit > -[ROOT] 0 0 0 00 [--------] 3 0 0 13 [--------] 0 0 0 00 [--------] > -[NAME] 0 0 0 00 [--------] 4 3 500000 00 [--------] 0 0 0 00 [--------] > - > -*** push further past the soft inode limit > -[ROOT] 0 0 0 00 [--------] 3 0 0 13 [--------] 0 0 0 00 [--------] > -[NAME] 0 0 0 00 [--------] 8 3 500000 00 [--------] 0 0 0 00 [--------] > - > -*** push past the soft inode warning limit > -[ROOT] 0 0 0 00 [--------] 3 0 0 13 [--------] 0 0 0 00 [--------] > -[NAME] 0 0 0 00 [--------] 18 3 500000 00 [--------] 0 0 0 00 [--------] > - > -*** unmount > -*** pquota > -meta-data=DDEV isize=XXX agcount=N, agsize=XXX blks > -data = bsize=XXX blocks=XXX, imaxpct=PCT > - = sunit=XXX swidth=XXX, unwritten=X > -naming =VERN bsize=XXX > -log =LDEV bsize=XXX blocks=XXX > -realtime =RDEV extsz=XXX blocks=XXX, rtextents=XXX > - > -*** report initial settings > -[ROOT] 0 0 0 00 [--------] 3 0 0 13 [--------] 0 0 0 00 [--------] > -[NAME] 0 0 0 00 [--------] 0 3 500000 00 [--------] 0 0 0 00 [--------] > - > -*** push past the soft inode limit > -[ROOT] 0 0 0 00 [--------] 3 0 0 13 [--------] 0 0 0 00 [--------] > -[NAME] 0 0 0 00 [--------] 4 3 500000 02 [7 days] 0 0 0 00 [--------] > - > -*** push further past the soft inode limit > -[ROOT] 0 0 0 00 [--------] 3 0 0 13 [--------] 0 0 0 00 [--------] > -[NAME] 0 0 0 00 [--------] 8 3 500000 06 [7 days] 0 0 0 00 [--------] > - > -*** push past the soft inode warning limit > -[ROOT] 0 0 0 00 [--------] 3 0 0 13 [--------] 0 0 0 00 [--------] > -[NAME] 0 0 0 00 [--------] 15 3 500000 13 [7 days] 0 0 0 00 [--------] > - > -*** unmount > -*** pqnoenforce > -meta-data=DDEV isize=XXX agcount=N, agsize=XXX blks > -data = bsize=XXX blocks=XXX, imaxpct=PCT > - = sunit=XXX swidth=XXX, unwritten=X > -naming =VERN bsize=XXX > -log =LDEV bsize=XXX blocks=XXX > -realtime =RDEV extsz=XXX blocks=XXX, rtextents=XXX > - > -*** report initial settings > -[ROOT] 0 0 0 00 [--------] 3 0 0 13 [--------] 0 0 0 00 [--------] > -[NAME] 0 0 0 00 [--------] 0 3 500000 00 [--------] 0 0 0 00 [--------] > - > -*** push past the soft inode limit > -[ROOT] 0 0 0 00 [--------] 3 0 0 13 [--------] 0 0 0 00 [--------] > -[NAME] 0 0 0 00 [--------] 4 3 500000 00 [--------] 0 0 0 00 [--------] > - > -*** push further past the soft inode limit > -[ROOT] 0 0 0 00 [--------] 3 0 0 13 [--------] 0 0 0 00 [--------] > -[NAME] 0 0 0 00 [--------] 8 3 500000 00 [--------] 0 0 0 00 [--------] > - > -*** push past the soft inode warning limit > -[ROOT] 0 0 0 00 [--------] 3 0 0 13 [--------] 0 0 0 00 [--------] > -[NAME] 0 0 0 00 [--------] 18 3 500000 00 [--------] 0 0 0 00 [--------] > - > -*** unmount > -- > 1.8.3.1 >