]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
common: allow _require_non_zoned_device without an argument
authorChristoph Hellwig <hch@lst.de>
Fri, 21 Mar 2025 07:21:34 +0000 (08:21 +0100)
committerZorro Lang <zlang@kernel.org>
Fri, 28 Mar 2025 01:05:05 +0000 (09:05 +0800)
So that callers can pass $SCRATCH_RTDEV directly without needing to check
that it actually is set.

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 f4774257a449144725afbc700bbbe85540a97ea8..16d627e1bdd4ca1c9bb0e8331c8305e5822fdc22 100644 (file)
--- a/common/rc
+++ b/common/rc
@@ -2541,8 +2541,7 @@ _require_non_zoned_device()
 {
        local target=$1
        if [ -z $target ]; then
-               echo "Usage: _require_non_zoned_device <device>"
-               exit 1
+               return
        fi
 
        local type=`_zone_type ${target}`