Disk.h
virtual bool smpAware() const =0
whether this disk storage is capable of serving multiple workers
virtual bool canStore(const StoreEntry &e, int64_t diskSpaceNeeded, int &load) const =0
check whether we can store the entry; if we can, report current load
Definition: Disk.cc:164
virtual void finalizeSwapoutFailure(StoreEntry &)=0
abort the failed swapout that has been already noticed by Store
void reference(StoreEntry &e) override
somebody needs this entry (many cache replacement policies need to know)
Definition: Disk.cc:136
virtual void logEntry(const StoreEntry &e, int op) const
Definition: Disk.cc:227
virtual bool allowOptionReconfigure(const char *const) const
Definition: Disk.h:85
int64_t maxObjectSize() const override
the maximum size of a storable object; -1 if unlimited
Definition: Disk.cc:103
virtual bool hasReadableEntry(const StoreEntry &e) const =0
whether this cache dir has an entry with e.key
int64_t minObjectSize() const
the size of the smallest entry this cache_dir can store
Definition: Disk.cc:96
struct Store::Disk::Flags flags
virtual StoreIOState::Pointer createStoreIO(StoreEntry &, StoreIOState::STIOCB *, void *)=0
Definition: ConfigOption.h:57
virtual void disconnect(StoreEntry &)
called when the entry is about to forget its association with cache_dir
Definition: Disk.h:71
Definition: Disk.h:130
int reconfiguring
Definition: RemovalPolicy.h:38
bool objectSizeIsAcceptable(int64_t objSize) const
Definition: Disk.cc:156
Definition: Disk.h:109
void optionObjectSizeDump(StoreEntry *e) const
Definition: Disk.cc:382
Definition: forward.h:15
virtual void finalizeSwapoutSuccess(const StoreEntry &)=0
finalize the successful swapout that has been already noticed by Store
void maintain() override
perform regular periodic maintenance; TODO: move to UFSSwapDir::Maintain
Definition: Disk.cc:86
virtual void reconfigure()=0
Definition: Controlled.h:18
virtual bool unlinkdUseful() const =0
whether SwapDir may benefit from unlinkd
void STIOCB(void *their_data, int errflag, StoreIOState::Pointer self)
Definition: StoreIOState.h:39
Definition: Store.h:37
virtual void parse(int index, char *path)=0
bool optionObjectSizeParse(char const *option, const char *value, int reconfiguring)
Definition: Disk.cc:347
struct Store::Disk::@125 fs
uint64_t minSize() const override
the minimum size the store will shrink to via normal housekeeping
Definition: Disk.cc:89
virtual void write(StoreEntry const &)=0
Definition: SquidConfig.h:62
virtual StoreIOState::Pointer openStoreIO(StoreEntry &, StoreIOState::STIOCB *, void *)=0
virtual bool doReportStat() const
whether stat should be reported by this SwapDir
Definition: Disk.h:35
virtual const StoreEntry * nextEntry()=0
void create() override
create system resources needed for this store to operate in the future
Definition: Disk.cc:40
High-level store statistics used by mgr:info action. Used inside PODs!
Definition: StoreStats.h:13
bool optionReadOnlyParse(char const *option, const char *value, int reconfiguring)
Definition: Disk.cc:318
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