[PATCH] xfs/263: filters to accommodate new xfs_quota state command and prevent regression

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
---
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




[Index of Archives]     [XFS Filesystem Development (older mail)]     [Linux Filesystem Development]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux RAID]     [Linux SCSI]


  Powered by Linux