ubifs_remount_ro(9)
π 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:
validate_inode(9)init_constants_early(9)bud_wbuf_callback(9)take_gc_lnum(9)alloc_wbufs(9)free_wbufs(9)free_orphans(9)free_buds(9)check_volume_empty(9)ubifs_parse_param(9)destroy_journal(9)bu_init(9)check_free_space(9)mount_ubifs(9)ubifs_umount(9)ubifs_remount_rw(9)β her opposite-direction sister, go say hi π«open_ubi(9)
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
- 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