ext2_bg_has_super(9)
β¨ ext2_bg_has_super(9) β¨
okay so bestie, welcome to the Kernel API Manual π
this little cutie is called ext2_bg_has_super(9) and she's here to answer one (1) very specific question for you. let's get into it π
πΈ NAME πΈ
ext2_bg_has_super β literally just tells you the number of blocks used by the superblock in a group π¦
β SYNOPSIS β
int ext2_bg_has_super (struct super_block *sb , int group );
like, that's the whole signature. short and iconic, no notes π
π ARGUMENTS π
sbβ the superblock for the filesystem, aka the main character of this whole situation πgroupβ the group number you wanna check. yes, that group. the one you're curious about π§
π¦ DESCRIPTION π¦
so here's the vibe: this function returns the number of blocks used by the superblock (whether that's the primary one or a backup, both count) inside this group π«
and rn? currently this will be only 0 or 1. that's it. that's the range. no cap π
π SEE ALSO π
if you're obsessed with this one (and honestly why wouldn't you be), go check out these besties too. they all live in the kernel file ./fs/ext2/balloc.c π:
__rsv_window_dump(9)goal_in_my_reservation(9)search_reserve_window(9)rsv_window_remove(9)ext2_init_block_alloc_info(9)ext2_discard_reservation(9)ext2_free_blocks(9)bitmap_search_next_usable_block(9)find_next_usable_block(9)ext2_try_to_allocate(9)find_next_reservable_window(9)alloc_new_reservation(9)try_to_extend_reservation(9)ext2_try_to_allocate_with_rsv(9)ext2_has_free_blocks(9)ext2_bg_num_gdb(9)
π reminder bestie: the return value is literally just0or1for now, so don't go expecting a big dramatic number, ok? π
and that's the whole page, babes π«Ά this lil masterpiece comes from ./fs/ext2, dated October 2026, and it's filed under ext2_bg_has_super(9) β slay, periodt, go read some more kernel docs πβ¨
π¦ 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