]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
plugins/spdk: plugin to list SPDK subsystems
authorSebastian Brzezinka <sebastian.brzezinka@intel.com>
Mon, 12 Sep 2022 13:02:53 +0000 (15:02 +0200)
committerDaniel Wagner <dwagner@suse.de>
Fri, 3 May 2024 12:36:05 +0000 (14:36 +0200)
commit38d6868cb4f6f3cacdb71ccc90bfb875d7e5cf29
tree3cadefef6fac8c7772852d6f359322958b5dfaa9
parent52a788972bc9202a385e1a2e21f125dd27f38e32
plugins/spdk: plugin to list SPDK subsystems

Since `nvme-cli` start using `sysfs` to gather information about
subsystems, SPDK devices that are represented using CUSE can
no longer be listed.

Support for the JSON format is disabled cause `nvme_ctrl_get_state` use
sysfs to get value, causing segmentation fault when it's missing.
It could be solved by providing an empty string instead of a NULL pointer.

This patch adds SPDK devices to the nvme_root topology tree,

     $ nvme spdk list-subsys

Signed-off-by: Sebastian Brzezinka <sebastian.brzezinka@intel.com>
Signed-off-by: Daniel Wagner <dwagner@suse.de>
plugins/spdk/spdk-nvme.c
plugins/spdk/spdk-nvme.h