Split out helper functions for scan_namespace and scan_controller.
While here, replace sprintf() calls with snprintf() and avoid
leaking the contoller fd if read_controller_data() fails.
Sponsored by: Chelsio Communications
Differential D47354
nvmecontrol: Refactor devlist implementation jhb on Oct 31 2024, 2:52 PM. Authored by Tags None Referenced Files
Subscribers
Details
Split out helper functions for scan_namespace and scan_controller. Sponsored by: Chelsio Communications
Diff Detail
Event TimelineComment Actions This makes things a lot better. But I can't help but think scanning sequential unit numbers couldn't be better maybe.
|