[PATCH 2/2] nvme: add iopolicy field in JSON output

Martin George martinus.gpy at gmail.com
Mon Jan 12 23:31:05 PST 2026


On Mon, 2026-01-12 at 16:46 +0530, Nilay Shroff wrote:
> Commit d0b4c6cf0006 (“nvme: extend show-topology command to add
> support for multipath”) extended the show-topology command output
> and added the iopolicy field to the subsystem header in the text
> output even when show-topology command is executed in non-verbose
> mode.
> 
> However, the iopolicy field was not included in the JSON output,
> (for non-verbose output) resulting in an inconsistency between the
> text and JSON formats. This change fixes that by adding the iopolicy
> field to the JSON output when the show-topology command is executed
> with the JSON output format.
> 
> Fixes: d0b4c6cf0006 ("nvme: extend show-topology command to add
> support for multipath")
> Signed-off-by: Nilay Shroff <nilay at linux.ibm.com>
> ---

Reviewed-by: Martin George <marting at netapp.com>

-Martin



More information about the Linux-nvme mailing list