|
Squid Web Cache master
|
#include <StoreSwapLogData.h>
Public Member Functions | |
| StoreSwapLogHeader () | |
| bool | sane () const |
| consistency self-check: whether the data appears to make sense | |
| size_t | gapSize () const |
| number of bytes after the log header before the first log entry | |
Public Attributes | |
| uint8_t | op |
| SwapChecksum24 | checksum |
| int32_t | version |
| int32_t | record_size |
Swap log starts with this binary structure.
Definition at line 176 of file StoreSwapLogData.h.
| StoreSwapLogHeader::StoreSwapLogHeader | ( | ) |
Definition at line 78 of file StoreSwapLogData.cc.
References checksum, record_size, SwapChecksum24::set(), and version.
| 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().
| 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().
| SwapChecksum24 StoreSwapLogHeader::checksum |
Definition at line 189 of file StoreSwapLogData.h.
Referenced by StoreSwapLogHeader(), and sane().
| uint8_t StoreSwapLogHeader::op |
Definition at line 188 of file StoreSwapLogData.h.
Referenced by Fs::Ufs::UFSSwapLogParser::GetUFSSwapLogParser(), and sane().
| 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().
| int32_t StoreSwapLogHeader::version |
Definition at line 190 of file StoreSwapLogData.h.
Referenced by StoreSwapLogHeader(), Fs::Ufs::UFSSwapLogParser::GetUFSSwapLogParser(), and sane().