Commit 31b3f02
committed
nvme: update invalid device handling for list-subsys
The list-subsys command fails to error out if one passes an invalid
or non-existent ns device as part of the <device> option. One would
have ideally expected the nvme_match_device_filter() to catch this,
but such cases would be better handled with a simple stat check for
ns device validity before proceeding to the filter in the first place.
That way, the stat check can take care of ns device validity whereas
the filter can focus on filtering the subsystems and controllers,
ignoring checking for invalid ns devices, as logically expected in a
list subsystems command.
Signed-off-by: Martin George <[email protected]>1 parent cba763f commit 31b3f02
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3460 | 3460 | | |
3461 | 3461 | | |
3462 | 3462 | | |
| 3463 | + | |
| 3464 | + | |
| 3465 | + | |
| 3466 | + | |
| 3467 | + | |
| 3468 | + | |
| 3469 | + | |
| 3470 | + | |
3463 | 3471 | | |
3464 | 3472 | | |
3465 | 3473 | | |
| |||
0 commit comments