Re: [PATCH v4 12/16] libnvdimm, nfit: enable support for volatile ranges

From: Dan Williams
Date: Thu Jun 29 2017 - 18:58:58 EST


On Thu, Jun 29, 2017 at 3:49 PM, Linda Knippers <linda.knippers@xxxxxxx> wrote:
>> The parent region of the namespace will have a 'volatile' type:
>>
>> # cat /sys/bus/nd/devices/region0/devtype
>> nd_volatile
>
>
> If all I know is the /dev/pmem device name, how do I find that?
>

cat $(readlink -f /sys/block/pmem0/device)/../devtype

...this is where 'ndctl list' will get the information.