libnvdimm, blk: add support for blk integrity
Support multiple block sizes (sector + metadata) for nd_blk in the same way as done for the BTT. Add the idea of an 'internal' lbasize, which is properly aligned and padded, and store metadata in this space. Signed-off-by: Vishal Verma <vishal.l.verma@linux.intel.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
This commit is contained in:

committed by
Dan Williams

parent
41cd8b70c3
commit
fcae695737
@@ -1059,7 +1059,8 @@ static ssize_t resource_show(struct device *dev,
|
||||
}
|
||||
static DEVICE_ATTR_RO(resource);
|
||||
|
||||
static const unsigned long ns_lbasize_supported[] = { 512, 0 };
|
||||
static const unsigned long ns_lbasize_supported[] = { 512, 520, 528,
|
||||
4096, 4104, 4160, 4224, 0 };
|
||||
|
||||
static ssize_t sector_size_show(struct device *dev,
|
||||
struct device_attribute *attr, char *buf)
|
||||
|
Reference in New Issue
Block a user