check_inodes(9)
πΈ check_inodes β checks all inodes πΈ
okay so this one is from the Kernel API Manual, section 9 β yes, the big-kid kernel section, we love that for us π«Ά
β¨ NAME β¨
check_inodes β literally just checks all the inodes. that's the whole job. she's a very "no thoughts head empty just verify" icon π
π SYNOPSIS π
int check_inodes (struct ubifs_info *c , struct fsck_data *fsckd );
π¦ ARGUMENTS π¦
cβ the UBIFS file-system description object. the whole vibe of the filesystem lives in here ποΈfsckdβ the FS checking information. all the fsck-y deets go in this one π
π₯ DESCRIPTION π₯
okay so picture this: this is a helper function for dbg_check_filesystem, right? and what she does is she walks the RB-tree of inodes after the index scan has finished. like, the scan is done, everybody's seated, and now she's doing the vibe check β¨
and what's she checking? that inode nlink, size, etc. are correct. the etc. is doing a lot of heavy lifting there but that's what the manpage says so we're saying it too, no cap π
Returns:
- zero if the inodes are fine β slay, we love a clean run π
-EINVALif they're not fine β not slay, something's wrong π- a negative error code in case of failure β like an actual "something broke broke" failure, not just a "validation failed" failure π
bestie please note: "returns zero if inodes are fine, -EINVAL if not, and a negative error code in case of failure" β those are three separate outcomes, don't merge them in your head, i'm begging π«Ά
π SEE ALSO π
Kernel file ./fs/ubifs/debug.c β and the whole friend group, in the order the manpage gives them:
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_inode(9)struct fsck_data(9)add_inode(9)search_inode(9)read_add_inode(9)check_leaf(9)free_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)
that's the whole page, bestie, you ate it up πβ¨ from ./fs/ubifs, dated October 2026 β mwah, see you in the next manpage ππ
π¦ 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