nilfs_ioctl_..._checkpoints(9)
π 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:
nilfs_ioctl_wrap_copy(9)nilfs_fileattr_get(9)nilfs_fileattr_set(9)nilfs_ioctl_getversion(9)nilfs_ioctl_change_cpmode(9)nilfs_ioctl_delete_checkpoint(9)nilfs_ioctl_do_get_cpinfo(9)nilfs_ioctl_get_cpstat(9)nilfs_ioctl_do_get_suinfo(9)nilfs_ioctl_get_sustat(9)nilfs_ioctl_do_get_vinfo(9)nilfs_ioctl_do_get_bdescs(9)nilfs_ioctl_get_bdescs(9)nilfs_ioctl_move_inode_block(9)nilfs_ioctl_move_blocks(9)nilfs_ioctl_free_vblocknrs(9)nilfs_ioctl_mark_blocks_dirty(9)nilfs_ioctl_clean_segments(9)nilfs_ioctl_sync(9)nilfs_ioctl_resize(9)nilfs_ioctl_trim_fs(9)nilfs_ioctl_set_alloc_range(9)nilfs_ioctl_get_info(9)nilfs_ioctl_set_suinfo(9)nilfs_ioctl_get_fslabel(9)nilfs_ioctl_set_fslabel(9)
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
- 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