f2fs-checkpoint · shipping · also F2FS checkpoint pack

F2FS checkpoint

An F2FS checkpoint records a consistent filesystem recovery point, including information selecting valid metadata-table versions.

Related Observatory article: Read on hesela.com

The documented checkpoint=disable mode preserves an older recovery view across unmount or crash while disabled. In upstream Linux v6.12 and v6.16, the regular-file fsync path can return successful data-writeback status before later recovery-metadata handling when SBI_CP_DISABLED is set. It is not merely a longer checkpoint interval. [1] [2] [3]

At mount time the CP area is scanned for the last valid checkpoint. Only two CP copies are kept, one of which always indicates the last valid data, and NAT and SIT use the same shadow-copy scheme within fixed 2 MB segments. A checkpoint selects valid NAT and SIT copies, so a metadata-table copy should be interpreted with that selection, not simply treated as the newest usable recovery view. [1]

Relations

related
F2FS, F2FS roll-forward recovery, fsync, Crash consistency, F2FS Node Address Table, F2FS Segment Information Table, F2FS slack space recycling

Advantages

  • Keeping two checkpoint copies lets mount fall back to the last valid one while scanning only the CP area. [1]

Limitations

  • Mounting with checkpoint=disable must first run garbage collection and may return EAGAIN. An allowance given in blocks or as a percentage avoids that, but checkpoint=disable:100% can hide up to all remaining free space until checkpointing is re-enabled. [1]

Citations

  1. Linux 6.12 F2FS documentation: checkpoint, recovery and fsync mount policies. (accessed 2026-10-23)
  2. Linux v6.12 fs/f2fs/file.c: f2fs_do_sync_file and checkpoint fallback. (accessed 2026-10-23)
  3. Linux v6.16 fs/f2fs/file.c: regular-file writeback and SBI_CP_DISABLED return. (accessed 2026-10-15)

Further reading

  1. F2FS: when a successful fsync is not a recovery promise (accessed 2026-10-15)
Sources & caveats
  • manual re-read 2026-10-23 for checkpoint=disable, the two-copy CP scan and the 2 MB segment size. source612 re-read for the early return on SBI_CP_DISABLED in f2fs_do_sync_file.
  • A companion analysis on fsync and recovery is listed but not used in prose.
  • The bounded-crash-testing entry links here because the recovery view selected by a checkpoint bounds which crash states a test must consider.

JSON: /data/terms/f2fs-checkpoint.json

Published by Hesela team · Updated

Report a correction · Editorial standards · Reuse guidance

Cite this page
Hesela team. F2FS checkpoint. Hesela. 2026-10-23. https://hesela.dev/terms/f2fs-checkpoint/