jbd2_journal_set_features(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’« jbd2_journal_set_features(9) πŸ’«

okay so bestie, welcome to the kernel API manual ✨ today's main character is jbd2_journal_set_features β€” and yes she lives in the Kernel API Manual, that's her whole address, iykyk πŸŽ€


🌸 NAME 🌸

jbd2_journal_set_features β€” bestie, this one literally marks a given journal feature in the superblock πŸ’…


✨ SYNOPSIS ✨

int jbd2_journal_set_features (journal_t *journal , unsigned long compat , unsigned long ro , unsigned long incompat );

like, that's the whole summoning circle πŸ•―οΈ no cap


🫢 ARGUMENTS 🫢

  • journal β€” the journal we're acting on, aka the girl we're doing all this for πŸ‘‘
  • compat β€” a bitmask of compatible features, so they're the chill, low-stakes ones 🌈
  • ro β€” a bitmask of features that force a read-only mount, so yeah, these ones are giving consequences 😭
  • incompat β€” a bitmask of incompatible features, and the name is literally right there bestie πŸ’€

πŸ¦‹ DESCRIPTION πŸ¦‹

So what she does is mark a given journal feature as present on the superblock ✨ that's it, that's the vibe.

She returns true if the requested features could be set πŸ’– like, she'll tell you honestly whether it worked out. no cap, no games.


πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./fs/jbd2/journal.c β€” go read her, she's iconic 🧚


mwah πŸ’‹ that's the whole page! this little gem comes from ./fs/jbd2, dated October 2026 β€” so go be the main character of your own filesystem, slay πŸ¦‹πŸ’œβ­

periodt. πŸ’…

πŸ“¦ where this page comes from