nilfs_cpfile...e_checkpoint(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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

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