[PATCH 1/3] tree: add support for discovering nvme paths using sysfs multipath link

Daniel Wagner dwagner at suse.de
Mon Apr 7 00:19:23 PDT 2025


Hi Nilay,

On Sat, Apr 05, 2025 at 06:32:47PM +0530, Nilay Shroff wrote:
> With kernel v6.14, when NVMe native multipath is enabled, it is possible
> to discover all paths to a shared namespace using the sysfs multipath link.
> Leverage this functionality to update the path links for each shared NVMe
> namespace, simplifying path discovery and management.

Since this is not a trivial change, could you extend this section a bit
how it works? I understand from reading the patch, a new head namespace
object is introduced which links to the different paths. 

> Please note that
> this change is fully backward compatible.

Could you elaborate what that means? libnvme should still work on older
kernels.

Also could you add a tests for this? The is already a test for the
current sysfs tree parser, see test/sysfs.

Thanks,
Daniel



More information about the Linux-nvme mailing list