dbg_check_idx_size(9)
π dbg_check_idx_size β check index size β¨
Okay bestie, so this one is from the Kernel API Manual (section 9, kernel API vibes only π«Ά) and it's literally just dbg_check_idx_size doing a little vibe check on the UBIFS index. Let's get into it πΈ
β¨ SYNOPSIS β¨
int dbg_check_idx_size (struct ubifs_info *c , long long idx_size );
π ARGUMENTS π
cβ the UBIFS file-system description object π like, this is the whole filesystem's little passport, ok?idx_sizeβ the size you want to check π the number going under the microscope, no cap
πΈ DESCRIPTION πΈ
So what this function does is it walks the UBIFS index β literally strolls through it, main character energy β calculates its size, and then checks that the size it just calculated is equivalent to idx_size. That's it. That's the whole plot π¦
Returns zero in case of success β¨ and a negative error code in case of failure π (so like, zero = slay, negative = not slay).
π₯ SEE ALSO π₯
Kernel file ./fs/ubifs/debug.c β and 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)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)
ngl bestie, that's a lot of cross-references β read them all, iykyk π
That's the whole page, mwah π β brought to you by the ./fs/ubifs girlies, dated October 2026 β (yes, the future, we're early π). Periodt. π
π¦ 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