How to look up an ns cdev from block maj:min?
Stefan Hajnoczi
stefanha at redhat.com
Tue Feb 14 13:27:35 PST 2023
Hi,
Is there an official way for userspace to look up an ns cdev from a
block maj:min?
For example, how should a userspace program determine that /dev/ng0n1 is
the corresponding ns cdev when given just the block device node
/dev/nvme0n1?
Parsing the filename is an obvious option but it makes assumptions about
the naming convention of both the block device node and the character
device node.
Is there a better way via sysfs? (I couldn't find it.)
Thanks,
Stefan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-nvme/attachments/20230214/6343f698/attachment.sig>
More information about the Linux-nvme
mailing list