diff options
author | Dan Williams <dan.j.williams@intel.com> | 2017-06-03 21:59:15 -0400 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2017-06-15 17:31:39 -0400 |
commit | c12c48ce869d72029d70666f615cbd8f67fc14e9 (patch) | |
tree | c38e0587856fdaf94d0401cf644aae05c519804a /include/linux/libnvdimm.h | |
parent | 564e871aa66f548a947b23808d3140f326381f0c (diff) |
libnvdimm, label: add v1.2 interleave-set-cookie algorithm
The interleave-set-cookie algorithm is extended to incorporate all the
same components that are used to generate an nvdimm unique-id. For
backwards compatibility we still maintain the old v1.1 definition.
Reported-by: Nicholas Moulin <nicholas.w.moulin@intel.com>
Reported-by: Kaushik Kanetkar <kaushik.a.kanetkar@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'include/linux/libnvdimm.h')
-rw-r--r-- | include/linux/libnvdimm.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/linux/libnvdimm.h b/include/linux/libnvdimm.h index 6c807017128d..722cdf21429f 100644 --- a/include/linux/libnvdimm.h +++ b/include/linux/libnvdimm.h | |||
@@ -71,7 +71,10 @@ struct nd_cmd_desc { | |||
71 | }; | 71 | }; |
72 | 72 | ||
73 | struct nd_interleave_set { | 73 | struct nd_interleave_set { |
74 | u64 cookie; | 74 | /* v1.1 definition of the interleave-set-cookie algorithm */ |
75 | u64 cookie1; | ||
76 | /* v1.2 definition of the interleave-set-cookie algorithm */ | ||
77 | u64 cookie2; | ||
75 | /* compatibility with initial buggy Linux implementation */ | 78 | /* compatibility with initial buggy Linux implementation */ |
76 | u64 altcookie; | 79 | u64 altcookie; |
77 | }; | 80 | }; |