[PATCH] nvme-list: make verbose JSON output backward compatible
Daniel Wagner
wagi at kernel.org
Wed Aug 6 00:41:41 PDT 2025
On Tue, 05 Aug 2025 15:50:50 +0530, Nilay Shroff wrote:
> The commit 64bed0a87a23 ("nvme-list: fix verbose JSON output for 'nvme
> list' command") changed the JSON output format of the nvme list --verbose
> command. While the new format is more structured, it introduced a
> regression by breaking compatibility with tools and scripts relying on
> the previous JSON schema.
>
> So to restore backward compatibility, we now leverage the existing
> --output-format-version option. With this patch,
> 1. The default --output-format-version=1 retains the original (legacy) JSON
> format for nvme list --verbose.
> 2. If the user explicitly sets --output-format-version=2 then the newer
> JSON structure introduced by commit 64bed0a87a23 ("nvme-list: fix verbose
> JSON output for 'nvme list' command") is used.
>
> [...]
Applied, thanks!
[1/1] nvme-list: make verbose JSON output backward compatible
commit: 80ad62ba75f1f1dd5b99c6f56769141b48344485
Best regards,
--
Daniel Wagner <wagi at kernel.org>
More information about the Linux-nvme
mailing list