jbd2_journal_errno(9)
π jbd2_journal_errno(9) π
okay bestie, so this is a page straight out of the Kernel API Manual π§ and it's all about peeking at a journal's error state. tiny function, big feelings. let's get into it β¨
πΈ SYNOPSIS πΈ
int jbd2_journal_errno (journal_t *journal );
π ARGUMENTS π
journalβ the journal you wanna examine π that's it, that's the whole argument, she's lowkey simple like that.
π¦ DESCRIPTION π¦
so here's the tea β β what you get back is the errno number that got set with jbd2_journal_abort, like, the last time the journal was mounted. if the journal was stopped without anybody calling abort, then this bad boy is just 0 (no drama, no errors, we love a peaceful queen π).
but wait, there's more π«Ά β if the journal has been aborted on this mount time, you get -EROFS back. it's giving "read-only, bestie, don't even try it" π₯ ngl that's the whole vibe check right there.
fr fr, keep those two cases straight:0= stopped all clean,-EROFS= aborted during this mount. both are real, both matter π
β SEE ALSO β
first up, the source itself: Kernel file ./fs/jbd2/journal.c π and then the whole friend group π β the squad of related calls:
jbd2_journal_force_commit_nested(9)jbd2_journal_force_commit(9)jbd2_journal_shrink_scan(9)jbd2_journal_shrink_count(9)jbd2_journal_init_dev(9)jbd2_journal_init_inode(9)jbd2_journal_update_sb_log_tail(9)jbd2_mark_journal_empty(9)__jbd2_journal_erase(9)jbd2_journal_update_sb_errno(9)jbd2_journal_load(9)jbd2_journal_destroy(9)jbd2_journal_check_used_features(9)jbd2_journal_check_available_features(9)jbd2_journal_set_features(9)jbd2_journal_flush(9)jbd2_journal_wipe(9)jbd2_journal_abort(9)jbd2_journal_clear_err(9)jbd2_journal_ack_err(9)
go read those next, bestie, they're the main characters of this whole saga π
aaaand that's a wrap on this one π¬π tysm for reading, catch you in the next manpage β this lil beauty lives in <pink>./fs/jbd2</pink> and it's dated October 2026 so mark your calendar bestie ππ¦ slay! β¨
π¦ 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