STRUCT FSCK_INODE(9)
๐ 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:
ubifs_dump_index(9)dbg_save_space_info(9)dbg_check_space_info(9)dbg_check_synced_i_size(9)dbg_check_key_order(9)dbg_check_znode(9)dbg_check_tnc(9)dbg_walk_index(9)add_size(9)dbg_check_idx_size(9)struct fsck_data(9)add_inode(9)search_inode(9)read_add_inode(9)check_leaf(9)free_inodes(9)check_inodes(9)dbg_check_filesystem(9)dbg_check_data_nodes_order(9)dbg_check_nondata_nodes_order(9)provide_user_output(9)interpret_user_input(9)dbg_debugfs_init_fs(9)dbg_debugfs_exit_fs(9)dbg_debugfs_init(9)dbg_debugfs_exit(9)ubifs_debugging_init(9)ubifs_debugging_exit(9)
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
- 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