libnvdimm: write pmem label set
After 'uuid', 'size', and optionally 'alt_name' have been set to valid values the labels on the dimms can be updated. Write procedure is: 1/ Allocate and write new labels in the "next" index 2/ Free the old labels in the working copy 3/ Write the bitmap and the label space on the dimm 4/ Write the index to make the update valid Label ranges directly mirror the dpa resource values for the given label_id of the namespace. 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>
Showing
- drivers/nvdimm/dimm_devs.c 49 additions, 0 deletionsdrivers/nvdimm/dimm_devs.c
- drivers/nvdimm/label.c 325 additions, 3 deletionsdrivers/nvdimm/label.c
- drivers/nvdimm/label.h 6 additions, 0 deletionsdrivers/nvdimm/label.h
- drivers/nvdimm/namespace_devs.c 72 additions, 11 deletionsdrivers/nvdimm/namespace_devs.c
- drivers/nvdimm/nd.h 3 additions, 0 deletionsdrivers/nvdimm/nd.h
Please register or sign in to comment