libnvdimm, btt: add support for blk integrity
Support multiple block sizes (sector + metadata) using the blk integrity framework. This registers a new integrity template that defines the protection information tuple size based on the configured metadata size, and simply acts as a passthrough for protection information generated by another layer. The metadata is written to the storage as-is, and read back with each sector. Signed-off-by:Vishal Verma <vishal.l.verma@linux.intel.com> Signed-off-by:
Dan Williams <dan.j.williams@intel.com>
Showing
- drivers/nvdimm/btt.c 113 additions, 16 deletionsdrivers/nvdimm/btt.c
- drivers/nvdimm/btt.h 1 addition, 1 deletiondrivers/nvdimm/btt.h
- drivers/nvdimm/btt_devs.c 2 additions, 1 deletiondrivers/nvdimm/btt_devs.c
- drivers/nvdimm/core.c 37 additions, 0 deletionsdrivers/nvdimm/core.c
- drivers/nvdimm/nd.h 1 addition, 0 deletionsdrivers/nvdimm/nd.h
Please register or sign in to comment