validate_journal_layout4

Function validate_journal_layout4 

Source
pub fn validate_journal_layout4(layout: &JournalLayout4) -> Result<(), Error>
Expand description

Validate a mapped JournalLayout4.

Checks:

  • v1 header compatibility (magic/version)
  • required capabilities (journal)
  • layout_bytes is large enough for the base layout
  • initialization state is 2
  • if INDEXBUS_CAP_SUPPORTS_BLOCKING is set, ensures the mapping is large enough to hold an appended JournalWakeSection4 at the next 64B boundary