> "Christoph" == Christoph Hellwig 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/.
Fine by
> 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),
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
---
block/Kconfig | 1 +
3 matches
Mail list logo