]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
xfs: no quota support with internal rtdev
authorChristoph Hellwig <hch@lst.de>
Fri, 21 Mar 2025 07:21:37 +0000 (08:21 +0100)
committerZorro Lang <zlang@kernel.org>
Fri, 28 Mar 2025 01:05:05 +0000 (09:05 +0800)
Same as regular zoned, but the previous check didn't work.

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

index 6bb7d991907cecfea91d2e940bcdf8db50257c84..5ecdf68ad79fb4419cee051c7e0c6610eb134de7 100644 (file)
@@ -2206,7 +2206,10 @@ _xfs_scratch_supports_rtquota() {
 # can check that quickly, and we make the bold assumption that the same will
 # apply to any scratch fs that might be created.
 _require_xfs_rtquota_if_rtdev() {
-       test "$USE_EXTERNAL" = "yes" || return
+       if [ "$USE_EXTERNAL" != "yes" ]; then
+               $XFS_INFO_PROG "$TEST_DIR" | grep -q 'realtime.*internal' &&
+                       _notrun "Quota on internal rt device not supported"
+       fi
 
        if [ -n "$TEST_RTDEV$SCRATCH_RTDEV" ]; then
                _xfs_kmod_supports_rtquota || \