]> www.infradead.org Git - users/hch/xfstests-dev.git/commitdiff
xfs: update tests for quota files in the metadir
authorDarrick J. Wong <djwong@kernel.org>
Tue, 20 Aug 2024 23:53:08 +0000 (16:53 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Fri, 1 Nov 2024 20:41:58 +0000 (13:41 -0700)
Update fstests to handle quota files in the metadir.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
common/xfs

index a3356ad775a2dd357cae2a765cd99302bd7193d9..d91fc151877a68d2e1611d9bece741e1ef94bccf 100644 (file)
@@ -1954,6 +1954,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")"