mirror of
https://gitee.com/openharmony/third_party_f2fs-tools
synced 2025-02-17 01:19:53 +00:00
![Jaegeuk Kim](/assets/img/avatar_default.png)
This patch adds nat_bits in the last one ore two 4KB-sized blocks of first checkpoint segment. So, now a set of checkpoint *segment* consists of: < checkpoint segment > ---------------------- | cp page #1 | 4KB ---------------------- | compacted data sum | 4KB ---------------------- | node sum #1 | 4KB ---------------------- | node sum #2 | 4KB ---------------------- | node sum #3 | 4KB ---------------------- | cp page #2 | 4KB ---------------------- ... ---------------------- | crc|cpver | 8 bytes ---------------------- | full NAT bits | # of NAT segments / 2 * 512 / 8 bytes ---------------------- | empty NAT bits | # of NAT segments / 2 * 512 / 8 bytes ---------------------- Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>