Commit 9e1db51d4b5fc made camcontrol devlist get list of active namespaces from the device instead of iterating through all possible IDs. The problem is that this request is not supported before NVMe 1.1, and in particular by Intel Optane 905P drives. This change reintroduces iteration for devices before NVMe 1.2.
Details
Details
Before:
# nvmecontrol devlist
nvme0: WD_BLACK SN770 1TB
nvme0ns1 (953869MB)
nvme1: INTEL SSDPE21D480GA
nvme2: INTEL SSDPE21D480GA
nvme3: INTEL SSDPE21D480GAAfter:
# nvmecontrol devlist
nvme0: WD_BLACK SN770 1TB
nvme0ns1 (953869MB)
nvme1: INTEL SSDPE21D480GA
nvme1ns1 (457862MB)
nvme2: INTEL SSDPE21D480GA
nvme2ns1 (457862MB)
nvme3: INTEL SSDPE21D480GA
nvme3ns1 (457862MB)Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Skipped - Unit
Tests Skipped
Event Timeline
| sbin/nvmecontrol/devlist.c | ||
|---|---|---|
| 120 | I see why this change exists, but it feels weird that a "print" function has a side effect. | |