]> 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)
commitd691c00884bf46612a7537d41c127ab5e3610265
tree83b488ec3d02780d8b655725def55589bf64c1e0
parent9c4936fb866a1b14675a01cd041af42fc4e7ea67
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