Re: nvme-cli : attaching a namespace to an undiscovered nvme controller on multi-controller nvme disk

Daniel Wagner
2024-05-06T15:05:13Z

On Mon, May 06, 2024 at 07:45:20PM GMT, Nilay Shroff wrote:
> There could be multiple ways to address this issue. However my proposal would be to address
> it in nvme-cli. As nvme-cli builds the nvme topology it shall be easy
> for nvme-cli to detect

The topology scan in libnvme is only using the information available in
sysfs. libnvme doesn't issue any commands anymore and I'd like to keep
it this in this way. So if the kernel doesn't exposes this information
to userspace via sysfs, I don't think it's simple to 'fix' this in
nvme-cli/libnvme.