#include <StoreSwapLogData.h>
Public Member Functions | |
StoreSwapLogHeader () | |
bool | sane () const |
consistency self-check: whether the data appears to make sense More... | |
size_t | gapSize () const |
number of bytes after the log header before the first log entry More... | |
Public Attributes | |
uint8_t | op |
SwapChecksum24 | checksum |
int32_t | version |
int32_t | record_size |
Detailed Description
Swap log starts with this binary structure.
Definition at line 176 of file StoreSwapLogData.h.
Constructor & Destructor Documentation
◆ StoreSwapLogHeader()
StoreSwapLogHeader::StoreSwapLogHeader | ( | ) |
Definition at line 78 of file StoreSwapLogData.cc.
References checksum, record_size, SwapChecksum24::set(), and version.
Member Function Documentation
◆ gapSize()
size_t StoreSwapLogHeader::gapSize | ( | ) | const |
Definition at line 96 of file StoreSwapLogData.cc.
References assert, and record_size.
Referenced by Fs::Ufs::UFSSwapDir::openTmpSwapLog(), and Fs::Ufs::UFSSwapDir::writeCleanStart().
◆ sane()
bool StoreSwapLogHeader::sane | ( | ) | const |
Definition at line 85 of file StoreSwapLogData.cc.
References checksum, op, record_size, SwapChecksum24::set(), SWAP_LOG_VERSION, and version.
Referenced by Fs::Ufs::UFSSwapLogParser::GetUFSSwapLogParser().
Member Data Documentation
◆ checksum
SwapChecksum24 StoreSwapLogHeader::checksum |
Definition at line 189 of file StoreSwapLogData.h.
Referenced by StoreSwapLogHeader(), and sane().
◆ op
uint8_t StoreSwapLogHeader::op |
Definition at line 188 of file StoreSwapLogData.h.
Referenced by Fs::Ufs::UFSSwapLogParser::GetUFSSwapLogParser(), and sane().
◆ record_size
int32_t StoreSwapLogHeader::record_size |
Definition at line 191 of file StoreSwapLogData.h.
Referenced by StoreSwapLogHeader(), gapSize(), Fs::Ufs::UFSSwapLogParser::GetUFSSwapLogParser(), Fs::Ufs::UFSSwapDir::openTmpSwapLog(), sane(), and Fs::Ufs::UFSSwapDir::writeCleanStart().
◆ version
int32_t StoreSwapLogHeader::version |
Definition at line 190 of file StoreSwapLogData.h.
Referenced by StoreSwapLogHeader(), Fs::Ufs::UFSSwapLogParser::GetUFSSwapLogParser(), and sane().
The documentation for this class was generated from the following files: