]> www.infradead.org Git - users/hch/xfstests-dev.git/commitdiff
common: allow _require_non_zoned_device without an argument
authorChristoph Hellwig <hch@lst.de>
Wed, 21 Feb 2024 16:28:48 +0000 (17:28 +0100)
committerChristoph Hellwig <hch@lst.de>
Tue, 5 Nov 2024 08:31:58 +0000 (09:31 +0100)
That way it can also be used for RT and log devices.

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

index 51be3b0cd670cce275a174b7ee60c5de5c56ae77..5b92c005df162d8053a149a10564881da67db87d 100644 (file)
--- a/common/rc
+++ b/common/rc
@@ -2376,8 +2376,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}`