nilfs_ioctl_get_sustat(9)
π nilfs_ioctl_get_sustat(9) β get segment usage statistics β¨
okay so bestie, welcome to the Kernel API Manual for nilfs_ioctl_get_sustat(9) β yes that's the whole name, it's giving "my parents gave me a long name and I'm owning it" π
πΈ NAME πΈ
nilfs_ioctl_get_sustat β get segment usage statistics π
It literally does what it says on the tin, no cap.
β¨ SYNOPSIS β¨
int nilfs_ioctl_get_sustat (struct inode *inode , struct file *filp ,
unsigned int cmd , void __user *argp );
four arguments, one int back, that's the whole vibe π¦
π«Ά ARGUMENTS π«Ά
inodeβ the inode object, bestie. the main character of the file world πfilpβ the file object. it's giving "we're doing this on an open file" πcmdβ the ioctl's request code. the lil "which thing are we doing" tag πargpβ a pointer to the argument from userspace. this is where the answers go, iykyk π«
π DESCRIPTION π
so, nilfs_ioctl_get_sustat returns segment usage statistics. periodt. π
the NILFS_IOCTL_GET_SUSTAT ioctl is what's used in lssu, in the nilfs_resize utilities, and by the nilfs_cleanerd daemon β like, those are its people, its little crew π«Ά
the requested segment usage information gets copied to the userspace memory pointed to by argp. that's it, that's the whole job. slay. β¨
π RETURN π
0 on success π or one of the following negative error codes on failure (ngl the failures are the relatable part):
-EFAULTβ failure during getting segment usage statistics π-EIOβ I/O error π-ENOMEMβ insufficient memory available π
π¦ SEE ALSO π¦
okay so this is the friend group, and honestly? it's a big one. go say hi:
- Kernel file
./fs/nilfs2/ioctl.cβ the source file itself, the mothership πΈ 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_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_delete_checkpoints(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)
and that's the whole page, bestie!! π this lil manual page lives in ./fs/nilfs2 and it's dated October 2026 β go forth and read your segment usage statistics, i'm obsessed for you ππβ¨
π¦ 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