Skip to contentSkip to conversation

generic/603: don't run on XFS v4 filesystems

PATCH In review Darrick J. Wong 2 participants 2 messages Jul 29, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 generic/603: don't run on XFS v4 filesystems

From: Darrick J. Wong <[email protected]>

XFS filesystems require V5 format to support all three quota types at the same time, so skip the test if we're testing XFS older than that.

---
 tests/generic/603 |    4 ++++
 1 file changed, 4 insertions(+)
tests/generic/603 +4 -0
index 54deaf13..fc3df6e5 100755
@@ -149,6 +149,10 @@ test_grace()
 _supported_fs generic
 _supported_os Linux
 _require_scratch
+# xfs requires v5 format to support all three quota types at the same time
+if [ "$FSTYP" = "xfs" ]; then
+	_require_scratch_xfs_crc
+fi
 _require_setquota_project
 _require_quota
 _require_user
Reviewed-by on v1 1/1
#1 lore raw
Quoted 7 lines · Darrick J. Wong

From: Darrick J. Wong <[email protected]>

XFS filesystems require V5 format to support all three quota types at the same time, so skip the test if we're testing XFS older than that.

---

Thanks for fixing it!

Quoted 19 lines
 tests/generic/603 |    4 ++++
 1 file changed, 4 insertions(+)
tests/generic/603 +4 -0
index 54deaf13..fc3df6e5 100755
@@ -149,6 +149,10 @@ test_grace()
 _supported_fs generic
 _supported_os Linux
 _require_scratch
+# xfs requires v5 format to support all three quota types at the same time
+if [ "$FSTYP" = "xfs" ]; then
+	_require_scratch_xfs_crc
+fi
 _require_setquota_project
 _require_quota
 _require_user