[PATCH RFC] nvme-multipath: fix diskstats for partitions

Keith Busch kbusch at kernel.org
Mon Aug 10 17:55:43 PDT 2026


On Thu, Jul 30, 2026 at 01:52:00PM +0100, John Garry wrote:
> 
> With that, /sys/class/block/ looks a bit different (with the per-path
> partitions):
> 
> #ls -l /sys/class/block/ | grep nvme0
> lrwxrwxrwx    1 root     root             0 Jul 30 12:39 nvme0c0n1 ->
> ../../devices/virtual/nvme-fabrics/ctl/nvme0/nvme0c0n1
> lrwxrwxrwx    1 root     root             0 Jul 30 12:39 nvme0c0n1p1
> -> ../../devices/virtual/nvme-fabrics/ctl/nvme0/nvme0c0n1/nvme0c0n1p1
> lrwxrwxrwx    1 root     root             0 Jul 30 12:39 nvme0c1n1 ->
> ../../devices/virtual/nvme-fabrics/ctl/nvme1/nvme0c1n1
> lrwxrwxrwx    1 root     root             0 Jul 30 12:39 nvme0c1n1p1
> -> ../../devices/virtual/nvme-fabrics/ctl/nvme1/nvme0c1n1/nvme0c1n1p1
> lrwxrwxrwx    1 root     root             0 Jul 30 12:39 nvme0n1 ->
> ../../devices/virtual/nvme-subsystem/nvme-subsys0/nvme0n1
> lrwxrwxrwx    1 root     root             0 Jul 30 12:39 nvme0n1p1 ->
> ../../devices/virtual/nvme-subsystem/nvme-subsys0/nvme0n1/nvme0n1p1
> 
> Thoughts?

Yes, looks good to me, though I don't really know why partition scanning
was skipped in the first place. I always thought the important part was
the HIDDEN devices don't automatically enumerate in /dev/.



More information about the Linux-nvme mailing list