diff options
author | Peter Rajnoha <prajnoha@redhat.com> | 2014-02-18 11:27:21 +0100 |
---|---|---|
committer | Peter Rajnoha <prajnoha@redhat.com> | 2014-02-18 11:37:20 +0100 |
commit | 417e52c13a8156b11c25c411d44bda8b32bf87e4 (patch) | |
tree | cfd78e5e8febba83ad8381e88c5e9ddbd6ad6f8e /.gitignore | |
parent | 0e0f91b6ddcdd338bcd528b3f44eb3f019704fb3 (diff) | |
download | lvm2-417e52c13a8156b11c25c411d44bda8b32bf87e4.tar.gz |
udev: create /dev/disk/by-id/lvm-pv-uuid-<PV_UUID> symlink for a PV
We already have /dev/disk/by-id/dm-uuid-... (which encompasses the
VG UUID and LV UUID in case of LVs since the mapping's UUID is
VG+LV UUID together) and /dev/disk/by-id/dm-name-... (which encompasses
the VG and LV name in case of LVs).
This patch addds /dev/disk/by-id/lvm-pv-uuid-<PV_UUID> that completes
this scheme and makes navigation a bit easier using PV UUIDs since
one can navigate using PV UUIDs only and there's no need to do extra
PV UUID <--> kernel name matching (the PV UUID is stable across reboots).
This may come in handy in various scripts.
Since we already have the PV UUID stored in udev database (as a result
of blkid call - returned in ID_FS_UUID blkid's variable), this operation
is very cheap indeed, just creating the extra one symlink.
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions