jbd2_journal_init_dev(9)
π jbd2_journal_init_dev(9) π
okay so bestie, you found yourself a page from the Kernel API Manual and it's literally all about jbd2_journal_init_dev. pull up a chair, we're doing kernel journaling today π
β¨ NAME β¨
jbd2_journal_init_dev β creates and initialises a journal structure. that's it, that's the whole vibe. she makes journals, she initialises them, she slays π
π¦ SYNOPSIS π¦
journal_t * jbd2_journal_init_dev (struct block_device *bdev , struct
block_device *fs_dev , unsigned long long start , int len , int
blocksize );
look at her go. five args, one journal_t * coming right back at you π₯
πΈ ARGUMENTS πΈ
bdevβ the Block device on which to create the journal. this is the home base, the main character of the operation πfs_devβ the Device which hold journalled filesystem for this journal. yes, "hold" β we're keeping the original's grammar era alive, no cap πstartβ Block nr Start of journal. where the journal begins, block-wise πlenβ Length of the journal in blocks. how long she runs π§blocksizeβ blocksize of journalling device. self-explanatory honestly, iykyk π
β RETURN β
a newly created journal_t * β fresh out of the oven, still warm, obsessed π«Ά
π DESCRIPTION π
jbd2_journal_init_dev creates a journal which maps a fixed contiguous range of blocks on an arbitrary block device. fixed. contiguous. arbitrary device. she's flexible like that π
like, the way that she just takes a chunk of blocks and makes a whole journal out of them? iconic behaviour fr fr β¨
π₯ SEE ALSO π₯
Kernel file ./fs/jbd2/journal.c β go read the source bestie, it's giving transparency π
and the whole friend group:
jbd2_journal_force_commit_nested(9)jbd2_journal_force_commit(9)jbd2_journal_shrink_scan(9)jbd2_journal_shrink_count(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_errno(9)jbd2_journal_clear_err(9)jbd2_journal_ack_err(9)
twenty of them. twenty. she has a big friend group and honestly? we love that for her ππ«Ά
aaaand that's the page!! mwah π this iconic little manual page lives in ./fs/jbd2, dated October 2026, and answers to the name jbd2_journal_init_dev(9). bye bestie, go init a journal responsibly ππ
π¦ 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