block: Add T10 Protection Information functions
The T10 Protection Information format is also used by some devices that do not go through the SCSI layer (virtual block devices, NVMe). Relocate the relevant functions to a block layer library that can be used without involving SCSI. Signed-off-by:Martin K. Petersen <martin.petersen@oracle.com> Reviewed-by:
Christoph Hellwig <hch@lst.de> Signed-off-by:
Jens Axboe <axboe@fb.com>
Showing
- block/Kconfig 1 addition, 0 deletionsblock/Kconfig
- block/Makefile 2 additions, 2 deletionsblock/Makefile
- block/t10-pi.c 197 additions, 0 deletionsblock/t10-pi.c
- drivers/scsi/Kconfig 0 additions, 1 deletiondrivers/scsi/Kconfig
- drivers/scsi/sd_dif.c 20 additions, 221 deletionsdrivers/scsi/sd_dif.c
- include/linux/crc-t10dif.h 3 additions, 2 deletionsinclude/linux/crc-t10dif.h
- include/linux/t10-pi.h 22 additions, 0 deletionsinclude/linux/t10-pi.h
Loading
Please register or sign in to comment