dbg_check_synced_i_size(9)
π dbg_check_synced_i_size(9) β like, the Kernel API Manual page you didn't know you needed π
okay bestie, buckle up, because we're doing a vibe check on an inode size and honestly? it's giving meticulous. this one lives in the Kernel API Manual, and it's a lil debug helper with a very specific job. let's get into it β¨
πΈ NAME πΈ
dbg_check_synced_i_size β check synchronized inode size. that's it. that's the whole gig. no cap π
π¦ SYNOPSIS π¦
int dbg_check_synced_i_size (const struct ubifs_info *c , struct inode
*inode );
literally just hand it the filesystem info and an inode and it'll tell you if things line up π«Ά
π ARGUMENTS π
cβ the UBIFS file-system description object. yes, thatc. the main character of the UBIFS universe πinodeβ the inode to check. the one getting the vibe check π
π DESCRIPTION π
okay so here's the tea β: if the inode is clean, then the synchronized inode size has to be equivalent to the current inode size. like, they match, or something's wrong. periodt.
β οΈ and this part is not optional, bestie: this function has to be called only for locked inodes (i_mutex has to be locked). do not skip this. do not be cute about it. lock first, then call. π
it returns 0 if the synchronized inode size is correct, and -EINVAL if it is not. that's your pass/fail, no in-between energy π
π SEE ALSO π
the whole friend group, fr fr β the kernel file ./fs/ubifs/debug.c plus:
ubifs_dump_index(9)dbg_save_space_info(9)dbg_check_space_info(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_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 whole page, bestie! π§ it's from ./fs/ubifs, dated October 2026, and the page itself is dbg_check_synced_i_size(9). go forth and check those synced inode sizes responsibly β lock that i_mutex first, iykyk π
π₯
π¦ 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