nilfs_cleanup_super(9)
πΈ NAME πΈ
nilfs_cleanup_super β write filesystem state for cleanup.
okay bestie, you're reading the nilfs_cleanup_super(9) page from the Kernel API Manual, and we're about to make cleanup state flags make sense. no cap π
β¨ SYNOPSIS β¨
int nilfs_cleanup_super (struct super_block *sb );
π ARGUMENTS π
sbβ the super block instance that's getting unmounted, or getting degraded to read-only. that's the whole vibe check for this argument π«Ά
π DESCRIPTION π
okay so this function restores the state flags in the on-disk super block. it's literally putting those state flags back where they belong.
it will set the "clean" flag β that's NILFS_VALID_FS, iykyk β unless the filesystem was not clean previously. so if it was already not clean, no fake-clean behavior here. periodt.
π₯ RETURN π₯
0on success.-EIOif there's an I/O error or the superblock is corrupted.
π¦ SEE ALSO π¦
- Kernel file
./fs/nilfs2/super.c __nilfs_error(9)nilfs_move_2nd_super(9)nilfs_resize_fs(9)nilfs_tree_is_busy(9)nilfs_fill_super(9)
π cute little sign-off: this page is sourced from ./fs/nilfs2, dated October 2026, and it's the nilfs_cleanup_super(9) manual page. byeeee, go touch some filesystem state π«Άβ¨
π¦ 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