UFSSwapDir.h
bool hasReadableEntry(const StoreEntry &) const override
Definition: UFSSwapDir.h:78
Definition: UFSStrategy.h:24
void optionIODump(StoreEntry *e) const
Definition: UFSSwapDir.cc:244
void replacementRemove(StoreEntry *e)
Definition: UFSSwapDir.cc:1214
Definition: DiskIOModule.h:20
void evictCached(StoreEntry &) override
Definition: UFSSwapDir.cc:1178
bool smpAware() const override
whether this disk storage is capable of serving multiple workers
Definition: UFSSwapDir.h:75
bool pathIsDirectory(const char *path) const
Definition: UFSSwapDir.cc:629
SBuf logFile(char const *ext=nullptr) const
Definition: UFSSwapDir.cc:689
void logEntry(const StoreEntry &e, int op) const override
Definition: UFSSwapDir.cc:1283
static bool FilenoBelongsHere(int fn, int cachedir, int level1dir, int level2dir)
Definition: UFSSwapDir.cc:1115
static int * UFSDirToGlobalDirMapping
Definition: UFSSwapDir.h:127
struct Store::Disk::Flags flags
Definition: HttpRequest.h:48
Definition: ConfigOption.h:57
void create() override
create system resources needed for this store to operate in the future
Definition: UFSSwapDir.cc:300
FILE * openTmpSwapLog(int *clean_flag, int *zero_flag)
Definition: UFSSwapDir.cc:858
int validFileno(sfileno filn, int flag) const
Definition: UFSSwapDir.cc:1145
int callback() override
called once every main loop iteration; TODO: Move to UFS code.
Definition: UFSSwapDir.cc:1256
bool optionIOParse(char const *option, const char *value, int reconfiguring)
Definition: UFSSwapDir.cc:217
bool canStore(const StoreEntry &e, int64_t diskSpaceNeeded, int &load) const override
check whether we can store the entry; if we can, report current load
Definition: UFSSwapDir.cc:115
void finalizeSwapoutSuccess(const StoreEntry &) override
finalize the successful swapout that has been already noticed by Store
Definition: UFSSwapDir.cc:1268
ConfigOption * getOptionTree() const override
Definition: UFSSwapDir.cc:250
int reconfiguring
StoreIOState::Pointer openStoreIO(StoreEntry &, StoreIOState::STIOCB *, void *) override
Definition: UFSSwapDir.cc:552
void evictIfFound(const cache_key *) override
Definition: UFSSwapDir.cc:1200
void maintain() override
perform regular periodic maintenance; TODO: move to UFSSwapDir::Maintain
Definition: UFSSwapDir.cc:414
bool unlinkdUseful() const override
whether SwapDir may benefit from unlinkd
Definition: UFSSwapDir.cc:1171
int createDirectory(const char *path, int)
Definition: UFSSwapDir.cc:604
void reference(StoreEntry &) override
somebody needs this entry (many cache replacement policies need to know)
Definition: UFSSwapDir.cc:524
bool doubleCheck(StoreEntry &) override
Definition: UFSSwapDir.cc:349
void STIOCB(void *their_data, int errflag, StoreIOState::Pointer self)
Definition: StoreIOState.h:39
Definition: Store.h:37
Definition: Module.h:12
UFSSwapDir(char const *aType, const char *aModuleType)
Definition: UFSSwapDir.cc:307
Definition: FileMap.h:23
StoreEntry * addDiskRestore(const cache_key *key, sfileno file_number, uint64_t swap_file_sz, time_t expires, time_t timestamp, time_t lastref, time_t lastmod, uint32_t refcount, uint16_t flags, int clean)
Definition: UFSSwapDir.cc:788
ConfigOptionVector * currentIOOptions
Definition: UFSSwapDir.h:147
Definition: ConfigOption.h:67
Definition: UFSSwapDir.h:30
StoreIOState::Pointer createStoreIO(StoreEntry &, StoreIOState::STIOCB *, void *) override
Definition: UFSSwapDir.cc:546
bool dereference(StoreEntry &) override
Definition: UFSSwapDir.cc:534
uint64_t currentCount() const override
the total number of objects stored right now
Definition: UFSSwapDir.h:73
void finalizeSwapoutFailure(StoreEntry &) override
abort the failed swapout that has been already noticed by Store
Definition: UFSSwapDir.cc:1275
static int HandleCleanEvent()
safely cleans a few unused files if possible
Definition: UFSSwapDir.cc:1039
Introduction
- About Squid
- Why Squid?
- Squid Developers
- How to Donate
- How to Help Out
- Getting Squid
- Squid Source Packages
- Squid Deployment Case-Studies
- Squid Software Foundation
Documentation
- Quick Setup
- Configuration:
- FAQ and Wiki
- Guide Books:
- Non-English
- More...
Support
- Security Advisories
- Bugzilla Database
- Mailing lists
- Contacting us
- Commercial services
- Project Sponsors
- Squid-based products