]> asedeno.scripts.mit.edu Git - linux.git/commit
libnvdimm, label: update 'nlabel' and 'position' handling for local namespaces
authorDan Williams <dan.j.williams@intel.com>
Tue, 6 Jun 2017 21:59:04 +0000 (14:59 -0700)
committerDan Williams <dan.j.williams@intel.com>
Thu, 15 Jun 2017 21:31:40 +0000 (14:31 -0700)
commit3934d8410cb837c5f6bff54e66574a4bbcef340a
tree0ddb31e5e956fcb7b0dd53de0bdef15e506f8193
parent8f2bc2430e4ec53ea961997d760c3b35f729e444
libnvdimm, label: update 'nlabel' and 'position' handling for local namespaces

The v1.2 namespace label specification requires 'nlabel' and 'position'
to be valid for the first ("lowest dpa") label in the set. It also
requires all non-first labels to set those fields to 0xff.

Linux does not much care if these values are correct, because we can
just trust the count of labels with the matching uuid like the v1.1
case. However, we set them correctly in case other environments care.

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/nvdimm/label.c