Zlib may not be able to decompress some data compressed using QAT #12317
Labels
Status: Triage Needed
New issue which needs to be triaged
Type: Defect
Incorrect behavior (e.g. crash, hang)
System information
Describe the problem you're observing
We used QAT compression data blocks. When we did not use QAT cards, we found that several data blocks could not be decompressed using zlib. At first, we thought the data was corrupted. But the test found that the QAT card can be normally decompressed, the data seems to be no problem, the problem is the checksum(ADLER32) of last four byte. Then we queried the QAT API and found that the CpaDcGeneratefooter function that calculates the checksum code does not support the CPA_DC_STATELESS mode. ZFS uses the CPA_DC_STATELESS mode of the QAT card. So we think that might be a problem.
QAT Data Compression API page:61)
Describe how to reproduce the problem
Include any warning/errors/backtraces from the system logs
The text was updated successfully, but these errors were encountered: