STRUCT NILFS_SEGMENT_USAGE(9)

๐Ÿ“ฆ version 7.3.1, in nixpkgs unstable

okay so bestie, this is struct nilfs_segment_usage(9) from the Kernel API Manual, and itโ€™s literally the segment usage struct โ€” no cap, very main character energy โœจ๐Ÿ’…

๐ŸŒธ NAME ๐ŸŒธ

struct nilfs_segment_usage - segment usage โ€” yes bestie, thatโ€™s the literal NAME line, and itโ€™s giving segment usage realness ๐Ÿซถ

โœจ SYNOPSIS โœจ

hereโ€™s the struct in all its glory โ€” copy it exactly, we do not mess with kernel code ๐Ÿ‘‘:

       struct nilfs_segment_usage {
           __le64 su_lastmod;
           __le32 su_nblocks;
           __le32 su_flags;
        };

๐Ÿฆ‹ Members ๐Ÿฆ‹

  • su_lastmod โ€” last modified timestamp, aka when this segment last got its timestamp moment โฐโœจ
  • su_nblocks โ€” number of blocks in segment; literally counting the blocks, periodt ๐Ÿงฎ๐Ÿ’œ
  • su_flags โ€” flags, the little flag field doing its flag things ๐Ÿšฉโœจ

๐Ÿ”ฅ SEE ALSO ๐Ÿ”ฅ

Kernel file ./include/uapi/linux/nilfs2_ondisk.h is the file, and these are the structs/friends you should also peek at, iykyk ๐Ÿ‘€:

  • Kernel file ./include/uapi/linux/nilfs2_ondisk.h
    • struct nilfs_inode(9)
    • struct nilfs_super_root(9)
    • struct nilfs_super_block(9)
    • struct nilfs_finfo(9)
    • struct nilfs_binfo_v(9)
    • struct nilfs_binfo_dat(9)
    • union nilfs_binfo(9)
    • struct nilfs_segment_summary(9)
    • struct nilfs_btree_node(9)
    • struct nilfs_direct_node(9)
    • struct nilfs_palloc_group_desc(9)
    • struct nilfs_dat_entry(9)
    • struct nilfs_snapshot_list(9)
    • struct nilfs_checkpoint(9)
    • struct nilfs_cpfile_header(9)
    • struct nilfs_sufile_header(9)

xoxo, your kernel bestie ๐Ÿ’– โ€” source path ./include/uapi/linux, manual Kernel API Manual, date October 2026, page struct nilfs_segment_usage(9), and thatโ€™s the whole footer vibe ๐Ÿซถโœจ

๐Ÿ“ฆ where this page comes from