]> www.infradead.org Git - users/jedix/linux-maple.git/commit
libnvdimm: pmem label sets and namespace instantiation.
authorDan Williams <dan.j.williams@intel.com>
Wed, 17 Jun 2015 21:14:46 +0000 (17:14 -0400)
committerDan Duval <dan.duval@oracle.com>
Tue, 11 Oct 2016 18:37:07 +0000 (14:37 -0400)
commit5bec9fbdee8be546d635a212a2dcc6babca0066c
treec1272c2bdf1f0068bc5a2985bcc7bdb41ffc2d23
parent5f394b979d1fc5ee43843eee3a76154a8ba1eb84
libnvdimm: pmem label sets and namespace instantiation.

Orabug: 22913653

A complete label set is a PMEM-label per-dimm per-interleave-set where
all the UUIDs match and the interleave set cookie matches the hosting
interleave set.

Present sysfs attributes for manipulation of a PMEM-namespace's
'alt_name', 'uuid', and 'size' attributes.  A later patch will make
these settings persistent by writing back the label.

Note that PMEM allocations grow forwards from the start of an interleave
set (lowest dimm-physical-address (DPA)).  BLK-namespaces that alias
with a PMEM interleave set will grow allocations backward from the
highest DPA.

Cc: Greg KH <gregkh@linuxfoundation.org>
Cc: Neil Brown <neilb@suse.de>
Acked-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
(cherry picked from commit bf9bccc14c05dae8caba29df6187c731710f5380)
Signed-off-by: Dan Duval <dan.duval@oracle.com>
15 files changed:
drivers/nvdimm/bus.c
drivers/nvdimm/core.c
drivers/nvdimm/dimm.c
drivers/nvdimm/dimm_devs.c
drivers/nvdimm/label.c
drivers/nvdimm/label.h
drivers/nvdimm/namespace_devs.c
drivers/nvdimm/nd-core.h
drivers/nvdimm/nd.h
drivers/nvdimm/pmem.c
drivers/nvdimm/region.c
drivers/nvdimm/region_devs.c
include/linux/libnvdimm.h
include/linux/nd.h
include/uapi/linux/ndctl.h