mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
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>
This commit is contained in:
parent
564e871aa6
commit
c12c48ce86
6 changed files with 104 additions and 12 deletions
|
@ -71,7 +71,10 @@ struct nd_cmd_desc {
|
|||
};
|
||||
|
||||
struct nd_interleave_set {
|
||||
u64 cookie;
|
||||
/* v1.1 definition of the interleave-set-cookie algorithm */
|
||||
u64 cookie1;
|
||||
/* v1.2 definition of the interleave-set-cookie algorithm */
|
||||
u64 cookie2;
|
||||
/* compatibility with initial buggy Linux implementation */
|
||||
u64 altcookie;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue