From: Christoph Hellwig Date: Wed, 1 Jun 2022 11:34:49 +0000 (+0200) Subject: common/null_blk: respect RUN_FOR_ZONED in _configure_null_blk X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=03b27d4418b5703c4dc664635849011de5204f8d;p=users%2Fhch%2Fblktests.git common/null_blk: respect RUN_FOR_ZONED in _configure_null_blk Create zoned devices in _configure_null_blk when RUN_FOR_ZONED is set, just like it is done in _init_null_blk Signed-off-by: Christoph Hellwig --- diff --git a/common/null_blk b/common/null_blk index 30d54c2..918ba44 100644 --- a/common/null_blk +++ b/common/null_blk @@ -42,6 +42,11 @@ _configure_null_blk() { fi mkdir "$nullb" || return $? + + if (( RUN_FOR_ZONED )); then + echo "1" > "$nullb/zoned" || return $? + fi + while [[ $# -gt 0 ]]; do param="${1%%=*}" val="${1#*=}"