From f74792247a9e57251dc6a12c3b94f1af542da652 Mon Sep 17 00:00:00 2001 From: Christoph Hellwig Date: Thu, 1 May 2025 08:38:57 -0500 Subject: [PATCH] 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 --- common/rc | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) 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 -- 2.39.5