ext4_has_free_clusters(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

okay so this is the ext4_has_free_clusters(9) page from the Kernel API Manual, bestie 🫢. The NAME line is literally ext4_has_free_clusters - and then it just ends β€” no extra description after the dash, no cap πŸ™ˆπŸ’….

πŸ’… SYNOPSIS πŸ’…

exact signature, character-for-character, because we respect the source:

int ext4_has_free_clusters (struct ext4_sb_info *sbi , s64 nclusters ,
       unsigned int flags );

πŸŽ€ ARGUMENTS πŸŽ€

  • sbi β€” the in-core super block structure. main-character data situation, lowkey πŸ’–
  • nclusters β€” number of needed blocks. yes bestie, the arg is named clusters but the description says blocks β€” we're just reporting the lore 🫢
  • flags β€” flags from ext4_mb_new_blocks. periodt ✨

🌸 DESCRIPTION 🌸

Check if filesystem has nclusters free & available for allocation. that's the vibe check πŸ”₯.

On success return 1, return 0 on failure. so: success -> 1, failure -> 0 β€” that's the whole return-value saga πŸ’€βœ¨.

πŸ¦‹ SEE ALSO πŸ¦‹

the kernel file is ./fs/ext4/balloc.c, and the whole friend group is:


made with πŸ’– from the ./fs/ext4 source tree, October 2026 vintage, and this manual page is ext4_has_free_clusters(9) β€” bye bestie, go check those free clusters πŸ§šπŸ’œ

πŸ“¦ where this page comes from