|
Squid Web Cache master
|
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. | |
| int | SwapLogEntries () |
| void | Close () |
Static Public Member Functions | |
| static UFSSwapLogParser * | GetUFSSwapLogParser (FILE *fp) |
Public Attributes | |
| FILE * | log |
| int | log_entries |
| int | record_size |
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.
|
inline |
Definition at line 40 of file UFSSwapLogParser.cc.
References Fs::Ufs::UFSSwapLogParser::record_size.
|
inlineinherited |
Definition at line 34 of file UFSSwapLogParser.h.
References Fs::Ufs::UFSSwapLogParser::log.
|
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().
|
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.
|
inherited |
Definition at line 129 of file UFSSwapLogParser.cc.
References log().
|
inherited |
Definition at line 22 of file UFSSwapLogParser.h.
Referenced by Fs::Ufs::UFSSwapLogParser::Close(), ReadRecord(), and UFSSwapLogParser_v2::ReadRecord().
|
inherited |
Definition at line 23 of file UFSSwapLogParser.h.
|
inherited |
Definition at line 24 of file UFSSwapLogParser.h.
Referenced by UFSSwapLogParser_v1_32bs(), and UFSSwapLogParser_v2::UFSSwapLogParser_v2().