diff options
author | Martin K. Petersen <martin.petersen@oracle.com> | 2008-06-25 11:22:42 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2008-07-12 08:22:32 -0500 |
commit | f11f594edba7f689af9792a5673ed59d660ad371 (patch) | |
tree | 4fae88f3893ce57f2f85280d16330fc61a943d44 /include/linux/crc-t10dif.h | |
parent | 5b635da11e3a6387172abd651d26d8ef54b1fbc7 (diff) | |
download | linux-f11f594edba7f689af9792a5673ed59d660ad371.tar.gz linux-f11f594edba7f689af9792a5673ed59d660ad371.tar.bz2 linux-f11f594edba7f689af9792a5673ed59d660ad371.zip |
[SCSI] lib: Add support for the T10 (SCSI) Data Integrity Field CRC
The SCSI Block Protocol uses this 16-bit CRC to verify the integrity
of each data sector. crc_t10dif() is used by sd_dif.c when performing
I/O to or from disks formatted with protection information.
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'include/linux/crc-t10dif.h')
-rw-r--r-- | include/linux/crc-t10dif.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/crc-t10dif.h b/include/linux/crc-t10dif.h new file mode 100644 index 000000000000..a9c96d865ee7 --- /dev/null +++ b/include/linux/crc-t10dif.h @@ -0,0 +1,8 @@ +#ifndef _LINUX_CRC_T10DIF_H +#define _LINUX_CRC_T10DIF_H + +#include <linux/types.h> + +__u16 crc_t10dif(unsigned char const *, size_t); + +#endif |