You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This program "fixes" T10-PI checksums by writing 0xff bytes in the appropriate places. It is licensed with the MIT license. Usage information is included in the massive comment at the top of fix_t10pi.c.
Generally, you'll want to do something like this (assuming a sector size of 4096). If you're working with Type 2, you'll need to add cdbsz=32 for each ddpt instance:
If you are using a different sector size, you'll need to change the #define SECTOR_SIZE_DATA_ONLY to be 512.
Be sure to read the entire comment at the top of the .c file.
Note that you'll see a number of terms and variations that I should probably include here for searchability:
T10PI, T10 PI, DIF, DIX, Data Integrity Field, Data Integrity Extension
For more information about use cases, a purely hypothetical thought exercise was posted at: http://tech.ryancox.net/2020/12/fixing-bad-t10-pi-checksums.html. Any resemblance to real life diasters is purely coincidental.