summaryrefslogtreecommitdiffstats
path: root/drivers/nvdimm/namespace_devs.c
diff options
context:
space:
mode:
authorVishal Verma2015-06-25 10:22:39 +0200
committerDan Williams2015-06-26 17:23:38 +0200
commitfcae695737fca0849c18db814d9d8de05c0fd2a2 (patch)
treed88f8a5edf637cf1013c764e14df8c97b4b77539 /drivers/nvdimm/namespace_devs.c
parentlibnvdimm, btt: add support for blk integrity (diff)
downloadkernel-qcow2-linux-fcae695737fca0849c18db814d9d8de05c0fd2a2.tar.gz
kernel-qcow2-linux-fcae695737fca0849c18db814d9d8de05c0fd2a2.tar.xz
kernel-qcow2-linux-fcae695737fca0849c18db814d9d8de05c0fd2a2.zip
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>
Diffstat (limited to 'drivers/nvdimm/namespace_devs.c')
-rw-r--r--drivers/nvdimm/namespace_devs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/nvdimm/namespace_devs.c b/drivers/nvdimm/namespace_devs.c
index 1ce1e70de44a..27d69bd3b4d6 100644
--- a/drivers/nvdimm/namespace_devs.c
+++ b/drivers/nvdimm/namespace_devs.c
@@ -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)