• D
    libnvdimm: write pmem label set · f524bf27
    Dan Williams 提交于
    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: NChristoph Hellwig <hch@lst.de>
    Signed-off-by: NDan Williams <dan.j.williams@intel.com>
    f524bf27
nd.h 4.1 KB