[PATCH blktests 3/8] nvme/016: do not create namespace when setting up the target
Shin'ichiro Kawasaki
shinichiro.kawasaki at wdc.com
Thu Nov 7 03:13:49 PST 2024
From: Hannes Reinecke <hare at suse.de>
Simplify the testcase by not creating a namespace when setting up
the target and have to loop iterating over all namespaces.
Signed-off-by: Hannes Reinecke <hare at suse.de>
[Shin'ichiro: use for loop instead of seq per style guideline]
Signed-off-by: Shin'ichiro Kawasaki <shinichiro.kawasaki at wdc.com>
---
tests/nvme/016 | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/tests/nvme/016 b/tests/nvme/016
index e1f1db5..dd3cb44 100755
--- a/tests/nvme/016
+++ b/tests/nvme/016
@@ -23,16 +23,16 @@ test() {
_setup_nvmet
local port
- local iterations="${NVME_NUM_ITER}"
+ local i iterations="${NVME_NUM_ITER}"
local loop_dev
local nsid
loop_dev="$(losetup -f)"
local genctr=1
- _create_nvmet_subsystem --blkdev "${loop_dev}"
+ _create_nvmet_subsystem
- for ((i = 2; i <= iterations; i++)); do
+ for ((i = 1; i <= iterations; i++)); do
nsid=$((def_nsid + i - 1))
_create_nvmet_ns --nsid "${nsid}" \
--blkdev "${loop_dev}" > /dev/null
--
2.47.0
More information about the Linux-nvme
mailing list