OSDN Git Service

nvdimm: Use the namespace guid, not just the device guid
authorPeter Jones <pjones@redhat.com>
Fri, 8 Jun 2018 17:44:37 +0000 (13:44 -0400)
committerPeter Jones <pmjones@gmail.com>
Fri, 8 Jun 2018 19:11:37 +0000 (15:11 -0400)
commitf2178c3274ff905ca0508c803275c8c7fb86e22a
tree266293538d74a88592b13753e2a7ed6709265e6f
parenta4fe0ec4c0da1f887de4e04f5935444ce94b8e47
nvdimm: Use the namespace guid, not just the device guid

This makes long-form device paths for nvdimm be:

NVDIMM(pmem-namespace-guid)/NVDIMM(pmem-label-guid)/HD(...)/File(...)

It also conditionally removes our UUID swizzling, because nobody can
figure out what the correct encoding is, and only byteswaps if
LIBEFIBOOT_SWIZZLE_PMEM_UUID is set (to any value) in the environment.

Signed-off-by: Peter Jones <pjones@redhat.com>
src/linux-pmem.c
src/linux.h