rules: block: add support for pmem devices (#3683)
authorbgbhpe <brian.boylston@hpe.com>
Fri, 8 Jul 2016 15:43:56 +0000 (11:43 -0400)
committerLennart Poettering <lennart@poettering.net>
Fri, 8 Jul 2016 15:43:56 +0000 (17:43 +0200)
commitf3bc4ccc2edf5ad2a99d6ba2795b9999fe76c3df
tree987dd78ab706d260ae67aac2cf8abfbba753d0dd
parent905c37e60ef653557d0354c2afa94546c31efe50
rules: block: add support for pmem devices (#3683)

Persistent memory devices can be exposed as block devices as /dev/pmemN
and /dev/pmemNs.  pmemN is the raw device and is byte-addressable from
within the kernel and when mmapped by applications from a DAX-mounted
file system.  pmemNs has the block translation table (BTT) layered on top,
offering atomic sector/block access.  Both pmemN and pmemNs are expected
to contain file systems.

blkid(8) and lsblk(8) seem to correctly report on pmemN and pmemNs.
systemd v219 will populate /dev/disk/by-uuid/ when, for example, mkfs is
used on pmem, but systemd v228 does not.

Add pmem to the whitelist.
rules/60-block.rules
rules/60-persistent-storage.rules