]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
nvme: check-tls-key fails despite having hostnqn file
authorMartin George <marting@netapp.com>
Sat, 6 Apr 2024 12:47:25 +0000 (18:17 +0530)
committerDaniel Wagner <wagi@monom.org>
Tue, 9 Apr 2024 09:05:40 +0000 (11:05 +0200)
commit59ef81fad3f05843a827a1f3fb207aaa7380e00d
tree94204295c04e96b75667e0db0567e41a96ea3fb5
parentad9738153700726bb07711130fdd485ad70200a8
nvme: check-tls-key fails despite having hostnqn file

Nvme check-tls-key requires both hostnqn and subsysnqn to be
specified along with the keydata. Ideally, it should be able to
fetch the hostnqn string from the hostnqn file if no hostnqn
option is passed, irrespective of whether the insert option is
specified or not. Also passing the subsysnqn option is required
not just for identity v1, but for v0 as well, irrespective of
the insert option. Fix accordingly.

Signed-off-by: Martin George <marting@netapp.com>
nvme.c