]> git.baikalelectronics.ru Git - kernel.git/commit
nvme: expose hostnqn via sysfs for fabrics controllers
authorSagi Grimberg <sagi@grimberg.me>
Sat, 8 Feb 2020 01:13:53 +0000 (17:13 -0800)
committerKeith Busch <kbusch@kernel.org>
Wed, 25 Mar 2020 19:44:35 +0000 (04:44 +0900)
commitc523d4cc9b1d8b94bce7402182dfac59f3573b4c
tree83b488ec3d02780d8b655725def55589bf64c1e0
parentccc8f062d02cf4e57f6665dd4e1f71a38801fe9f
nvme: expose hostnqn via sysfs for fabrics controllers

We allow userspace to connect with a custom hostnqn which is useful for
certain use-cases. However there is no way to tell what is the hostnqn
used to connect to a given controller.

Expose this so userspace can correlate controllers based on hostnqn.

Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/host/core.c