On 2024/6/28 9:31, Sheng Yong wrote:
This patch enables injecting checkpoint. To archive this, a helper
write_raw_cp_blocks() is added to write the first and last blocks
of a specific cp. And print_ckpt_info() is exported to show new
checkpoint info.

The meanings of options are:
  * cp: means cp is injected, its argument chooses which cp pack to be
        injected, where 0 means the current valid cp is choosen
        automatically.

The members could be injected in cp contains:
  * checkpoint_ver: checkpoint version
  * ckpt_flags: checkpoint flags
  * cur_node_segno: cur_node_segno array
  * cur_node_blkoff: cur_node_blkoff array
  * cur_data_segno: cur_data_segno array
  * cur_data_blkoff: cur_data_blkoff array

Signed-off-by: Sheng Yong <[email protected]>

Reviewed-by: Chao Yu <[email protected]>

Thanks,


_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

Reply via email to