nilfs_cpfil..._checkpoints(9)
π NAME π
nilfs_cpfile_delete_checkpoints β bestie, this one deletes checkpoints. That's it. That's the whole vibe. β¨
Oh and hiii, welcome to the Kernel API Manual π β yes you're reading kernel docs, and yes you're gonna slay it.
π¦ SYNOPSIS π¦
int nilfs_cpfile_delete_checkpoints (struct inode *cpfile , __u64 start
, __u64 end );
Like, look at her. Three args. Very demure, very mindful. π
πΈ ARGUMENTS πΈ
cpfileβ the inode of the checkpoint file. That's your girl, your main character, the file we're operating on. πstartβ the start checkpoint number. Where the drama begins. πendβ the end checkpoint number. Where it stops (and no, she is NOT included, more on that below, stay with me π).
β¨ DESCRIPTION β¨
Okay so here's the tea, bestie. β nilfs_cpfile_delete_checkpoints deletes the checkpoints in the period from start to end, excluding end itself. Like, end is off-limits, she's not invited to the deletion party. π«
And the checkpoints that have already been deleted? They get ignored. Completely unbothered. Not me worrying about them, they're fine, they're literally already gone. π The function just doesn't care, no error, no nothing. Iconic behavior honestly. π«Ά
π₯ RETURN π₯
She returns 0 on success π β or one of these negative error codes when things go sideways:
-EINVALβ invalid checkpoints. You gave her nonsense, she's giving it right back. π-EIOβ I/O error (including metadata corruption). Yeah this one's the π one, metadata corruption is NOT the vibe.-ENOMEMβ insufficient memory available. She's hungry, she needs RAM, feed her. π
π SEE ALSO π
Kernel file ./fs/nilfs2/cpfile.c β and the whole friend group, fr fr:
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_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)
β tiny reminder bestie: end is excluded from the range, and already-deleted checkpoints are ignored. No cap. Don't @ me when you're surprised. π
Okay that's the whole page, go touch some kernel code ily π This lil masterpiece lives in ./fs/nilfs2 and it's stamped October 2026 β catch you in the next manpage, mwah π§β¨π
π¦ 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