]> git.baikalelectronics.ru Git - kernel.git/commit
nvme: also provide a UUID in the WWID sysfs attribute
authorJohannes Thumshirn <jthumshirn@suse.de>
Wed, 12 Jul 2017 13:38:56 +0000 (15:38 +0200)
committerChristoph Hellwig <hch@lst.de>
Tue, 25 Jul 2017 15:58:22 +0000 (17:58 +0200)
commit5af73c25c81aefe383dfcb9e8c6ba5905b8d3f79
tree26b941af4dc9633d50ab729aa2c910ffbadbed27
parent21b4bf7d8ce5082b640671c3a077e9591c493898
nvme: also provide a UUID in the WWID sysfs attribute

The WWID sysfs attribute can provide multiple means of a World Wide ID
for a NVMe device. It can either be a NGUID, a EUI-64 or a concatenation
of VID, Serial Number, Model and the Namespace ID in this order of
preference.

If the target also sends us a UUID use the UUID for identification and
give it the highest priority.

This eases generation of /dev/disk/by-* symlinks.

Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/core.c