Classes | |
struct | StoreSwapLogDataOld |
Public Member Functions | |
UFSSwapLogParser_v1_32bs (FILE *fp) | |
bool | ReadRecord (StoreSwapLogData &swapData) override |
Convert the on-disk 32-bit format to our current format while reading. More... | |
int | SwapLogEntries () |
void | Close () |
Static Public Member Functions | |
static UFSSwapLogParser * | GetUFSSwapLogParser (FILE *fp) |
Public Attributes | |
FILE * | log |
int | log_entries |
int | record_size |
Detailed Description
Parse a swap header entry created on a system with 32-bit size_t and sfileno this is typical of 32-bit systems without large file support NP: SQUID_MD5_DIGEST_LENGTH is very risky still.
Definition at line 23 of file UFSSwapLogParser.cc.
Constructor & Destructor Documentation
◆ UFSSwapLogParser_v1_32bs()
|
inline |
Definition at line 40 of file UFSSwapLogParser.cc.
References Fs::Ufs::UFSSwapLogParser::record_size.
Member Function Documentation
◆ Close()
|
inlineinherited |
Definition at line 34 of file UFSSwapLogParser.h.
References Fs::Ufs::UFSSwapLogParser::log.
◆ GetUFSSwapLogParser()
|
staticinherited |
Definition at line 81 of file UFSSwapLogParser.cc.
References assert, DBG_IMPORTANT, debugs, StoreSwapLogHeader::op, StoreSwapLogHeader::record_size, StoreSwapLogHeader::sane(), SWAP_LOG_VERSION, and StoreSwapLogHeader::version.
Referenced by Fs::Ufs::RebuildState::RebuildState().
◆ ReadRecord()
|
inlineoverridevirtual |
Implements Fs::Ufs::UFSSwapLogParser.
Definition at line 44 of file UFSSwapLogParser.cc.
References assert, UFSSwapLogParser_v1_32bs::StoreSwapLogDataOld::expires, StoreSwapLogData::expires, UFSSwapLogParser_v1_32bs::StoreSwapLogDataOld::flags, StoreSwapLogData::flags, UFSSwapLogParser_v1_32bs::StoreSwapLogDataOld::key, StoreSwapLogData::key, UFSSwapLogParser_v1_32bs::StoreSwapLogDataOld::lastmod, StoreSwapLogData::lastmod, UFSSwapLogParser_v1_32bs::StoreSwapLogDataOld::lastref, StoreSwapLogData::lastref, Fs::Ufs::UFSSwapLogParser::log, UFSSwapLogParser_v1_32bs::StoreSwapLogDataOld::op, StoreSwapLogData::op, UFSSwapLogParser_v1_32bs::StoreSwapLogDataOld::refcount, StoreSwapLogData::refcount, SQUID_MD5_DIGEST_LENGTH, UFSSwapLogParser_v1_32bs::StoreSwapLogDataOld::swap_file_sz, StoreSwapLogData::swap_file_sz, UFSSwapLogParser_v1_32bs::StoreSwapLogDataOld::swap_filen, StoreSwapLogData::swap_filen, UFSSwapLogParser_v1_32bs::StoreSwapLogDataOld::timestamp, and StoreSwapLogData::timestamp.
◆ SwapLogEntries()
|
inherited |
Definition at line 129 of file UFSSwapLogParser.cc.
Member Data Documentation
◆ log
|
inherited |
Definition at line 22 of file UFSSwapLogParser.h.
Referenced by Fs::Ufs::UFSSwapLogParser::Close(), ReadRecord(), and UFSSwapLogParser_v2::ReadRecord().
◆ log_entries
|
inherited |
Definition at line 23 of file UFSSwapLogParser.h.
◆ record_size
|
inherited |
Definition at line 24 of file UFSSwapLogParser.h.
Referenced by UFSSwapLogParser_v1_32bs(), and UFSSwapLogParser_v2::UFSSwapLogParser_v2().
The documentation for this class was generated from the following file:
- src/fs/ufs/UFSSwapLogParser.cc