jbd2_journal_wipe(9)
π« jbd2_journal_wipe(9) π«
okay bestie, buckle up, we're in the kernel API manual rn β this is a page from the Kernel API Manual, and no cap it's actually kind of a big deal π
β¨ NAME β¨
jbd2_journal_wipe β wipe journal contents, like, the whole thing π
π¦ SYNOPSIS π¦
int jbd2_journal_wipe (journal_t *journal , int write );
πΈ ARGUMENTS πΈ
journalβ the journal you're acting on. main character, literally.writeβ a flag, and bestie the details are right below π
π DESCRIPTION π
So what this does is wipe out all of the contents of a journal. Safely. Iconic behavior honestly.
The way that it also produces a warning if the journal contains any valid recovery information. so like, heads up π«Ά
π¨ fr fr: this must be called betweenjournal_init_*()andjbd2_journal_load. don't be out here calling it whenever, that's not the vibe.
And here's the tea on the write flag:
- If
writeis non-zero, then we wipe out the journal on disk. like, actually gone, on the disk, periodt. - Otherwise β if it's zero β we merely suppress recovery. way more chill, lowkey.
π SEE ALSO π
Kernel file ./fs/jbd2/journal.c π (yes, the whole file, she's listed)
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_abort(9)jbd2_journal_errno(9)jbd2_journal_clear_err(9)jbd2_journal_ack_err(9)
like, the whole friend group, fr fr π₯
mwah π that's the page! brought to you by ./fs/jbd2, dated October 2026, and yes the title at the top and bottom is jbd2_journal_wipe(9) the whole way through β iykyk π§ββοΈβ¨
π¦ 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