STRUCT NILFS_SUSTAT(9)
β¨ struct nilfs_sustat(9) β¨
okay bestie, welcome to the Kernel API Manual page for struct nilfs_sustat(9) β a.k.a. the literal vibe check for your segments π
no cap, this page is short but she's iconic.
πΈ NAME πΈ
struct nilfs_sustat β segment usage statistics π
β SYNOPSIS β
here's the whole struct, copy it exactly bestie, don't you dare retype it from memory:
struct nilfs_sustat {
__u64 ss_nsegs;
__u64 ss_ncleansegs;
__u64 ss_ndirtysegs;
__u64 ss_ctime;
__u64 ss_nongc_ctime;
__u64 ss_prot_seq;
};
(it's giving six __u64 fields and zero filler, we love a concise queen π)
π¦ Members π¦
so like, field by field, here we go:
ss_nsegsβ the number of segments. that's it, that's the count πss_ncleansegsβ number of clean segments. freshly scrubbed, dewy, main character energy β¨ss_ndirtysegsβ number of dirty segments. not her finest era but we still respect her πss_ctimeβ creation time of the last segment π (yes, the last one specifically, don't @ me)ss_nongc_ctimeβ creation time of the last segment not for GC π§ lowkey an important distinction, iykykss_prot_seqβ least sequence number of segments which must not be reclaimed π like, hands off, these ones are protected, periodt
π SEE ALSO π
go read these next, bestie, they're all in it together β Kernel file ./include/uapi/linux/nilfs2_api.h, plus:
struct nilfs_cpinfo(9)struct nilfs_suinfo(9)struct nilfs_suinfo_update(9)struct nilfs_cpmode(9)struct nilfs_argv(9)struct nilfs_period(9)struct nilfs_cpstat(9)struct nilfs_vinfo(9)struct nilfs_vdesc(9)struct nilfs_bdesc(9)
ngl the whole squad lives in ./include/uapi/linux so you already know where to find them π«Ά
okay that's the page!! huge shoutout to the source ./include/uapi/linux, dated October 2026 β thanks for the lore drop, mwah π and remember: struct nilfs_sustat(9) ate and left no crumbs π
π¦ 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