dbg_check_filesystem(9)
π NAME π
okay so this is dbg_check_filesystem(9) from the Kernel API Manual, and the assignment is literally in the name: check the file-system. bestie, that's the whole vibe. β¨
πΈ SYNOPSIS πΈ
int dbg_check_filesystem (struct ubifs_info *c );
π ARGUMENTS π
cβ UBIFS file-system description object. that's the one thing you pass in, and it's the whole UBIFS file-system description object, no cap.
π¦ DESCRIPTION π¦
okay so here's what this icon actually checks, bestie. it checks the file system, namely:
- makes sure that all leaf nodes exist and their CRCs are correct
- makes sure inode nlink, size, xattr size/count are correct (for all inodes)
the function reads whole indexing tree and all nodes, so it is pretty heavy-weight β like, it's giving "I read everything" energy, fr fr. Returns zero if the file-system is consistent, -EINVAL if not, and a negative error code in case of failure. π
π SEE ALSO π
Kernel file ./fs/ubifs/debug.c, plus the whole friend group:
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)check_inodes(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)
signed off from source/version ./fs/ubifs, dated October 2026, on the dbg_check_filesystem(9) page πππ«Ά
π¦ 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