diff options
| author | Dan Williams <dan.j.williams@intel.com> | 2017-06-06 14:10:51 -0400 |
|---|---|---|
| committer | Dan Williams <dan.j.williams@intel.com> | 2017-06-15 17:31:40 -0400 |
| commit | faec6f8a1cd2c44e439de35ab3328c5cf7bf52d8 (patch) | |
| tree | 140523684286a8a5283b54ec1e1d4e1a258fcc04 /include/linux/libnvdimm.h | |
| parent | f979b13c3cc51584882bffa32965f34e5afa3b9b (diff) | |
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>
Diffstat (limited to 'include/linux/libnvdimm.h')
| -rw-r--r-- | include/linux/libnvdimm.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/libnvdimm.h b/include/linux/libnvdimm.h index 722cdf21429f..4b9f178c82e6 100644 --- a/include/linux/libnvdimm.h +++ b/include/linux/libnvdimm.h | |||
| @@ -17,6 +17,7 @@ | |||
| 17 | #include <linux/kernel.h> | 17 | #include <linux/kernel.h> |
| 18 | #include <linux/sizes.h> | 18 | #include <linux/sizes.h> |
| 19 | #include <linux/types.h> | 19 | #include <linux/types.h> |
| 20 | #include <linux/uuid.h> | ||
| 20 | 21 | ||
| 21 | enum { | 22 | enum { |
| 22 | /* when a dimm supports both PMEM and BLK access a label is required */ | 23 | /* when a dimm supports both PMEM and BLK access a label is required */ |
| @@ -77,6 +78,8 @@ struct nd_interleave_set { | |||
| 77 | u64 cookie2; | 78 | u64 cookie2; |
| 78 | /* compatibility with initial buggy Linux implementation */ | 79 | /* compatibility with initial buggy Linux implementation */ |
| 79 | u64 altcookie; | 80 | u64 altcookie; |
| 81 | |||
| 82 | guid_t type_guid; | ||
| 80 | }; | 83 | }; |
| 81 | 84 | ||
| 82 | struct nd_mapping_desc { | 85 | struct nd_mapping_desc { |
