[PATCH blktests 4/8] nvme/017: do not create namespace when setting up the target
Shin'ichiro Kawasaki
shinichiro.kawasaki at wdc.com
Thu Nov 7 03:13:50 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/017 | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/tests/nvme/017 b/tests/nvme/017
index 07b91a6..a22c748 100755
--- a/tests/nvme/017
+++ b/tests/nvme/017
@@ -23,16 +23,16 @@ test() {
_setup_nvmet
local port
- local iterations="${NVME_NUM_ITER}"
+ local i iterations="${NVME_NUM_ITER}"
local nsid
truncate -s "${NVME_IMG_SIZE}" "$(_nvme_def_file_path)"
local genctr=1
- _create_nvmet_subsystem --blkdev "$(_nvme_def_file_path)"
+ _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 "$(_nvme_def_file_path)" > /dev/null
--
2.47.0
More information about the Linux-nvme
mailing list