libnvdimm, label: populate the type_guid property for v1.2 namespaces
The type_guid refers to the "Address Range Type GUID" for the region backing a namespace as defined the ACPI NFIT (NVDIMM Firmware Interface Table). This 'type' identifier specifies an access mechanism for the given namespace. This capability replaces the confusing usage of the 'NSLABEL_FLAG_LOCAL' flag to indicate a block-aperture-mode namespace. Signed-off-by: Dan Williams <dan.j.williams@intel.com>
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/sizes.h>
|
||||
#include <linux/types.h>
|
||||
#include <linux/uuid.h>
|
||||
|
||||
enum {
|
||||
/* when a dimm supports both PMEM and BLK access a label is required */
|
||||
@@ -77,6 +78,8 @@ struct nd_interleave_set {
|
||||
u64 cookie2;
|
||||
/* compatibility with initial buggy Linux implementation */
|
||||
u64 altcookie;
|
||||
|
||||
guid_t type_guid;
|
||||
};
|
||||
|
||||
struct nd_mapping_desc {
|
||||
|
Reference in New Issue
Block a user