]> www.infradead.org Git - users/hch/xfstests-dev.git/commitdiff
common: extend the zoned device checks in _require_dm_target
authorChristoph Hellwig <hch@lst.de>
Wed, 8 Nov 2023 06:36:05 +0000 (07:36 +0100)
committerChristoph Hellwig <hch@lst.de>
Thu, 30 Jan 2025 05:01:11 +0000 (06:01 +0100)
Also check for zoned log and rt devices in _require_dm_target

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

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