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

Keith Busch <[email protected]>
Newsgroups org.kernel.vger.linux-block,org.infradead.lists.linux-nvme
Message-ID <anpzD5PaOn-_K5hn@kbusch-mbp>
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/.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.