Revert "test: call nvme-cli with --hostnqn= instead of the deprecated --hostid="

This reverts commit b8942f4ae2.

As commented https://github.com/systemd/systemd/issues/36908#issuecomment-2768507373,
the usage of --hostnqn= is different from --hostid=.
This commit is contained in:
Yu Watanabe
2025-04-01 18:58:43 +09:00
parent cdd2dd2d58
commit 699c377d0d
+1 -1
View File
@@ -24,7 +24,7 @@ NVME_UUID="$(cat /proc/sys/kernel/random/uuid)"
systemd-run -u teststoragetm.service -p Type=notify -p "Environment=SYSTEMD_NVME_UUID=${NVME_UUID:?}" /usr/lib/systemd/systemd-storagetm /var/tmp/storagetm.test --nqn=quux
NVME_DEVICE="/dev/disk/by-id/nvme-uuid.${NVME_UUID:?}"
nvme connect-all -vv -t tcp -a 127.0.0.1 -s 16858 --hostnqn="$(cat /proc/sys/kernel/random/uuid)"
nvme connect-all -vv -t tcp -a 127.0.0.1 -s 16858 --hostid="$(cat /proc/sys/kernel/random/uuid)"
udevadm wait --settle "$NVME_DEVICE"
dd if="$NVME_DEVICE" bs=1024 | cmp /var/tmp/storagetm.test -