[parted-devel] [PATCH] Add support for NVDIMM devices

Phil Susi psusi at ubuntu.com
Fri Nov 3 12:50:14 UTC 2017


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.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/parted-devel/attachments/20171103/47d7dd11/attachment.sig>


More information about the parted-devel mailing list