]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
common: extend the zoned device checks in _require_dm_target
authorChristoph Hellwig <hch@lst.de>
Fri, 21 Mar 2025 07:21:33 +0000 (08:21 +0100)
committerZorro Lang <zlang@kernel.org>
Fri, 28 Mar 2025 01:05:05 +0000 (09:05 +0800)
Also check for zoned log and rt devices in _require_dm_target

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/rc

index 3b4c2255b482011b33089778a98f021879709314..f4774257a449144725afbc700bbbe85540a97ea8 100644 (file)
--- a/common/rc
+++ b/common/rc
@@ -2497,6 +2497,12 @@ _require_dm_target()
        case $target in
        snapshot|thin-pool)
                _require_non_zoned_device ${SCRATCH_DEV}
+               if [ "$FSTYP" = "xfs" ] && [ -n "$SCRATCH_RTDEV" ]; then
+                       _require_non_zoned_device ${SCRATCH_RTDEV}
+               fi
+               if [ "$FSTYP" = "xfs" ] && [ -n "$SCRATCH_LOGDEV" ]; then
+                       _require_non_zoned_device ${SCRATCH_LOGDEV}
+               fi
                ;;
        esac
 }