]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
plugins/spdk: plugin to list SPDK controllers
authorTomasz Zawadzki <tomasz.zawadzki@intel.com>
Wed, 23 Mar 2022 12:41:40 +0000 (13:41 +0100)
committerDaniel Wagner <dwagner@suse.de>
Fri, 3 May 2024 12:36:05 +0000 (14:36 +0200)
commit2cb1b08eca2e4116218fddafb5995900cd8dff88
tree85edbdb3b205dccd9a551fc880b26c4bc8ceeb54
parent46aa366bfb8856eeefea620f5f77a56146c35c70
plugins/spdk: plugin to list SPDK controllers

Since libnvme and nvme-cli(2.0) are continuing as separate projects,
and libnvme use sysfs exclusively to gather information about NVMe
devices, legacy paths that allow specifying a custom directory ('-d`)
is no longer available.

SPDK, as a userspace driver, does not create a sysfs entry but makes it
possible to expose such devices via NVMe-cuse and since it behaves as
character device, most commands should be intact, except
listing devices and subsystems.

This patch adds SPDK devices to the nvme_root topology tree, which
allows for keeping functionality where both SPDK and kernel devices
are printed.

    $ nvme spdk list

Signed-off-by: Sebastian Brzezinka <sebastian.brzezinka@intel.com>
Signed-off-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Signed-off-by: Daniel Wagner <dwagner@suse.de>
plugins/meson.build
plugins/spdk/spdk-nvme.c [new file with mode: 0644]
plugins/spdk/spdk-nvme.h [new file with mode: 0644]