]> www.infradead.org Git - users/hch/xfstests-dev.git/commitdiff
xfs: not quota support with internal rtdev
authorChristoph Hellwig <hch@lst.de>
Thu, 31 Oct 2024 07:45:21 +0000 (08:45 +0100)
committerChristoph Hellwig <hch@lst.de>
Thu, 31 Oct 2024 17:57:13 +0000 (18:57 +0100)
Same as regular zoned, but the previous check didn't work.

Signed-off-by: Christoph Hellwig <hch@lst.de>
common/xfs

index c0d46a228212aa966381844c91bdf8056c4eadc2..41a6432ad338d113dbe13287c9c45bf88bab1d08 100644 (file)
@@ -2169,7 +2169,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 "$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 || \