init_statfs(9)
π NAME π
okay bestie, welcome to the init_statfs(9) page in the Kernel API Manual β yes, weβre doing kernel stuff today, and this one is here to look up and initialize master and local (per node) statfs inodes. slay β¨
β¨ SYNOPSIS β¨
int init_statfs (struct gfs2_sbd *sdp );
π ARGUMENTS π
sdpβ the GFS2 superblock. thatβs the whole argument, bestie π«Ά
π DESCRIPTION π
okay so the vibe is: this should be called after the jindex is initialized in init_journal and before gfs2_journal_recovery is called. why? because we need to be able to write to these inodes during recovery. no cap, timing is everything here β
π₯ RETURN π₯
errno β thatβs it, thatβs the return π
π SEE ALSO π
Kernel file: ./fs/gfs2/ops_fstype.c β and the whole related squad:
gfs2_tune_init(9)gfs2_check_sb(9)gfs2_read_super(9)gfs2_read_sb(9)gfs2_jindex_hold(9)gfs2_lm_mount(9)gfs2_fill_super(9)gfs2_get_tree(9)gfs2_evict_inodes(9)
π«Ά thatβs the tea, bestie: source/version is ./fs/gfs2, dated October 2026, and the page is init_statfs(9). bye and stay iconic π
π¦ 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