]> www.infradead.org Git - users/sagi/libnvme.git/commit
nvme-tree: avoid warning in 'list-subsys'
authorMartin George <marting@netapp.com>
Wed, 26 Jul 2023 13:31:29 +0000 (19:01 +0530)
committerDaniel Wagner <wagi@monom.org>
Wed, 26 Jul 2023 14:00:51 +0000 (16:00 +0200)
commit9087f71b337a2965134275a621fc3f222a7998d8
tree7cc50e637d847cf5f663dfff804f390635f1e477
parentf0043495c0ff3c7a4f6d0cbc534b1d8d5c418023
nvme-tree: avoid warning in 'list-subsys'

With the recent change to scan all subsystems, 'nvme list-subsys
/dev/nvmeXnY' now displays an annoying warning for the NQN mismatch
for all other subsystems that don't match during the subsystem
scan. For e.g.

NQN mismatch for subsystem 'nvme-subsys1'
NQN mismatch for subsystem 'nvme-subsys4'
nvme-subsys3 - NQN=nqn.1992-08.com.netapp:sn.48391d66c0a611ecaaa5d039ea165514:subsystem.subsys_CLIENT116_1
               hostnqn=nqn.2014-08.org.nvmexpress:uuid:e6550026-173e-4959-ba74-be367844bd8a
\
 +- nvme3 tcp traddr=192.168.1.116,trsvcid=4420,host_traddr=192.168.1.16,host_iface=eth5 live optimized
 +- nvme7 tcp traddr=192.168.2.116,trsvcid=4420,host_traddr=192.168.2.16 live optimized
 +- nvme8 tcp traddr=192.168.1.116,trsvcid=4420,host_traddr=192.168.2.16 live optimized

Avoid this warning by displaying it only under debug level.

Fixes: fbd45f1 ("tree: Scan all subsystems")
Signed-off-by: Martin George <marting@netapp.com>
src/nvme/tree.c