Re: [PATCH 13/14] lib: Add T10 Protection Information functions

2014-06-11 Thread Christoph Hellwig
static struct blk_integrity dif_type1_integrity_crc = { .name = T10-DIF-TYPE1-CRC, - .generate_fn= sd_dif_type1_generate_crc, - .verify_fn = sd_dif_type1_verify_crc, - .tuple_size = sizeof(struct sd_dif_tuple), +

Re: [PATCH 13/14] lib: Add T10 Protection Information functions

2014-06-11 Thread Martin K. Petersen
Christoph == Christoph Hellwig h...@infradead.org writes: static struct blk_integrity dif_type1_integrity_crc = { Christoph Shouldn't the whole profile defintions move to the generic Christoph code as well? Yeah, good idea. Christoph Maybe the code also should live in block/ and not lib/.

[PATCH 13/14] lib: Add T10 Protection Information functions

2014-05-28 Thread Martin K. Petersen
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 library that can be used without involving SCSI. Signed-off-by: Martin K. Petersen martin.peter...@oracle.com ---