From: Bill O'Donnell <billodo@redhat.com>
To: guaneryu@gmail.com, linux-xfs@vger.kernel.org, fstests@vger.kernel.org
Cc: darrick.wong@oracle.com, sandeen@redhat.com
Subject: [PATCH] xfs/263: filters to accommodate new xfs_quota state command and prevent regression
Date: Mon, 3 Aug 2020 08:46:00 -0500 [thread overview]
Message-ID: <20200803134601.577775-1-billodo@redhat.com> (raw)
New xfs_quota kernel and xfsprogs add grace timers for group and project,
in addition to user quota. Adjust xfs/263 to accommodate those
changes, and avoid regression.
Signed-off-by: Bill O'Donnell <billodo@redhat.com>
---
NOTE: this patch needs to follow:
[PATCH] xfs/{263,106} erase max warnings printout (djwong)
tests/xfs/263 | 17 ++++++++++++++++-
1 file changed, 16 insertions(+), 1 deletion(-)
diff --git a/tests/xfs/263 b/tests/xfs/263
index 2f23318d..c18b2e1e 100755
--- a/tests/xfs/263
+++ b/tests/xfs/263
@@ -59,6 +59,18 @@ function option_string()
filter_quota_state() {
sed -e 's/Inode: #[0-9]\+/Inode #XXX/g' \
-e '/max warnings:/d' \
+ -e '/Blocks grace time:/d' \
+ -e '/Inodes grace time:/d' \
+ | _filter_scratch
+}
+
+filter_quota_state2() {
+ sed -e '/User quota state on/d' \
+ -e '/ Accounting: /d' \
+ -e '/ Enforcement: /d' \
+ -e '/ Inode: /d' \
+ -e '/Blocks max warnings: /d' \
+ -e '/Inodes max warnings: /d' \
| _filter_scratch
}
@@ -70,7 +82,10 @@ function test_all_state()
# Some combinations won't mount on V4 supers (grp + prj)
_qmount_option "$OPTIONS"
_try_scratch_mount &>> $seqres.full || continue
- $XFS_QUOTA_PROG -x -c "state" $SCRATCH_MNT | filter_quota_state
+ $XFS_QUOTA_PROG -x -c "state -u" $SCRATCH_MNT | filter_quota_state
+ $XFS_QUOTA_PROG -x -c "state -g" $SCRATCH_MNT | filter_quota_state
+ $XFS_QUOTA_PROG -x -c "state -p" $SCRATCH_MNT | filter_quota_state
+ $XFS_QUOTA_PROG -x -c "state -u" $SCRATCH_MNT | filter_quota_state2
_scratch_unmount
done
}
--
2.26.2
reply other threads:[~2020-08-03 13:46 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200803134601.577775-1-billodo@redhat.com \
--to=billodo@redhat.com \
--cc=darrick.wong@oracle.com \
--cc=fstests@vger.kernel.org \
--cc=guaneryu@gmail.com \
--cc=linux-xfs@vger.kernel.org \
--cc=sandeen@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox