enter_journa...ad_only_mode(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ enter_journal_read_only_mode(9) ✨

okay so bestie, welcome to the Kernel API Manual πŸ’– this one's short and honestly a little dramatic β€” it's the function that slams the door and puts the journal in read-only mode. think of it as the "we're closed, go home" of recovery journals πŸ’…


πŸŽ€ NAME πŸŽ€

enter_journal_read_only_mode β€” Put the journal in read-only mode.

like, literally that. the vibe check failed, the journal goes read-only, periodt.


🌸 SYNOPSIS 🌸

void enter_journal_read_only_mode (struct recovery_journal *journal ,
int error_code );

returns nothing, takes two things, no cap. void β€” it just does the thing and dips πŸ¦‹


πŸ’œ ARGUMENTS πŸ’œ

  • journal β€” The journal which has failed. that's the one we're putting into read-only mode, poor thing 😭
  • error_code β€” The error result triggering this call. like, the reason we're here in the first place, the receipts of what went wrong.

πŸ”₯ DESCRIPTION πŸ”₯

okay bestie, here's the whole thing, and it's giving "closing time" energy:

All attempts to add entries after this function is called will fail. all of them. not some β€” all. so don't bother, the door is locked, the sign says closed, we're not letting anything in 🚫✨

And all VIOs waiting for commits will be awakened with an error. yep, every single one of those poor waiting VIOs gets woken up just to be handed an error 😭 brutal but honest β€” at least they're not stuck waiting forever, iykyk 🫢

ngl, this is the "everything is on fire so we're shutting the whole thing down" function. it's not fixing anything β€” it's containing the damage πŸ’€

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./drivers/md/dm-vdo/recovery-journal.c (that's where all the magic lives, main character energy fr fr) plus the whole squad:


that's the whole page bestie, go read the rest of the squad when you get a sec πŸ§šπŸ’œ

source: ./drivers/md/dm-vdo Β· October 2026 Β· enter_journa...ad_only_mode(9) β€” mwah, hope this helped, ily, stay hydrated and don't add entries after calling this πŸ“πŸ‘‘

πŸ“¦ where this page comes from