Jaegeuk Kim 191573e71b mkfs.f2fs: support nat_bits feature
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>
2017-02-23 10:11:41 -08:00
..
2017-01-19 15:29:08 +08:00
2017-01-19 15:29:08 +08:00
2017-01-19 15:29:08 +08:00
2017-02-23 10:11:41 -08:00
2017-02-23 10:11:41 -08:00
2017-02-23 10:11:41 -08:00
2017-02-23 10:11:41 -08:00
2017-01-19 15:29:08 +08:00
2017-02-23 10:11:41 -08:00
2017-01-19 15:29:08 +08:00