class JournalSuperblock
Defined at line 20 of file ../../src/storage/lib/vfs/cpp/journal/superblock.h
Contains and manages state representing the on-device journal info block.
Public Methods
void JournalSuperblock ()
Defined at line 23 of file ../../src/storage/lib/vfs/cpp/journal/superblock.cc
void JournalSuperblock (std::unique_ptr<storage::BlockBuffer> buffer)
Defined at line 25 of file ../../src/storage/lib/vfs/cpp/journal/superblock.cc
zx_status_t Validate ()
Confirms that the magic and checksums within the info block are correct.
Returns |ZX_ERR_IO| if these fields do not match the expected value.
Defined at line 30 of file ../../src/storage/lib/vfs/cpp/journal/superblock.cc
uint64_t start ()
Returns the start of the first journal entry.
Defined at line 35 of file ../../src/storage/lib/vfs/cpp/journal/superblock.h
uint64_t sequence_number ()
Defined at line 36 of file ../../src/storage/lib/vfs/cpp/journal/superblock.h
const storage::BlockBuffer & buffer ()
Defined at line 37 of file ../../src/storage/lib/vfs/cpp/journal/superblock.h
void Update (uint64_t start, uint64_t sequence_number)
Updates all client-visible fields of the info block. Additionally updates the checksum and
sequence_number in-memory.
Defined at line 46 of file ../../src/storage/lib/vfs/cpp/journal/superblock.cc