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 DB5FCC433F5 for ; Tue, 26 Apr 2022 05:15:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235076AbiDZFSY (ORCPT ); Tue, 26 Apr 2022 01:18:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46168 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244267AbiDZFSW (ORCPT ); Tue, 26 Apr 2022 01:18:22 -0400 Received: from sandeen.net (sandeen.net [63.231.237.45]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 42589AE64 for ; Mon, 25 Apr 2022 22:15:16 -0700 (PDT) Received: by sandeen.net (Postfix, from userid 500) id 23B3C170B67; Tue, 26 Apr 2022 00:14:54 -0500 (CDT) From: Eric Sandeen To: fstests@vger.kernel.org Cc: zlang@kernel.org, djwong@kernel.org, david@fromorbit.com Subject: [PATCH] fstests: remove xfs/144 Date: Tue, 26 Apr 2022 00:14:53 -0500 Message-Id: <1650950094-18453-1-git-send-email-sandeen@redhat.com> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk List-ID: X-Mailing-List: fstests@vger.kernel.org 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 --- 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 <$tmp.projid <