Commit 01116ad
tree: fix nvme_subsystem_scan_namespaces() return handling
nvme list-subsys with the -vv option currently displays the following:
scan controller nvme0
lookup subsystem /sys/class/nvme-subsystem/nvme-subsys0/nvme0
scan controller nvme0 path nvme0c0n1
scan subsystem nvme-subsys0
scan subsystem nvme-subsys0 namespace nvme0n1
failed to scan subsystem nvme-subsys0: Invalid argument
...
The invalid argument seen above is due to the wrong return handling
of nvme_subsystem_scan_namespaces() in nvme_scan_subsystem().
Fix the same.
Signed-off-by: Martin George <marting@netapp.com>
(upstream nvme-cli commit 8a4df2bc2c66ac403b11902708aec622fa07bf0e)
Signed-off-by: Daniel Wagner <wagi@kernel.org>1 parent 9fd6153 commit 01116ad
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
883 | 883 | | |
884 | 884 | | |
885 | 885 | | |
886 | | - | |
| 886 | + | |
887 | 887 | | |
888 | 888 | | |
889 | 889 | | |
| |||
904 | 904 | | |
905 | 905 | | |
906 | 906 | | |
907 | | - | |
| 907 | + | |
908 | 908 | | |
909 | 909 | | |
910 | 910 | | |
| |||
0 commit comments