diff --git a/src/overlaybd/zfile/zfile.cpp b/src/overlaybd/zfile/zfile.cpp index 0c8d618e..87304e52 100644 --- a/src/overlaybd/zfile/zfile.cpp +++ b/src/overlaybd/zfile/zfile.cpp @@ -615,6 +615,7 @@ class ZFileBuilder : public VirtualReadOnlyFile { LOG_ERRNO_RETURN(0, -1, "failed to write index."); } auto pht = (CompressionFile::HeaderTrailer *)m_ht; + pht->index_crc = crc32::crc32c(&m_block_len[0], index_bytes); pht->index_offset = index_offset; pht->index_size = index_size; pht->original_file_size = raw_data_size;