nilfs_cpfile...e_checkpoint(9)
π nilfs_cpfile_delete_checkpoint(9) β the Kernel API Manual moment β¨
okay so bestie, welcome to the nilfs_cpfile...e_checkpoint(9) page from the Kernel API Manual π β yes that title is truncated, no I don't know why, yes we're moving on. this is the whole vibe: one function, one job, deleting a checkpoint. slay.
β¨ NAME β¨
nilfs_cpfile_delete_checkpoint β literally just deletes a checkpoint. that's it. that's the whole function π
π¦ SYNOPSIS π¦
int nilfs_cpfile_delete_checkpoint (struct inode *cpfile , __u64 cno );
look at her. iconique. note the lil space before the comma in *cpfile , β that's not a typo on my part, that's canon, we keep it exactly as-is, no cap π«Ά
πΈ ARGUMENTS πΈ
cpfileβ the checkpoint file inode. yes it's astruct inode *, yes it's the cpfile one, she's the main character here πcnoβ the checkpoint number you wanna delete, as a__u64. pick your victim, bestie π―
π RETURN π
she returns 0 on success β¨ β and on failure she hits you with one of these negative error codes, in list form because we're organized:
-EBUSYβ checkpoint is in use (snapshot specified). so like, it's taken, back off π-EIOβ I/O error, and yes that includes metadata corruption π things are Not Okay-ENOENTβ no valid checkpoint found. she looked. there was nothing there. π-ENOMEMβ insufficient memory available. the vibes ran out of RAM π
lowkey if you get -EIO with metadata corruption in the mix, that's your cue to actually pay attention, bestie. not a drill π
β SEE ALSO β
kernel file ./fs/nilfs2/cpfile.c, and honestly the whole friend group:
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_create_checkpoint(9)nilfs_cpfile_finalize_checkpoint(9)nilfs_cpfile_delete_checkpoints(9)β plural edition, she's differentnilfs_cpfile_get_cpinfo(9)nilfs_cpfile_is_snapshot(9)nilfs_cpfile_change_cpmode(9)nilfs_cpfile_get_stat(9)nilfs_cpfile_read(9)
periodt. go read them, they're all right there π§
and that's the page!! mwah π this little number lives in ./fs/nilfs2, dated October 2026, and it goes by nilfs_cpfile...e_checkpoint(9) forever and always π π
π¦ 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