]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
xfs: update tests for quota files in the metadir
authorDarrick J. Wong <djwong@kernel.org>
Thu, 20 Feb 2025 21:47:09 +0000 (13:47 -0800)
committerZorro Lang <zlang@kernel.org>
Thu, 6 Mar 2025 13:25:55 +0000 (21:25 +0800)
Update fstests to handle quota files in the metadir.

Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Zorro Lang <zlang@kernel.org>
common/xfs

index 97bdf8575a4bd4cb5411babe5ded217aaeb66a64..30d2f98c3795dad1de7f18b80a7b5bbd65c2107c 100644 (file)
@@ -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")"