[PATCH 0/2] libnvdimm: dynamic label support

From: Dan Williams
Date: Wed Oct 19 2016 - 12:13:38 EST


Allow label support to be dynamically enabled for PMEM regions that are
not aliased with BLK. By default these PMEM regions are surfaced as a
single / label-less namespace. However, if the backing dimm(s) for the
region support labels then PMEM sub-division support can be enabled by

1/ disable the pmem region
2/ write a valid namespace index block to the label area
3/ re-enable the region and create a namespace

See the man page for the "ndctl init-labels" command.

---

Dan Williams (2):
libnvdimm: allow a platform to force enable label support
tools/testing/nvdimm: dynamic label support


drivers/nvdimm/dimm.c | 2 ++
drivers/nvdimm/dimm_devs.c | 7 +++++++
drivers/nvdimm/nd.h | 1 +
tools/testing/nvdimm/test/nfit.c | 30 +++++++++++++++++++++++-------
4 files changed, 33 insertions(+), 7 deletions(-)