nilfs_sufile_get_stat(9)
πΈ NAME πΈ
nilfs_sufile_get_stat β get segment usage statistics. This is page nilfs_sufile_get_stat(9) from the Kernel API Manual, and bestie, it is literally giving kernel-statistics main character energy β¨.
β¨ SYNOPSIS β¨
int nilfs_sufile_get_stat (struct inode *sufile , struct nilfs_sustat
*sustat );
π ARGUMENTS π
sufileβ inode of segment usage file ποΈsustatβ pointer to a structure of segment usage statistics π
π« DESCRIPTION π«
okay so nilfs_sufile_get_stat retrieves segment usage statistics and stores them in the location pointed to by sustat. That's the vibe: grab the stats, put them where sustat points π
.
π₯ RETURN π₯
0 on success, or one of the following negative error codes on failure:
-EIOβ I/O error (including metadata corruption) π-ENOMEMβ Insufficient memory available π
π¦ SEE ALSO π¦
Kernel file ./fs/nilfs2/sufile.c β plus the whole friend group:
struct nilfs_sufile_info(9)nilfs_sufile_segment_usage_offset(9)nilfs_sufile_get_ncleansegs(9)nilfs_sufile_updatev(9)nilfs_sufile_set_alloc_range(9)nilfs_sufile_alloc(9)nilfs_sufile_mark_dirty(9)nilfs_sufile_set_segment_usage(9)nilfs_sufile_truncate_range(9)nilfs_sufile_resize(9)nilfs_sufile_get_suinfo(9)nilfs_sufile_set_suinfo(9)nilfs_sufile_trim_fs(9)nilfs_sufile_read(9)
xoxo bestie π this one came from ./fs/nilfs2 and is dated October 2026 π
π¦ 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