]> 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>
Tue, 5 Nov 2024 08:31:58 +0000 (09:31 +0100)
Also check for zoned log and rt devices in _require_dm_target

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

index cca4f97aebbd9ae952ce2955a8fdbe4138931c44..51be3b0cd670cce275a174b7ee60c5de5c56ae77 100644 (file)
--- a/common/rc
+++ b/common/rc
@@ -2332,6 +2332,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
 }