[PATCH 0/1] nvmet: View subsystem connections on nvmeof target
Redouane BOUFENGHOUR
redouane.boufenghour at shadow.tech
Tue Mar 12 08:48:45 PDT 2024
HI,
We need to list the nqn and their IP connected to our target nvmeof server.
In fact we can have several dozen connections on a machine and we need to know
which server is connected to which subsystem.
Currently there is no way to find out which machine is connected to which subsystem
except through the nqn.
The nqn can be modified by the initiator , so for us it’s not necessarily a source
we can trust.
We previously sent a first POC that implemented the feature in configfs ,
this new POC introduces debugfs for the nvmet driver , this one displays the ctrls
connected on the host in the /sys/kernel/debug/nvmet/ctrls folder , each controller
displays the following information :
- hostnqn
- associated subsystem
- IP address for tcp and rdma modules
the first patch sent is here :
https://lore.kernel.org/linux-nvme/20230920141205.26637-1-redouane.boufenghour@shadow.tech/
Redouane Boufengour (1):
nvmet: adds support for viewing which server is connected to which
subsystem on nvmeof target
drivers/nvme/target/Kconfig | 9 +++
drivers/nvme/target/Makefile | 1 +
drivers/nvme/target/core.c | 18 ++++-
drivers/nvme/target/debugfs.c | 118 ++++++++++++++++++++++++++++++
drivers/nvme/target/debugfs.h | 41 +++++++++++
drivers/nvme/target/fabrics-cmd.c | 2 +
drivers/nvme/target/nvmet.h | 4 +
drivers/nvme/target/rdma.c | 11 +++
drivers/nvme/target/tcp.c | 13 ++++
9 files changed, 216 insertions(+), 1 deletion(-)
create mode 100644 drivers/nvme/target/debugfs.c
create mode 100644 drivers/nvme/target/debugfs.h
--
2.39.3 (Apple Git-145)
More information about the Linux-nvme
mailing list