The 2 bytes that follow the blockmap are the CRC16 (with starting value 0xFFFF (like modbus)) of the first 8 bytes and the blockmap.
然后是journal。其结构如下:
然后是journal。其结构如下:
Line 67:
Line 66:
</pre>
</pre>
−
With magic being a constant 0x080d6ce0.
+
magic 是一个固定值 0x080d6ce0.
−
The checksums in the blockmap/journal entries work as follows:
+
blockmap/journal入口的验校和是这样工作的:
−
* each byte is the checksum of an encrypted 0x200 bytes large block
+
* 每个 byte 是一个 0x200 大小加密的块的验校和
−
* to calculate the checksum, a CRC16 of the block (with starting value 0xFFFF) is calculated, and the two bytes of the CRC16 are XORed together to produce the 8bit checksum