@@ -39,7 +39,7 @@ test() {
dd if=/dev/urandom of="/dev/${nvmedev}n1" \
count="${count}" bs="${bs}" status=none
- nvme flush "/dev/${nvmedev}" -n 1
+ nvme flush "/dev/${nvmedev}" --namespace-id 1
_nvme_disconnect_subsys "${def_subsysnqn}"
@@ -39,7 +39,7 @@ test() {
dd if=/dev/urandom of="/dev/${nvmedev}n1" \
count="${count}" bs="${bs}" status=none
- nvme flush "/dev/${nvmedev}n1" -n 1
+ nvme flush "/dev/${nvmedev}n1" --namespace-id 1
_nvme_disconnect_subsys "${def_subsysnqn}"
@@ -35,7 +35,8 @@ test() {
sectors="$(blockdev --getsz "/dev/${nvmedev}n1")"
bs="$(blockdev --getbsz "/dev/${nvmedev}n1")"
- nvme read "/dev/${nvmedev}n1" -s "$sectors" -c 0 -z "$bs" &>"$FULL" \
+ nvme read "/dev/${nvmedev}n1" --start-block "$sectors" \
+ --block-count 0 --data-size "$bs" &>"$FULL" \
&& echo "ERROR: nvme read for out of range LBA was not rejected"
_nvme_disconnect_subsys "${def_subsysnqn}"
@@ -31,7 +31,8 @@ test() {
nvmedev=$(_find_nvme_dev "${def_subsysnqn}")
_check_uuid "${nvmedev}"
- nvme dsm "/dev/${nvmedev}" -n 1 -d -s "${sblk_range}" -b "${nblk_range}"
+ nvme dsm "/dev/${nvmedev}" --namespace-id 1 --ad \
+ --slbs "${sblk_range}" --blocks "${nblk_range}"
_nvme_disconnect_subsys "${def_subsysnqn}"
@@ -30,7 +30,8 @@ test() {
nvmedev=$(_find_nvme_dev "${def_subsysnqn}")
_check_uuid "${nvmedev}"
- nvme dsm "/dev/${nvmedev}" -n 1 -d -s "${sblk_range}" -b "${nblk_range}"
+ nvme dsm "/dev/${nvmedev}" --namespace-id 1 --ad \
+ --slbs "${sblk_range}" --blocks "${nblk_range}"
_nvme_disconnect_subsys "${def_subsysnqn}"
@@ -29,7 +29,8 @@ test() {
nvmedev=$(_find_nvme_dev "${def_subsysnqn}")
_check_uuid "${nvmedev}"
- if ! nvme smart-log "/dev/${nvmedev}" -n 1 >> "$FULL" 2>&1; then
+ if ! nvme smart-log "/dev/${nvmedev}" --namespace-id 1 \
+ >> "$FULL" 2>&1; then
echo "ERROR: smart-log bdev-ns failed"
fi
@@ -29,7 +29,8 @@ test() {
nvmedev=$(_find_nvme_dev "${def_subsysnqn}")
_check_uuid "${nvmedev}"
- if ! nvme smart-log "/dev/${nvmedev}" -n 1 >> "$FULL" 2>&1; then
+ if ! nvme smart-log "/dev/${nvmedev}" --namespace-id 1 \
+ >> "$FULL" 2>&1; then
echo "ERROR: smart-log file-ns failed"
fi
_nvme_disconnect_subsys "${def_subsysnqn}" >> "$FULL" 2>&1
@@ -29,7 +29,8 @@ test() {
nvmedev=$(_find_nvme_dev "${def_subsysnqn}")
_check_uuid "${nvmedev}"
- if ! nvme ns-descs "/dev/${nvmedev}" -n 1 >> "$FULL" 2>&1; then
+ if ! nvme ns-descs "/dev/${nvmedev}" --namespace-id 1 \
+ >> "$FULL" 2>&1; then
echo "ERROR: ns-desc failed"
fi
@@ -90,7 +90,7 @@ test() {
echo "Renew host key on the controller"
- new_hostkey="$(nvme gen-dhchap-key -n ${def_subsysnqn} 2> /dev/null)"
+ new_hostkey="$(nvme gen-dhchap-key --nqn ${def_subsysnqn} 2> /dev/null)"
_set_nvmet_hostkey "${def_hostnqn}" "${new_hostkey}"
@@ -100,7 +100,7 @@ test() {
echo "Renew ctrl key on the controller"
- new_ctrlkey="$(nvme gen-dhchap-key -n ${def_subsysnqn} 2> /dev/null)"
+ new_ctrlkey="$(nvme gen-dhchap-key --nqn ${def_subsysnqn} 2> /dev/null)"
_set_nvmet_ctrlkey "${def_hostnqn}" "${new_ctrlkey}"
@@ -132,7 +132,7 @@ test() {
echo "Renew host key on the controller and force reconnect"
- new_hostkey="$(nvme gen-dhchap-key -n ${def_subsysnqn} 2> /dev/null)"
+ new_hostkey="$(nvme gen-dhchap-key --nqn ${def_subsysnqn} 2> /dev/null)"
_set_nvmet_hostkey "${def_hostnqn}" "${new_hostkey}"
@@ -25,13 +25,14 @@ test_device() {
chmod g+r,o+r "$ngdev"
- if ! _run_user "nvme io-passthru ${ngdev} --opcode 2 -l 4096 \
- -n $nsid -r" >> "${FULL}" 2>&1; then
+ if ! _run_user "nvme io-passthru ${ngdev} --opcode 2 --data-len 4096 \
+ --namespace-id $nsid --read" >> "${FULL}" 2>&1; then
echo "Error: io-passthru read failed"
fi
if _run_user "echo hello | nvme io-passthru ${ngdev} --opcode 1 \
- -l 4096 -n $nsid -r" >> "${FULL}" 2>&1; then
+ --data-len 4096 --namespace-id $nsid --read" \
+ >> "${FULL}" 2>&1; then
echo "Error: io-passthru write passed (unexpected)"
fi
The long format of the command line option are more descriptive and more likely to stay stable. Signed-off-by: Daniel Wagner <dwagner@suse.de> --- tests/nvme/014 | 2 +- tests/nvme/015 | 2 +- tests/nvme/018 | 3 ++- tests/nvme/019 | 3 ++- tests/nvme/020 | 3 ++- tests/nvme/023 | 3 ++- tests/nvme/024 | 3 ++- tests/nvme/026 | 3 ++- tests/nvme/045 | 6 +++--- tests/nvme/046 | 7 ++++--- 10 files changed, 21 insertions(+), 14 deletions(-)