diff mbox series

[1/4] xfs: update tests for quota files in the metadir

Message ID 173992589860.4080063.6004431845318847274.stgit@frogsfrogsfrogs (mailing list archive)
State New
Headers show
Series [1/4] xfs: update tests for quota files in the metadir | expand

Commit Message

Darrick J. Wong Feb. 19, 2025, 1:01 a.m. UTC
From: Darrick J. Wong <djwong@kernel.org>

Update fstests to handle quota files in the metadir.

Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
---
 common/xfs |   18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

Comments

Christoph Hellwig Feb. 19, 2025, 7:19 a.m. UTC | #1
Looks good:

Reviewed-by: Christoph Hellwig <hch@lst.de>
diff mbox series

Patch

diff --git a/common/xfs b/common/xfs
index 97bdf8575a4bd4..30d2f98c3795da 100644
--- a/common/xfs
+++ b/common/xfs
@@ -1967,6 +1967,24 @@  _scratch_xfs_find_metafile()
 			return 0
 		fi
 		;;
+	"uquotino")
+		if _xfs_has_feature "$SCRATCH_DEV" metadir; then
+			echo "path -m /quota/user"
+			return 0
+		fi
+		;;
+	"gquotino")
+		if _xfs_has_feature "$SCRATCH_DEV" metadir; then
+			echo "path -m /quota/group"
+			return 0
+		fi
+		;;
+	"pquotino")
+		if _xfs_has_feature "$SCRATCH_DEV" metadir; then
+			echo "path -m /quota/project"
+			return 0
+		fi
+		;;
 	esac
 
 	sb_field="$(_scratch_xfs_get_sb_field "$metafile")"