]> git.ipfire.org Git - people/ms/linux.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)
commit76171c6cdf832bc18b6d8207c9be94d78e54ed09
tree83b488ec3d02780d8b655725def55589bf64c1e0
parent43cc66892e81bb05283159e489a19cec177e6f9d
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