From: Christoph Hellwig Date: Thu, 1 May 2025 13:38:57 +0000 (-0500) Subject: common: support internal RT device in _require_realtime X-Git-Tag: v2025.05.11~21 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f74792247a9e57251dc6a12c3b94f1af542da652;p=xfstests-dev.git common: support internal RT device in _require_realtime If SCRATCH_DEV is a zoned device it implies an internal zoned RT device and should not be skipped in _require_realtime. Signed-off-by: Christoph Hellwig Reviewed-by: Darrick J. Wong Signed-off-by: Zorro Lang --- diff --git a/common/rc b/common/rc index 5f155596..7395ff61 100644 --- a/common/rc +++ b/common/rc @@ -2329,10 +2329,15 @@ _require_no_large_scratch_dev() # _require_realtime() { - [ "$USE_EXTERNAL" = yes ] || \ - _notrun "External volumes not in use, skipped this test" - [ "$SCRATCH_RTDEV" = "" ] && \ - _notrun "Realtime device required, skipped this test" + local zone_type=`_zone_type $SCRATCH_DEV` + if [ "${zone_type}" = "none" ]; then + if [ "$USE_EXTERNAL" != "yes" ]; then + _notrun "External volumes not in use, skipped this test" + fi + if [ "$SCRATCH_RTDEV" = "" ]; then + _notrun "Realtime device required, skipped this test" + fi + fi } # This test requires that a realtime subvolume is not in use