diff mbox series

[04/13] common: extend the zoned device checks in _require_dm_target

Message ID 20250321072145.1675257-5-hch@lst.de (mailing list archive)
State New
Headers show
Series [01/13] xfs/177: force a small file system size | expand

Commit Message

Christoph Hellwig March 21, 2025, 7:21 a.m. UTC
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>
---
 common/rc | 6 ++++++
 1 file changed, 6 insertions(+)
diff mbox series

Patch

diff --git a/common/rc b/common/rc
index e51686389a78..7cd8d5ffd2e8 100644
--- a/common/rc
+++ b/common/rc
@@ -2501,6 +2501,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
 }