[PATCH 0/2] extend nvme show-topology tabular output

Nilay Shroff
2026-03-31T14:12:31Z

Hi,

This patchset extends the tabular output of the "nvme show-topology"
command.

Currently, the tabular output does not display controller information
if a controller has no associated namespaces or paths. However, it is
valid for a controller within a subsystem to have no namespaces or
paths attached.

In such cases, it is still useful to display controller information
such as the controller name, transport type, address, and state,
while leaving namespace and path-related fields (e.g., nsid, nshead,
anastate, nspath) empty.

This patchset is divided into two patches, first patch extends the output
for non-multipath subsystems while the second patch extends the output for
multipath subsystems.

As usual, feedback/comments/suggestions are welcome!

Thanks!

Nilay Shroff (2):
nvme-cli: extend show-topology tabular output for non-multipath subsys
nvme-cli: extend show-topology tabular output for multipath subsys

nvme-print-stdout.c | 256 +++++++++++++++++++++++++++++++-------------
1 file changed, 181 insertions(+), 75 deletions(-)

--
2.53.0