nilfs_cpfil..._checkpoints(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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:


⭐ 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