From: Christoph Hellwig Date: Wed, 21 Feb 2024 16:28:48 +0000 (+0100) Subject: common: allow _require_non_zoned_device without an argument X-Git-Tag: xfs-zoned-2024-11-18~13 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=57b652bc7476b0c736e3a1737c0da44b57f5ad0b;p=users%2Fhch%2Fxfstests-dev.git common: allow _require_non_zoned_device without an argument That way it can also be used for RT and log devices. Signed-off-by: Christoph Hellwig --- diff --git a/common/rc b/common/rc index 51be3b0cd..5b92c005d 100644 --- 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 " - exit 1 + return fi local type=`_zone_type ${target}`