rules: Add by-id symlinks for persistent memory
authorKeith Busch <keith.busch@intel.com>
Mon, 9 Jul 2018 21:23:25 +0000 (15:23 -0600)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 10 Jul 2018 07:55:57 +0000 (09:55 +0200)
commit9eb0fc32d6cb63e71f2cfc1e7dd34c3ede4b48a3
treed2fa82339a68e6d791ff315438606deeec369a0b
parent0fad72faee7e79ac51ca20713dca85d343152152
rules: Add by-id symlinks for persistent memory

This patch adds a by-id symlink to persistent memory namespace if it
exports a uuid attribute. The result looks like the following example:

 # ls -l /dev/disk/by-id/*
 lrwxrwxrwx 1 root root 13 Jul  9 15:24 pmem-206dcdfe-69b7-4e86-a01b-f540621ce62e -> ../../pmem1.2
 lrwxrwxrwx 1 root root 13 Jul  9 15:24 pmem-73840bf1-4e74-4ba4-a9c8-8248934c07c8 -> ../../pmem1.1
 lrwxrwxrwx 1 root root 13 Jul  9 15:24 pmem-8137bdfd-3c4d-4b26-b326-21da3d4cd4e5 -> ../../pmem1.4
 lrwxrwxrwx 1 root root 13 Jul  9 15:24 pmem-f43d1b6e-3300-46cb-8afc-06d66a7c16f6 -> ../../pmem1.3

Signed-off-by: Keith Busch <keith.busch@intel.com>
rules/60-persistent-storage.rules