@@ -27,9 +27,9 @@ test() {
port="$(_create_nvmet_port "${nvme_trtype}")"
- truncate -s "${nvme_img_size}" "$TMPDIR/img"
+ truncate -s "${nvme_img_size}" "${def_file_path}"
- loop_dev="$(losetup -f --show "$TMPDIR/img")"
+ loop_dev="$(losetup -f --show "${def_file_path}")"
_create_nvmet_subsystem "${def_subsysnqn}" "${loop_dev}" \
"91fdba0d-f87b-4c25-b80f-db7be1418b9e"
@@ -47,7 +47,7 @@ test() {
_remove_nvmet_subsystem "${def_subsysnqn}"
_remove_nvmet_port "${port}"
losetup -d "$loop_dev"
- rm "$TMPDIR/img"
+ rm "${def_file_path}"
echo "Test complete"
}
@@ -27,9 +27,9 @@ test() {
port="$(_create_nvmet_port "${nvme_trtype}")"
- truncate -s "${nvme_img_size}" "$TMPDIR/img"
+ truncate -s "${nvme_img_size}" "${def_file_path}"
- loop_dev="$(losetup -f --show "$TMPDIR/img")"
+ loop_dev="$(losetup -f --show "${def_file_path}")"
_create_nvmet_subsystem "${def_subsysnqn}" "${loop_dev}" \
"91fdba0d-f87b-4c25-b80f-db7be1418b9e"
@@ -49,7 +49,7 @@ test() {
_remove_nvmet_subsystem "${def_subsysnqn}"
losetup -d "$loop_dev"
- rm "$TMPDIR/img"
+ rm "${def_file_path}"
echo "Test complete"
}
@@ -23,9 +23,9 @@ test() {
local port
local loop_dev
- truncate -s "${nvme_img_size}" "$TMPDIR/img"
+ truncate -s "${nvme_img_size}" "${def_file_path}"
- loop_dev="$(losetup -f --show "$TMPDIR/img")"
+ loop_dev="$(losetup -f --show "${def_file_path}")"
_create_nvmet_subsystem "${def_subsysnqn}" "${loop_dev}" \
"91fdba0d-f87b-4c25-b80f-db7be1418b9e"
@@ -38,7 +38,7 @@ test() {
losetup -d "$loop_dev"
- rm "$TMPDIR/img"
+ rm "${def_file_path}"
echo "Test complete"
}
@@ -20,13 +20,10 @@ test() {
_setup_nvmet
local port
- local file_path
- file_path="${TMPDIR}/img"
+ truncate -s "${nvme_img_size}" "${def_file_path}"
- truncate -s "${nvme_img_size}" "${file_path}"
-
- _create_nvmet_subsystem "${def_subsysnqn}" "${file_path}" \
+ _create_nvmet_subsystem "${def_subsysnqn}" "${def_file_path}" \
"91fdba0d-f87b-4c25-b80f-db7be1418b9e"
port="$(_create_nvmet_port "${nvme_trtype}")"
_add_nvmet_subsys_to_port "${port}" "${def_subsysnqn}"
@@ -35,7 +32,7 @@ test() {
_remove_nvmet_subsystem "${def_subsysnqn}"
_remove_nvmet_port "${port}"
- rm "${file_path}"
+ rm "${def_file_path}"
echo "Test complete"
}
@@ -23,11 +23,10 @@ test() {
local port
local nvmedev
local loop_dev
- local file_path="$TMPDIR/img"
- truncate -s "${nvme_img_size}" "${file_path}"
+ truncate -s "${nvme_img_size}" "${def_file_path}"
- loop_dev="$(losetup -f --show "${file_path}")"
+ loop_dev="$(losetup -f --show "${def_file_path}")"
_create_nvmet_subsystem "${def_subsysnqn}" "${loop_dev}" \
"91fdba0d-f87b-4c25-b80f-db7be1418b9e"
@@ -50,7 +49,7 @@ test() {
losetup -d "${loop_dev}"
- rm "${file_path}"
+ rm "${def_file_path}"
echo "Test complete"
}
@@ -21,11 +21,10 @@ test() {
local port
local nvmedev
- local file_path="$TMPDIR/img"
- truncate -s "${nvme_img_size}" "${file_path}"
+ truncate -s "${nvme_img_size}" "${def_file_path}"
- _create_nvmet_subsystem "${def_subsysnqn}" "${file_path}" \
+ _create_nvmet_subsystem "${def_subsysnqn}" "${def_file_path}" \
"91fdba0d-f87b-4c25-b80f-db7be1418b9e"
port="$(_create_nvmet_port "${nvme_trtype}")"
_add_nvmet_subsys_to_port "${port}" "${def_subsysnqn}"
@@ -44,7 +43,7 @@ test() {
_remove_nvmet_subsystem "${def_subsysnqn}"
_remove_nvmet_port "${port}"
- rm "${file_path}"
+ rm "${def_file_path}"
echo "Test complete"
}
@@ -23,11 +23,10 @@ test() {
local port
local nvmedev
local loop_dev
- local file_path="${TMPDIR}/img"
- truncate -s "${nvme_img_size}" "${file_path}"
+ truncate -s "${nvme_img_size}" "${def_file_path}"
- loop_dev="$(losetup -f --show "${file_path}")"
+ loop_dev="$(losetup -f --show "${def_file_path}")"
_create_nvmet_subsystem "${def_subsysnqn}" "${loop_dev}" \
"91fdba0d-f87b-4c25-b80f-db7be1418b9e"
@@ -51,7 +50,7 @@ test() {
losetup -d "${loop_dev}"
- rm "${file_path}"
+ rm "${def_file_path}"
echo "Test complete"
}
@@ -22,12 +22,10 @@ test() {
local port
local nvmedev
- local file_path
- local file_path="${TMPDIR}/img"
- truncate -s "${nvme_img_size}" "${file_path}"
+ truncate -s "${nvme_img_size}" "${def_file_path}"
- _create_nvmet_subsystem "${def_subsysnqn}" "${file_path}" \
+ _create_nvmet_subsystem "${def_subsysnqn}" "${def_file_path}" \
"91fdba0d-f87b-4c25-b80f-db7be1418b9e"
port="$(_create_nvmet_port "${nvme_trtype}")"
_add_nvmet_subsys_to_port "${port}" "${def_subsysnqn}"
@@ -47,7 +45,7 @@ test() {
_remove_nvmet_subsystem "${def_subsysnqn}"
_remove_nvmet_port "${port}"
- rm "${file_path}"
+ rm "${def_file_path}"
echo "Test complete"
}
@@ -27,11 +27,10 @@ test() {
local port
local nvmedev
local loop_dev
- local file_path="${TMPDIR}/img"
- truncate -s "${nvme_img_size}" "${file_path}"
+ truncate -s "${nvme_img_size}" "${def_file_path}"
- loop_dev="$(losetup -f --show "${file_path}")"
+ loop_dev="$(losetup -f --show "${def_file_path}")"
_create_nvmet_subsystem "${def_subsysnqn}" "${loop_dev}" \
"91fdba0d-f87b-4c25-b80f-db7be1418b9e"
@@ -54,7 +53,7 @@ test() {
losetup -d "${loop_dev}"
- rm "${file_path}"
+ rm "${def_file_path}"
echo "Test complete"
}
@@ -25,11 +25,10 @@ test() {
local port
local nvmedev
- local file_path="${TMPDIR}/img"
- truncate -s "${nvme_img_size}" "${file_path}"
+ truncate -s "${nvme_img_size}" "${def_file_path}"
- _create_nvmet_subsystem "${def_subsysnqn}" "${file_path}" \
+ _create_nvmet_subsystem "${def_subsysnqn}" "${def_file_path}" \
"91fdba0d-f87b-4c25-b80f-db7be1418b9e"
port="$(_create_nvmet_port "${nvme_trtype}")"
_add_nvmet_subsys_to_port "${port}" "${def_subsysnqn}"
@@ -48,7 +47,7 @@ test() {
_remove_nvmet_subsystem "${def_subsysnqn}"
_remove_nvmet_port "${port}"
- rm "${file_path}"
+ rm "${def_file_path}"
echo "Test complete"
}
@@ -26,11 +26,10 @@ test() {
local size
local bs
local count
- local file_path="$TMPDIR/img"
- truncate -s "${nvme_img_size}" "${file_path}"
+ truncate -s "${nvme_img_size}" "${def_file_path}"
- loop_dev="$(losetup -f --show "${file_path}")"
+ loop_dev="$(losetup -f --show "${def_file_path}")"
_create_nvmet_subsystem "${def_subsysnqn}" "${loop_dev}" \
"91fdba0d-f87b-4c25-b80f-db7be1418b9e"
@@ -60,7 +59,7 @@ test() {
losetup -d "${loop_dev}"
- rm "${file_path}"
+ rm "${def_file_path}"
echo "Test complete"
}
@@ -25,11 +25,10 @@ test() {
local size
local bs
local count
- local file_path="$TMPDIR/img"
- truncate -s "${nvme_img_size}" "${file_path}"
+ truncate -s "${nvme_img_size}" "${def_file_path}"
- _create_nvmet_subsystem "${def_subsysnqn}" "${file_path}" \
+ _create_nvmet_subsystem "${def_subsysnqn}" "${def_file_path}" \
"91fdba0d-f87b-4c25-b80f-db7be1418b9e"
port="$(_create_nvmet_port "${nvme_trtype}")"
_add_nvmet_subsys_to_port "${port}" "${def_subsysnqn}"
@@ -55,7 +54,7 @@ test() {
_remove_nvmet_subsystem "${def_subsysnqn}"
_remove_nvmet_port "${port}"
- rm "${file_path}"
+ rm "${def_file_path}"
echo "Test complete"
}
@@ -19,20 +19,17 @@ test() {
_setup_nvmet
local port
- local file_path
local iterations="${nvme_num_iter}"
- file_path="${TMPDIR}/img"
-
- truncate -s "${nvme_img_size}" "${file_path}"
+ truncate -s "${nvme_img_size}" "${def_file_path}"
local genctr=1
- _create_nvmet_subsystem "${def_subsysnqn}" "${file_path}" \
+ _create_nvmet_subsystem "${def_subsysnqn}" "${def_file_path}" \
"91fdba0d-f87b-4c25-b80f-db7be1418b9e"
for ((i = 2; i <= iterations; i++)); do
- _create_nvmet_ns "${def_subsysnqn}" "${i}" "${file_path}"
+ _create_nvmet_ns "${def_subsysnqn}" "${i}" "${def_file_path}"
done
port="$(_create_nvmet_port "${nvme_trtype}")"
@@ -49,7 +46,7 @@ test() {
_remove_nvmet_subsystem "${def_subsysnqn}"
- rm "${file_path}"
+ rm "${def_file_path}"
echo "Test complete"
}
@@ -23,11 +23,10 @@ test() {
local port
local nvmedev
- local file_path="$TMPDIR/img"
- truncate -s "${nvme_img_size}" "${file_path}"
+ truncate -s "${nvme_img_size}" "${def_file_path}"
- _create_nvmet_subsystem "${def_subsysnqn}" "${file_path}" \
+ _create_nvmet_subsystem "${def_subsysnqn}" "${def_file_path}" \
"91fdba0d-f87b-4c25-b80f-db7be1418b9e"
port="$(_create_nvmet_port "${nvme_trtype}")"
_add_nvmet_subsys_to_port "${port}" "${def_subsysnqn}"
@@ -52,7 +51,7 @@ test() {
_remove_nvmet_subsystem "${def_subsysnqn}"
_remove_nvmet_port "${port}"
- rm "${file_path}"
+ rm "${def_file_path}"
echo "Test complete"
}
@@ -23,13 +23,12 @@ test() {
local port
local nvmedev
local loop_dev
- local file_path="$TMPDIR/img"
local nblk_range="10,10,10,10,10,10,10,10,10,10"
local sblk_range="100,200,300,400,500,600,700,800,900,1000"
- truncate -s "${nvme_img_size}" "${file_path}"
+ truncate -s "${nvme_img_size}" "${def_file_path}"
- loop_dev="$(losetup -f --show "${file_path}")"
+ loop_dev="$(losetup -f --show "${def_file_path}")"
_create_nvmet_subsystem "${def_subsysnqn}" "${loop_dev}" \
"91fdba0d-f87b-4c25-b80f-db7be1418b9e"
@@ -52,7 +51,7 @@ test() {
losetup -d "${loop_dev}"
- rm -f "${file_path}"
+ rm -f "${def_file_path}"
echo "Test complete"
}
@@ -21,13 +21,12 @@ test() {
local port
local nvmedev
- local file_path="$TMPDIR/img"
local nblk_range="10,10,10,10,10,10,10,10,10,10"
local sblk_range="100,200,300,400,500,600,700,800,900,1000"
- truncate -s "${nvme_img_size}" "${file_path}"
+ truncate -s "${nvme_img_size}" "${def_file_path}"
- _create_nvmet_subsystem "${def_subsysnqn}" "${file_path}" \
+ _create_nvmet_subsystem "${def_subsysnqn}" "${def_file_path}" \
"91fdba0d-f87b-4c25-b80f-db7be1418b9e"
port="$(_create_nvmet_port "${nvme_trtype}")"
_add_nvmet_subsys_to_port "${port}" "${def_subsysnqn}"
@@ -46,7 +45,7 @@ test() {
_remove_nvmet_subsystem "${def_subsysnqn}"
_remove_nvmet_port "${port}"
- rm -f "${file_path}"
+ rm -f "${def_file_path}"
echo "Test complete"
}
@@ -22,11 +22,10 @@ test() {
local port
local nvmedev
- local file_path="$TMPDIR/img"
- truncate -s "${nvme_img_size}" "${file_path}"
+ truncate -s "${nvme_img_size}" "${def_file_path}"
- _create_nvmet_subsystem "${def_subsysnqn}" "${file_path}" \
+ _create_nvmet_subsystem "${def_subsysnqn}" "${def_file_path}" \
"91fdba0d-f87b-4c25-b80f-db7be1418b9e"
port="$(_create_nvmet_port "${nvme_trtype}")"
_add_nvmet_subsys_to_port "${port}" "${def_subsysnqn}"
@@ -47,7 +46,7 @@ test() {
_remove_nvmet_subsystem "${def_subsysnqn}"
_remove_nvmet_port "${port}"
- rm -f "${file_path}"
+ rm -f "${def_file_path}"
echo "Test complete"
}
@@ -22,11 +22,10 @@ test() {
local port
local nvmedev
- local file_path="$TMPDIR/img"
- truncate -s "${nvme_img_size}" "${file_path}"
+ truncate -s "${nvme_img_size}" "${def_file_path}"
- _create_nvmet_subsystem "${def_subsysnqn}" "${file_path}" \
+ _create_nvmet_subsystem "${def_subsysnqn}" "${def_file_path}" \
"91fdba0d-f87b-4c25-b80f-db7be1418b9e"
port="$(_create_nvmet_port "${nvme_trtype}")"
_add_nvmet_subsys_to_port "${port}" "${def_subsysnqn}"
@@ -47,7 +46,7 @@ test() {
_remove_nvmet_subsystem "${def_subsysnqn}"
_remove_nvmet_port "${port}"
- rm -f "${file_path}"
+ rm -f "${def_file_path}"
echo "Test complete"
}
@@ -23,11 +23,10 @@ test() {
local port
local nvmedev
local loop_dev
- local file_path="$TMPDIR/img"
- truncate -s "${nvme_img_size}" "${file_path}"
+ truncate -s "${nvme_img_size}" "${def_file_path}"
- loop_dev="$(losetup -f --show "${file_path}")"
+ loop_dev="$(losetup -f --show "${def_file_path}")"
_create_nvmet_subsystem "${def_subsysnqn}" "${loop_dev}" \
"91fdba0d-f87b-4c25-b80f-db7be1418b9e"
@@ -52,7 +51,7 @@ test() {
losetup -d "${loop_dev}"
- rm -f "${file_path}"
+ rm -f "${def_file_path}"
echo "Test complete"
}
@@ -22,11 +22,10 @@ test() {
local port
local nvmedev
- local file_path="$TMPDIR/img"
- truncate -s "${nvme_img_size}" "${file_path}"
+ truncate -s "${nvme_img_size}" "${def_file_path}"
- _create_nvmet_subsystem "${def_subsysnqn}" "${file_path}" \
+ _create_nvmet_subsystem "${def_subsysnqn}" "${def_file_path}" \
"91fdba0d-f87b-4c25-b80f-db7be1418b9e"
port="$(_create_nvmet_port "${nvme_trtype}")"
_add_nvmet_subsys_to_port "${port}" "${def_subsysnqn}"
@@ -46,7 +45,7 @@ test() {
_remove_nvmet_subsystem "${def_subsysnqn}"
_remove_nvmet_port "${port}"
- rm -f "${file_path}"
+ rm -f "${def_file_path}"
echo "Test complete"
}
@@ -22,11 +22,10 @@ test() {
local port
local nvmedev
- local file_path="$TMPDIR/img"
- truncate -s "${nvme_img_size}" "${file_path}"
+ truncate -s "${nvme_img_size}" "${def_file_path}"
- _create_nvmet_subsystem "${def_subsysnqn}" "${file_path}" \
+ _create_nvmet_subsystem "${def_subsysnqn}" "${def_file_path}" \
"91fdba0d-f87b-4c25-b80f-db7be1418b9e"
port="$(_create_nvmet_port "${nvme_trtype}")"
_add_nvmet_subsys_to_port "${port}" "${def_subsysnqn}"
@@ -47,7 +46,7 @@ test() {
_remove_nvmet_subsystem "${def_subsysnqn}"
_remove_nvmet_port "${port}"
- rm -f "${file_path}"
+ rm -f "${def_file_path}"
echo "Test complete"
}
@@ -22,11 +22,10 @@ test() {
local port
local nvmedev
- local file_path="$TMPDIR/img"
- truncate -s "${nvme_img_size}" "${file_path}"
+ truncate -s "${nvme_img_size}" "${def_file_path}"
- _create_nvmet_subsystem "${def_subsysnqn}" "${file_path}" \
+ _create_nvmet_subsystem "${def_subsysnqn}" "${def_file_path}" \
"91fdba0d-f87b-4c25-b80f-db7be1418b9e"
port="$(_create_nvmet_port "${nvme_trtype}")"
_add_nvmet_subsys_to_port "${port}" "${def_subsysnqn}"
@@ -47,7 +46,7 @@ test() {
_remove_nvmet_subsystem "${def_subsysnqn}"
_remove_nvmet_port "${port}"
- rm -f "${file_path}"
+ rm -f "${def_file_path}"
echo "Test complete"
}
@@ -22,11 +22,10 @@ test() {
local port
local nvmedev
- local file_path="$TMPDIR/img"
- truncate -s "${nvme_img_size}" "${file_path}"
+ truncate -s "${nvme_img_size}" "${def_file_path}"
- _create_nvmet_subsystem "${def_subsysnqn}" "${file_path}" \
+ _create_nvmet_subsystem "${def_subsysnqn}" "${def_file_path}" \
"91fdba0d-f87b-4c25-b80f-db7be1418b9e"
port="$(_create_nvmet_port "${nvme_trtype}")"
_add_nvmet_subsys_to_port "${port}" "${def_subsysnqn}"
@@ -46,7 +45,7 @@ test() {
_remove_nvmet_subsystem "${def_subsysnqn}"
_remove_nvmet_port "${port}"
- rm -f "${file_path}"
+ rm -f "${def_file_path}"
echo "Test complete"
}
@@ -22,11 +22,10 @@ test() {
local port
local nvmedev
- local file_path="$TMPDIR/img"
- truncate -s "${nvme_img_size}" "${file_path}"
+ truncate -s "${nvme_img_size}" "${def_file_path}"
- _create_nvmet_subsystem "${def_subsysnqn}" "${file_path}" \
+ _create_nvmet_subsystem "${def_subsysnqn}" "${def_file_path}" \
"91fdba0d-f87b-4c25-b80f-db7be1418b9e"
port="$(_create_nvmet_port "${nvme_trtype}")"
_add_nvmet_subsys_to_port "${port}" "${def_subsysnqn}"
@@ -46,7 +45,7 @@ test() {
_remove_nvmet_subsystem "${def_subsysnqn}"
_remove_nvmet_port "${port}"
- rm -f "${file_path}"
+ rm -f "${def_file_path}"
echo "Test complete"
}
@@ -56,11 +56,10 @@ test() {
local port
local nvmedev
local loop_dev
- local file_path="$TMPDIR/img"
- truncate -s "${nvme_img_size}" "${file_path}"
+ truncate -s "${nvme_img_size}" "${def_file_path}"
- loop_dev="$(losetup -f --show "${file_path}")"
+ loop_dev="$(losetup -f --show "${def_file_path}")"
_create_nvmet_subsystem "${def_subsysnqn}" "${loop_dev}" \
"91fdba0d-f87b-4c25-b80f-db7be1418b9e"
@@ -89,7 +88,7 @@ test() {
losetup -d "${loop_dev}"
- rm "${file_path}"
+ rm "${def_file_path}"
echo "Test complete"
}
@@ -33,9 +33,9 @@ test() {
local loop_dev
local port
- truncate -s "${nvme_img_size}" "$TMPDIR/img"
+ truncate -s "${nvme_img_size}" "${def_file_path}"
- loop_dev="$(losetup -f --show "$TMPDIR/img")"
+ loop_dev="$(losetup -f --show "${def_file_path}")"
port="$(_create_nvmet_port "${nvme_trtype}")"
@@ -50,7 +50,7 @@ test() {
_remove_nvmet_port "${port}"
losetup -d "$loop_dev"
- rm "$TMPDIR/img"
+ rm "${def_file_path}"
echo "Test complete"
}
@@ -21,14 +21,13 @@ test() {
_setup_nvmet
- local file_path="${TMPDIR}/img"
local port
local loop_dev
local nvmedev
local fio_pid
- truncate -s "${nvme_img_size}" "${file_path}"
- loop_dev="$(losetup -f --show "${file_path}")"
+ truncate -s "${nvme_img_size}" "${def_file_path}"
+ loop_dev="$(losetup -f --show "${def_file_path}")"
port="$(_create_nvmet_port "${nvme_trtype}")"
_create_nvmet_subsystem "${def_subsysnqn}" "${loop_dev}"
@@ -60,7 +59,7 @@ test() {
losetup -d "${loop_dev}"
- rm -f "${file_path}"
+ rm -f "${def_file_path}"
echo "Test complete"
}
@@ -25,7 +25,6 @@ test() {
_setup_nvmet
local port
- local file_path="${TMPDIR}/img"
local hostkey
local ctrldev
@@ -35,9 +34,9 @@ test() {
return 1
fi
- truncate -s "${nvme_img_size}" "${file_path}"
+ truncate -s "${nvme_img_size}" "${def_file_path}"
- _create_nvmet_subsystem "${def_subsysnqn}" "${file_path}" \
+ _create_nvmet_subsystem "${def_subsysnqn}" "${def_file_path}" \
"b92842df-a394-44b1-84a4-92ae7d112861"
port="$(_create_nvmet_port "${nvme_trtype}")"
_add_nvmet_subsys_to_port "${port}" "${def_subsysnqn}"
@@ -69,7 +68,7 @@ test() {
_remove_nvmet_host "${def_hostnqn}"
- rm "${file_path}"
+ rm "${def_file_path}"
echo "Test complete"
}
@@ -25,15 +25,14 @@ test() {
_setup_nvmet
local port
- local file_path="${TMPDIR}/img"
local hmac
local key_len
local hostkey
local ctrldev
- truncate -s "${nvme_img_size}" "${file_path}"
+ truncate -s "${nvme_img_size}" "${def_file_path}"
- _create_nvmet_subsystem "${def_subsysnqn}" "${file_path}"
+ _create_nvmet_subsystem "${def_subsysnqn}" "${def_file_path}"
port="$(_create_nvmet_port "${nvme_trtype}")"
_add_nvmet_subsys_to_port "${port}" "${def_subsysnqn}"
_create_nvmet_host "${def_subsysnqn}" "${def_hostnqn}"
@@ -82,7 +81,7 @@ test() {
_remove_nvmet_host "${def_hostnqn}"
- rm "${file_path}"
+ rm "${def_file_path}"
echo "Test complete"
}
@@ -26,7 +26,6 @@ test() {
_setup_nvmet
local port
- local file_path="${TMPDIR}/img"
local hash
local dhgroup
local hostkey
@@ -38,9 +37,9 @@ test() {
return 1
fi
- truncate -s "${nvme_img_size}" "${file_path}"
+ truncate -s "${nvme_img_size}" "${def_file_path}"
- _create_nvmet_subsystem "${def_subsysnqn}" "${file_path}"
+ _create_nvmet_subsystem "${def_subsysnqn}" "${def_file_path}"
port="$(_create_nvmet_port "${nvme_trtype}")"
_add_nvmet_subsys_to_port "${port}" "${def_subsysnqn}"
_create_nvmet_host "${def_subsysnqn}" "${def_hostnqn}" "${hostkey}"
@@ -84,7 +83,7 @@ test() {
_remove_nvmet_host "${def_hostnqn}"
- rm "${file_path}"
+ rm "${def_file_path}"
echo "Test complete"
}
@@ -26,7 +26,6 @@ test() {
_setup_nvmet
local port
- local file_path="${TMPDIR}/img"
local hostkey
local ctrlkey
local ctrldev
@@ -43,9 +42,9 @@ test() {
return 1
fi
- truncate -s "${nvme_img_size}" "${file_path}"
+ truncate -s "${nvme_img_size}" "${def_file_path}"
- _create_nvmet_subsystem "${def_subsysnqn}" "${file_path}"
+ _create_nvmet_subsystem "${def_subsysnqn}" "${def_file_path}"
port="$(_create_nvmet_port "${nvme_trtype}")"
_add_nvmet_subsys_to_port "${port}" "${def_subsysnqn}"
_create_nvmet_host "${def_subsysnqn}" "${def_hostnqn}" \
@@ -111,7 +110,7 @@ test() {
_remove_nvmet_host "${def_hostnqn}"
- rm "${file_path}"
+ rm "${def_file_path}"
echo "Test complete"
}
@@ -27,7 +27,6 @@ test() {
_setup_nvmet
local port
- local file_path="${TMPDIR}/img"
local hostkey
local new_hostkey
local ctrlkey
@@ -47,9 +46,9 @@ test() {
return 1
fi
- truncate -s "${nvme_img_size}" "${file_path}"
+ truncate -s "${nvme_img_size}" "${def_file_path}"
- _create_nvmet_subsystem "${def_subsysnqn}" "${file_path}"
+ _create_nvmet_subsystem "${def_subsysnqn}" "${def_file_path}"
port="$(_create_nvmet_port "${nvme_trtype}")"
_add_nvmet_subsys_to_port "${port}" "${def_subsysnqn}"
_create_nvmet_host "${def_subsysnqn}" "${def_hostnqn}" "${hostkey}" "${ctrlkey}"
@@ -124,7 +123,7 @@ test() {
_remove_nvmet_host "${def_hostnqn}"
- rm "${file_path}"
+ rm "${def_file_path}"
echo "Test complete"
}
@@ -26,11 +26,10 @@ test() {
local nvmedev
local loop_dev
local rand_io_size
- local file_path="$TMPDIR/img"
- truncate -s "${nvme_img_size}" "${file_path}"
+ truncate -s "${nvme_img_size}" "${def_file_path}"
- loop_dev="$(losetup -f --show "${file_path}")"
+ loop_dev="$(losetup -f --show "${def_file_path}")"
_create_nvmet_subsystem "${def_subsysnqn}" "${loop_dev}" \
"91fdba0d-f87b-4c25-b80f-db7be1418b9e"
@@ -61,7 +60,7 @@ test() {
losetup -d "${loop_dev}"
- rm "${file_path}"
+ rm "${def_file_path}"
echo "Test complete"
}
@@ -86,13 +86,12 @@ test() {
_setup_nvmet
local cfs_path="${NVMET_CFS}/subsystems/${def_subsysnqn}"
- local file_path="${TMPDIR}/img"
local skipped=false
local port
- truncate -s "${nvme_img_size}" "${file_path}"
+ truncate -s "${nvme_img_size}" "${def_file_path}"
- _create_nvmet_subsystem "${def_subsysnqn}" "${file_path}" \
+ _create_nvmet_subsystem "${def_subsysnqn}" "${def_file_path}" \
"b92842df-a394-44b1-84a4-92ae7d112861"
port="$(_create_nvmet_port "${nvme_trtype}")"
@@ -124,7 +123,7 @@ test() {
_remove_nvmet_port "${port}"
_remove_nvmet_host "${def_hostnqn}"
- rm "${file_path}"
+ rm "${def_file_path}"
if [[ "${skipped}" = true ]] ; then
return 1
As all tests are using the same file path name anyway, use the def_file_path variable. Signed-off-by: Daniel Wagner <dwagner@suse.de> --- tests/nvme/004 | 6 +++--- tests/nvme/005 | 6 +++--- tests/nvme/006 | 6 +++--- tests/nvme/007 | 9 +++------ tests/nvme/008 | 7 +++---- tests/nvme/009 | 7 +++---- tests/nvme/010 | 7 +++---- tests/nvme/011 | 8 +++----- tests/nvme/012 | 7 +++---- tests/nvme/013 | 7 +++---- tests/nvme/014 | 7 +++---- tests/nvme/015 | 7 +++---- tests/nvme/017 | 11 ++++------- tests/nvme/018 | 7 +++---- tests/nvme/019 | 7 +++---- tests/nvme/020 | 7 +++---- tests/nvme/021 | 7 +++---- tests/nvme/022 | 7 +++---- tests/nvme/023 | 7 +++---- tests/nvme/024 | 7 +++---- tests/nvme/025 | 7 +++---- tests/nvme/026 | 7 +++---- tests/nvme/027 | 7 +++---- tests/nvme/028 | 7 +++---- tests/nvme/029 | 7 +++---- tests/nvme/031 | 6 +++--- tests/nvme/040 | 7 +++---- tests/nvme/041 | 7 +++---- tests/nvme/042 | 7 +++---- tests/nvme/043 | 7 +++---- tests/nvme/044 | 7 +++---- tests/nvme/045 | 7 +++---- tests/nvme/047 | 7 +++---- tests/nvme/048 | 7 +++---- 34 files changed, 103 insertions(+), 138 deletions(-)