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

Phil Susi psusi at ubuntu.com
Wed Nov 1 13:43:04 UTC 2017


On 10/24/2017 4:22 AM, Sebastian Parschauer wrote:
> Recognize NVDIMM devices, so that "parted -s /dev/pmem7 p" now
> prints "Model: NVDIMM Device (pmem)" instead of
> "Model: Unknown (unknown)".
> 
> In order for a device to be recognized as NVDIMM, it has to
> have a 'blkext' major number. But since this major can be
> used also by other device types, we also check that the device
> path contains 'pmem' as a substring.

That will break if someone runs parted on /dev/disk/by-id or some such.
There must be a more reliable way to decide if it is an nvdimm device.
What about something in the device's sysfs node?

Also, don't NVDIMM devices have their own specialized partition table
they have to use?  You can't just slap an msdos label on them can you?




More information about the parted-devel mailing list