On 11/1/2017 8:35 PM, Brian C. Lane wrote: > My understanding is that this is the only way to tell what these new > devices are, and we're already doing the same thing for nvme. It's > limited by a couple of things: > > 1. Only blkext major's will be considered. > 2. It's at the end of the if/else so SCSI, etc. have already been > checked. > 3. The filename path is canonicalized by ped_device_get before calling > new() so internally we're always using the /dev/pmem name no matter > what the symlink says.
What if someone mknods a differently named dev node rather than just using a symlink? I would think there would be something in sysfs that identifies the type of device more accurately than the name of the devnode.
signature.asc
Description: OpenPGP digital signature

