50 if (fread(&readData, bytes, 1,
log) != 1) {
53 swapData.
op = readData.
op;
92 fseek(fp, 0, SEEK_SET);
103 "index corruption. Forcing a full cache index rebuild. " <<
104 "See Squid bug #3441.");
109 if (!header.
sane()) {
111 " swap file header.");
133 if (log_entries >= 0)
136 if (
log && record_size && 0 == fstat(fileno(
log), &sb)) {
137 log_entries = sb.st_size/record_size;
void log(char *format,...)
static UFSSwapLogParser * GetUFSSwapLogParser(FILE *fp)
UFSSwapLogParser(FILE *fp)
unsigned char key[SQUID_MD5_DIGEST_LENGTH]
bool ReadRecord(StoreSwapLogData &swapData) override
Convert the on-disk 32-bit format to our current format while reading.
UFSSwapLogParser_v1_32bs(FILE *fp)
UFSSwapLogParser_v2(FILE *fp)
bool ReadRecord(StoreSwapLogData &swapData) override
#define debugs(SECTION, LEVEL, CONTENT)
#define SQUID_MD5_DIGEST_LENGTH
unsigned char key[SQUID_MD5_DIGEST_LENGTH]