ext4_bg_num_gdb(9)
β¨ NAME β¨
ext4_bg_num_gdb(9) β from the Kernel API Manual, bestie β is literally the function that gives you the number of blocks used by the group table in a group π
β¨ SYNOPSIS β¨
unsigned long ext4_bg_num_gdb (struct super_block *sb , ext4_group_t group );
π ARGUMENTS π
sbβ the superblock for the filesystem, aka the main-character context for this whole lookup π«Άgroupβ the group number you wanna check π
π DESCRIPTION π
Okay so this function returns the number of blocks used by the group descriptor table β either the primary one or the backup one β in this group. Periodt π
Future tea alert π«: there may be a different number of descriptor blocks in each group.
π¦ SEE ALSO π¦
Kernel file ./fs/ext4/balloc.c β and the whole squad is here too:
ext4_get_group_desc(9)ext4_read_block_bitmap_nowait(9)ext4_has_free_clusters(9)ext4_should_retry_alloc(9)ext4_count_free_clusters(9)ext4_bg_has_super(9)ext4_inode_to_goal_block(9)
mwah π this page lives in ./fs/ext4 and is dated October 2026 β go off, bestie! ππ
π¦ 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