Commit 5137ef9
committed
common/nvme: fix nvme json support check in _have_nvme_cli_with_json_support
$ nvme list
Failed to scan topology: No such file or directory
$ nvme list -o json
{
"error":"Failed to scan topology: No such file or directory"
}
$ ./check nvme/006
nvme/*** [not run]
nvme-cli does not support json output format
$ modprobe nvme-loop
$ ./check nvme/006
nvme/006 (tr=loop bd=device) (create an NVMeOF target) [passed]
runtime ... 0.141s
nvme/006 (tr=loop bd=file) (create an NVMeOF target) [passed]
runtime ... 0.117s
Link: #177
Suggested-by: Daniel Wagner <[email protected]>
Signed-off-by: Yi Zhang <[email protected]>1 parent b120d18 commit 5137ef9
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| |||
0 commit comments