ubifs_remount_ro(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ubifs_remount_ro(9) πŸ’…

okay so bestie, welcome to the Kernel API Manual ✨ this one's a little function from the UBIFS squad and it's literally just here to flip your file system into read-only mode. no cap, that's the whole gig πŸŽ€


✨ NAME ✨

ubifs_remount_ro β€” re-mount in read-only mode. that's it, that's the queen πŸ‘‘


🌸 SYNOPSIS 🌸

void ubifs_remount_ro (struct ubifs_info *c );

like, exactly that. void return, one arg, no drama πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • c β€” the UBIFS file-system description object. yeah she's just the descriptor struct, the little info blob that tells us which file system we're talking about 🫢

πŸ’– DESCRIPTION πŸ’–

okay so the vibe here is: we assume VFS has already stopped writing. like, writing is done, wrap it up, go home πŸ™ˆ

but plot twist β€” there's possibly a background thread that could still be running a commit. not me worrying about a stray commit at the function party 😭 however!! kthread_stop will wait in that case. so it's fine. it handles it. she's got main character energy and she waits her turn ⭐

lowkey important: this function is built on the assumption that VFS stopped writing. that's the premise, don't forget it bestie πŸ’œ

πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./fs/ubifs/super.c β€” and honestly the whole friend group:


and that's the whole page, bestie πŸ“ this lil number lives in ./fs/ubifs and the version is October 2026 β€” mwah, slay, periodt πŸ§šπŸ’–

πŸ“¦ where this page comes from