]> www.infradead.org Git - users/sagi/blktests.git/commitdiff
nvme/043: Use hostnqn to generate DHCAP key
authorDaniel Wagner <dwagner@suse.de>
Fri, 11 Aug 2023 09:36:04 +0000 (11:36 +0200)
committerShin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Thu, 17 Aug 2023 01:24:54 +0000 (10:24 +0900)
The key is supposed to be derived from the hostnqn not fom the subsys
name.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Shin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
tests/nvme/043

index 4a37f91e50c301c9a11d2b2576618095a1dec33e..b5cb8378681e985454a578b7887671c2e01ae9ff 100755 (executable)
@@ -37,7 +37,7 @@ test() {
 
        hostid="${def_hostid}"
        hostnqn="${def_hostnqn}"
-       hostkey="$(nvme gen-dhchap-key -n ${subsys_name} 2> /dev/null)"
+       hostkey="$(nvme gen-dhchap-key -n ${hostnqn} 2> /dev/null)"
        if [ -z "$hostkey" ] ; then
                echo "nvme gen-dhchap-key failed"
                return 1