Run the tests with given image size in bytes. 'm', 'M', 'g' and 'G' postfix
are supported. This parameter had an old name 'nvme_img_size'. The old name
is still usable, but not recommended.
-- nvme_num_iter: 1000 (default)
- The number of iterations a test should do.
+- NVME_NUM_ITER: 1000 (default)
+ The number of iterations a test should do. This parameter had an old name
+ 'nvme_num_iter'. The old name is still usable, but not recommended.
### Running nvme-rdma and SRP tests
_setup_nvmet
local port
- local iterations="${nvme_num_iter}"
+ local iterations="${NVME_NUM_ITER}"
local loop_dev
loop_dev="$(losetup -f)"
_setup_nvmet
local port
- local iterations="${nvme_num_iter}"
+ local iterations="${NVME_NUM_ITER}"
truncate -s "${NVME_IMG_SIZE}" "$(_nvme_def_file_path)"
export def_subsys_uuid="91fdba0d-f87b-4c25-b80f-db7be1418b9e"
_check_conflict_and_set_default NVMET_TRTYPES nvme_trtype "loop"
_check_conflict_and_set_default NVME_IMG_SIZE nvme_img_size 1G
-nvme_num_iter=${nvme_num_iter:-"1000"}
+_check_conflict_and_set_default NVME_NUM_ITER nvme_num_iter 1000
nvmet_blkdev_type=${nvmet_blkdev_type:-"device"}
NVMET_BLKDEV_TYPES=${NVMET_BLKDEV_TYPES:-"device file"}