Commit bc346b7
committed
nvme: return earlier when we have bdev-ns for smart-log command
After the fix, we will exit earlier and get more info when we have
bdev-ns for smart-log command:
[1]
$ nvme smart-log /dev/nvme0n1
smart log: No such device or address
[2]
$ ./nvme smart-log /dev/nvme0n1
Only character device is allowed
Signed-off-by: Yi Zhang <[email protected]>1 parent cba763f commit bc346b7
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
564 | 564 | | |
565 | 565 | | |
566 | 566 | | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
567 | 572 | | |
568 | 573 | | |
569 | 574 | | |
| |||
0 commit comments