nilfs_cpfile...e_checkpoint(9)
π NAME π
okay so bestie, welcome to the Kernel API Manual page for nilfs_cpfile_create_checkpoint β the function that creates a checkpoint entry on cpfile. The page header has a little truncation situation going on β nilfs_cpfile...e_checkpoint(9) β but the function name is the full glow-up above. β¨
β¨ SYNOPSIS β¨
int nilfs_cpfile_create_checkpoint (struct inode *cpfile , __u64 cno );
π«Ά ARGUMENTS π«Ά
cpfileβ checkpoint file inode. it's the inode holding the checkpoint file, periodt.cnoβ number of checkpoint to set up. literally the checkpoint number you want to create.
π DESCRIPTION π
okay so here's the tea: this function creates a checkpoint with the number specified by cno on cpfile. If the specified checkpoint entry already exists due to a past failure, it will be reused without returning an error β no cap, that's a reuse situation, not an error situation. In either case, the buffer of the block containing the checkpoint entry and the cpfile inode are made dirty for inclusion in the write log. highkey important. π
π₯ RETURN π₯
0 on success, or one of the following negative error codes on failure:
-ENOMEMβ Insufficient memory available.-EIOβ I/O error (including metadata corruption).-EROFSβ Read only filesystem.
π SEE ALSO π
Kernel file ./fs/nilfs2/cpfile.c β and the whole bestie squad:
nilfs_cpfile_checkpoint_offset(9)nilfs_cpfile_cp_snapshot_list_offset(9)nilfs_cpfile_ch_snapshot_list_offset(9)nilfs_cpfile_find_checkpoint_block(9)nilfs_cpfile_read_checkpoint(9)nilfs_cpfile_finalize_checkpoint(9)nilfs_cpfile_delete_checkpoints(9)nilfs_cpfile_get_cpinfo(9)nilfs_cpfile_delete_checkpoint(9)nilfs_cpfile_is_snapshot(9)nilfs_cpfile_change_cpmode(9)nilfs_cpfile_get_stat(9)nilfs_cpfile_read(9)
byeee π this page is from ./fs/nilfs2, dated October 2026 β mwah, go make that checkpoint entry iconic! π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms