nilfs_get_blocksize(9)
π nilfs_get_blocksize(9) β Kernel API Manual π
okay bestie, we're in the Kernel API Manual and this page is literally nilfs_get_blocksize(9). no cap, it's about getting the block size from raw superblock data. π¦
πΈ NAME πΈ
nilfs_get_blocksize β get block size from raw superblock data
β¨ SYNOPSIS β¨
int nilfs_get_blocksize (struct super_block *sb , struct
nilfs_super_block *sbp , int *blocksize );
π ARGUMENTS π
sbβ super block instance, the main character here πsbpβ superblock raw data buffer, aka the raw tea πblocksizeβ place to store block size, the lil output spot β¨
π¦ DESCRIPTION π¦
okay so nilfs_get_blocksize calculates the block size from the block size exponent information written in sbp and stores it in blocksize. the way that happens is exactly that β no extra lore, iykyk. π
and if it's too large, it aborts with an error message. periodt. no quiet fail, no "maybe it's fine", bestie, it's a whole abort. π
β RETURN β
0β on success, slay β-EINVALβ if the block size is too large, rip π
π SEE ALSO π
Kernel file ./fs/nilfs2/the_nilfs.c:
alloc_nilfs(9)destroy_nilfs(9)nilfs_store_log_cursor(9)load_nilfs(9)nilfs_nrsvsegs(9)nilfs_max_segment_count(9)nilfs_sb2_bad_offset(9)init_nilfs(9)
okay bye bestie π«Ά this page is from the source/version ./fs/nilfs2, dated October 2026, and it's nilfs_get_blocksize(9) from the Kernel API Manual. mwah π
π¦ 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