Skip to content

Commit 4090ae8

Browse files
dwsusekawasaki
authored andcommitted
nvme/043: Use hostnqn to generate DHCAP key
The key is supposed to be derived from the hostnqn not fom the subsys name. Signed-off-by: Daniel Wagner <[email protected]> Reviewed-by: Hannes Reinecke <[email protected]> Signed-off-by: Shin'ichiro Kawasaki <[email protected]>
1 parent 05496a3 commit 4090ae8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/nvme/043

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ test() {
3737

3838
hostid="${def_hostid}"
3939
hostnqn="${def_hostnqn}"
40-
hostkey="$(nvme gen-dhchap-key -n ${subsys_name} 2> /dev/null)"
40+
hostkey="$(nvme gen-dhchap-key -n ${hostnqn} 2> /dev/null)"
4141
if [ -z "$hostkey" ] ; then
4242
echo "nvme gen-dhchap-key failed"
4343
return 1

0 commit comments

Comments
 (0)