STRUCT FSCK_INODE(9)

๐Ÿ“ฆ version 7.3.1, in nixpkgs unstable

๐Ÿ’– NAME ๐Ÿ’–

okay bestie, welcome to the struct fsck_inode(9) page from the Kernel API Manual. This struct is information about an inode used when checking the file-system. Thatโ€™s the whole vibe: inode receipts for fsck, and weโ€™re obsessed ๐Ÿซถโœจ


โœจ SYNOPSIS โœจ

       struct fsck_inode {
           struct rb_node rb;
           ino_t inum;
           umode_t mode;
           unsigned int nlink;
           unsigned int xattr_cnt;
           int references;
           int calc_cnt;
           long long size;
           unsigned int xattr_sz;
           long long calc_sz;
           long long calc_xcnt;
           long long calc_xsz;
           unsigned int xattr_nms;
           long long calc_xnms;
        };

๐Ÿ‘‘ Members ๐Ÿ‘‘

  • rb โ€” link in the RB-tree of inodes ๐ŸŒณ
  • inum โ€” inode number ๐Ÿ”ข
  • mode โ€” inode type, permissions, etc ๐ŸŽ›๏ธ
  • nlink โ€” inode link count ๐Ÿ”—
  • xattr_cnt โ€” count of extended attributes โœจ
  • references โ€” how many directory/xattr entries refer this inode (calculated while walking the index) ๐Ÿ‘€
  • calc_cnt โ€” for directory inode count of child directories ๐Ÿ“
  • size โ€” inode size (read from on-flash inode) ๐Ÿ“
  • xattr_sz โ€” summary size of all extended attributes (read from on-flash inode) ๐Ÿงฎ
  • calc_sz โ€” for directories calculated directory size ๐Ÿ“‚
  • calc_xcnt โ€” count of extended attributes ๐Ÿ”ข
  • calc_xsz โ€” calculated summary size of all extended attributes ๐Ÿงพ
  • xattr_nms โ€” sum of lengths of all extended attribute names belonging to this inode (read from on-flash inode) ๐Ÿท๏ธ
  • calc_xnms โ€” calculated sum of lengths of all extended attribute names ๐Ÿ“

๐ŸŒˆ SEE ALSO ๐ŸŒˆ

The SEE ALSO section calls out the kernel file ./fs/ubifs/debug.c, and then the ref squad is literally all of these:

periodt, thatโ€™s the whole list ๐Ÿ‘‘


byeee bestie ๐Ÿ’– โ€” source/version ./fs/ubifs, date October 2026, and this whole page is struct fsck_inode(9). slay and goodbye ๐ŸŽ€

๐Ÿ“ฆ where this page comes from