[PATCH] nvme-list: fix verbose JSON output for 'nvme list' command

Daniel Wagner dwagner at suse.de
Mon Aug 4 08:25:12 PDT 2025


On Thu, Jul 24, 2025 at 04:18:16PM +0200, Daniel Wagner wrote:
> 
> On Mon, 21 Jul 2025 15:59:11 +0530, Nilay Shroff wrote:
> > The verbose JSON output of the nvme list command is currently incorrect in
> > both multipath and non-multipath configurations. Specifically, it prints
> > empty Namespaces[] and Paths[] arrays in the wrong places, leading to
> > confusion and invalid output. For example, on a system with single NVMe
> > disk, signle controller and one namepsace created, 'nvme list --verbose
> > --output json' prints the following output:
> > 
> > [...]

FYI, this patch is causing a regression:

https://github.com/linux-nvme/nvme-cli/issues/2886



More information about the Linux-nvme mailing list