Linux-NVME Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH blktests 0/2] nvme: check that nvme-cli supports json output format
@ 2025-05-20  6:18 Shin'ichiro Kawasaki
  2025-05-20  6:18 ` [PATCH blktests 1/2] common/nvme: introduce _have_nvme_cli_with_json_support() Shin'ichiro Kawasaki
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Shin'ichiro Kawasaki @ 2025-05-20  6:18 UTC (permalink / raw)
  To: linux-nvme
  Cc: Christoph Hellwig, Daniel Wagner, Hannes Reinecke,
	Shin'ichiro Kawasaki

The commit 444f0df9f0c5 ("nvme: check for controller device in
_nvme_connect_subsys()") assumed that the nvme command always supports
json output format. However, when nvme-cli is built on a system without
the json-c library, the nvme command does not support the format. This
leads to silent failures in many test cases in the nvme test group [1].

This series address the problem. The first patch introduces a helper
function to prepare for the fix. The second patch fixes the problem by
checking that the nvme command supports the json format.

[1] https://lore.kernel.org/linux-nvme/20250519054905.GA6156@lst.de/

Shin'ichiro Kawasaki (2):
  common/nvme: introduce _have_nvme_cli_with_json_support()
  nvme/rc, md/001: check that nvme-cli supports json output format

 common/nvme   | 12 +++++++++++-
 tests/md/001  |  1 +
 tests/nvme/rc |  2 +-
 3 files changed, 13 insertions(+), 2 deletions(-)

-- 
2.49.0



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2025-05-28 10:11 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-20  6:18 [PATCH blktests 0/2] nvme: check that nvme-cli supports json output format Shin'ichiro Kawasaki
2025-05-20  6:18 ` [PATCH blktests 1/2] common/nvme: introduce _have_nvme_cli_with_json_support() Shin'ichiro Kawasaki
2025-05-20 19:18   ` Chaitanya Kulkarni
2025-05-20  6:18 ` [PATCH blktests 2/2] nvme/rc, md/001: check that nvme-cli supports json output format Shin'ichiro Kawasaki
2025-05-20 19:18   ` Chaitanya Kulkarni
2025-05-20  7:10 ` [PATCH blktests 0/2] nvme: " Daniel Wagner
2025-05-20 13:34 ` Christoph Hellwig
2025-05-28  9:27 ` Shinichiro Kawasaki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox