libnvdimm, blk: add support for blk integrity
authorVishal Verma <vishal.l.verma@intel.com>
Thu, 25 Jun 2015 08:22:39 +0000 (04:22 -0400)
committerDan Williams <dan.j.williams@intel.com>
Fri, 26 Jun 2015 15:23:38 +0000 (11:23 -0400)
commitfcae695737fca0849c18db814d9d8de05c0fd2a2
treed88f8a5edf637cf1013c764e14df8c97b4b77539
parent41cd8b70c37ace40077c8d6ec0b74b983178c192
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>
drivers/nvdimm/blk.c
drivers/nvdimm/btt.h
drivers/nvdimm/core.c
drivers/nvdimm/namespace_devs.c
drivers/nvdimm/nd.h