We need additional check-sum to verify data integrity.
When Linux has hardware failure, some garbage can be written to data file, that is why we need check-sums to verify data integrity on reading. When check-sum fails, file needs to be truncated to the position of an end of last valid block.
For check-sum generation, we have com.koda.util.Utils class (hash functions). We will probably need some additional code.
We need additional check-sum to verify data integrity. When Linux has hardware failure, some garbage can be written to data file, that is why we need check-sums to verify data integrity on reading. When check-sum fails, file needs to be truncated to the position of an end of last valid block.
For check-sum generation, we have com.koda.util.Utils class (hash functions). We will probably need some additional code.