nilfs_ioctl_..._checkpoints(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… nilfs_ioctl_..._checkpoints(9)

okay so bestie, welcome to section 9 of the kernel API manual β€” yes we're in kernel API territory, this is the nilfs_ioctl_..._checkpoints(9) page and it's literally all about deleting checkpoints on nilfs2. grab a strawberry drink πŸ“ and let's go.


✨ NAME ✨

nilfs_ioctl_delete_checkpoints β€” delete checkpoints. that's it, that's the whole vibe. πŸ—‘οΈ


πŸ¦‹ SYNOPSIS πŸ¦‹

int nilfs_ioctl_delete_checkpoints (struct the_nilfs *nilfs , struct
nilfs_argv *argv , void *buf );

copy it exactly like that, fr fr β€” the spacing is character for character what the manual says, don't come for me πŸ’€


πŸŽ€ ARGUMENTS πŸŽ€

  • nilfs β€” the nilfs object, aka the main character of this whole operation πŸ‘‘
  • argv β€” the vector of arguments coming at us from userspace 🫢
  • buf β€” an array of periods of checkpoints numbers. yes, periods, plural, it's giving "we're doing a bunch of these at once" ✨

🌸 DESCRIPTION 🌸

so what does nilfs_ioctl_delete_checkpoints actually do? it deletes checkpoints in the period from p_start to p_end, excluding p_end itself β€” like, p_end is not invited to the deletion party, she stays πŸ™ˆ.

and the checkpoints that have already been deleted? completely ignored. no drama, no error, just vibes β€” they're already gone so we move on πŸ’…


πŸ’– RETURN πŸ’–

on success you get the number of processed nilfs_period structures back. cute! but if it fails, you get one of these negative error codes, and ngl none of them are a slay:

  • -EINVAL β€” invalid checkpoints. the checkpoints did not pass the vibe check 😭
  • -EIO β€” I/O error. the disk said no πŸ’€
  • -ENOMEM β€” insufficient memory available. she's out of RAM, it's over 🧚

⭐ SEE ALSO ⭐

the kernel file it lives in: ./fs/nilfs2/ioctl.c β€” and here's the whole friend group, every single one, no gatekeeping:

go read them, iykyk πŸ“š


reminder bestie: this is from ./fs/nilfs2, dated October 2026 β€” that's the source and version info, and it's the last line of the page, so treat it like the outro 🎬

and that's the page!! periodt. hope you understood it, love u, go delete some checkpoints responsibly πŸ’œπŸŒˆβœ¨

πŸ“¦ where this page comes from