STRUCT NILFS_SUSTAT(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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, iykyk
  • ss_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