dbg_check_tnc(9)
π dbg_check_tnc(9) β like, the TNC tree inspector bestie
okay so this is a page from the Kernel API Manual, and it's all about dbg_check_tnc β a UBIFS debugging function that walks the whole TNC tree and checks every single znode. yes bestie, the whole tree. no skipping. π§β¨
β¨ SYNOPSIS β¨
int dbg_check_tnc (struct ubifs_info *c , int extra );
that's the whole signature, she's short and she knows it π
π ARGUMENTS π
cβ the UBIFS file-system description object. your file system, basically, in struct form πΈextraβ do extra checks that are possible at start commit. like the deluxe version of the check, more effort, more scrutiny π₯
π¦ DESCRIPTION π¦
so what she does is: this function traverses the whole TNC tree π and checks every znode along the way. every. single. one. no cap.
what does she return? glad you asked:
- returns zero if everything is all right β slay, we love a clean bill of health π
- returns
-EINVALif something is wrong with TNC β not slay, something is off and she's telling you about it π
fr fr, if you get -EINVAL back it means the TNC has a problem. don't ignore it. that's the whole point of the check π
π SEE ALSO π
here's the whole friend group β the kernel file ./fs/ubifs/debug.c plus everyone tagged below π«Ά
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_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_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)
and that's the page!! ππ this one lives in ./fs/ubifs and it's dated October 2026 β so go forth, check that tree, get your zero, and stan a clean TNC β¨π¦π
π¦ 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