Disks.cc
Go to the documentation of this file.
428 debugs(3, DBG_PARSE_NOTE(DBG_IMPORTANT), "ERROR: This proxy does not support the '" << typeStr << "' cache type. Ignoring.");
458 throw TextException(ToSBuf("Squid cannot handle more than ", cacheDirCountLimit, " cache_dir directives"), Here());
int64_t accumulateMore(const StoreEntry &) const
Definition: Disks.cc:480
HASHCMP storeKeyHashCmp
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 updateAnchored(StoreEntry &)
Definition: Controlled.h:44
int64_t availableForSwapOut() const
buffered bytes we have not swapped out yet
Definition: MemObject.cc:489
void create() override
create system resources needed for this store to operate in the future
Definition: Disks.cc:221
int store_open_disk_fd
void maintain() override
perform regular periodic maintenance; TODO: move to UFSSwapDir::Maintain
Definition: Disks.cc:565
static SwapDir * SelectSwapDir(const StoreEntry *)
Definition: Disks.cc:662
void reference(StoreEntry &) override
somebody needs this entry (many cache replacement policies need to know)
Definition: Disks.cc:546
struct Store::Disk::Flags flags
char * store_dir_select_algorithm
Definition: SquidConfig.h:500
struct timeval current_time
the current UNIX time in timeval {seconds, microseconds} format
Definition: gadgets.cc:18
int callback() override
called once every main loop iteration; TODO: Move to UFS code.
Definition: Disks.cc:189
void updateHeaders(StoreEntry *) override
make stored metadata and HTTP headers the same as in the given entry
Definition: Disks.cc:558
time_t getCurrentTime() STUB_RETVAL(0) int tvSubUsec(struct timeval
static STDIRSELECT storeDirSelectSwapDirRoundRobin
Definition: Disks.cc:30
virtual void updateHeaders(StoreEntry *)
make stored metadata and HTTP headers the same as in the given entry
Definition: Controlled.h:35
bool hasDisk(const sdirno dirn=-1, const sfileno filen=-1) const
Definition: store.cc:1929
static StoreFileSystem * FindByType(const char *type)
Definition: StoreFileSystem.cc:45
int n_strands
number of disk processes required to support all cache_dirs
Definition: SquidConfig.h:72
AsHex< Integer > asHex(const Integer n)
a helper to ease AsHex object creation
Definition: IoManip.h:169
int reconfiguring
struct SquidConfig::@95 Store
static void Dump(const DiskConfig &, StoreEntry &, const char *name)
prints the configuration into the provided StoreEntry
Definition: Disks.cc:469
static int64_t objectSizeForDirSelection(const StoreEntry &entry)
Definition: Disks.cc:41
bool hasReadableEntry(const StoreEntry &) const
whether any of disk caches has entry with e.key
Definition: Disks.cc:668
uint64_t currentCount() const override
the total number of objects stored right now
Definition: Disks.cc:362
const char * swap_log_op_str[]
hash_table * store_table
static int store_dirs_rebuilding
the number of cache_dirs being rebuilt; TODO: move to Disks::Rebuilding
Definition: Controller.h:133
Definition: forward.h:15
uint64_t minSize() const override
the minimum size the store will shrink to via normal housekeeping
Definition: Disks.cc:336
int64_t maxObjectSize() const override
the maximum size of a storable object; -1 if unlimited
Definition: Disks.cc:375
Definition: Store.h:37
static STDIRSELECT storeDirSelectSwapDirLeastLoad
Definition: Disks.cc:31
HASHHASH storeKeyHashHash
SBuf ToSBuf(Args &&... args)
slowly stream-prints all arguments into a freshly allocated SBuf
Definition: Stream.h:63
Store::Disk & disk() const
the disk this entry is [being] cached on; asserts for entries w/o a disk
Definition: store.cc:1920
int store_hash_buckets
Definition: SquidConfig.h:63
High-level store statistics used by mgr:info action. Used inside PODs!
Definition: StoreStats.h:13
virtual void evictCached(StoreEntry &e)=0
static SwapDir & SwapDirByIndex(const int i)
TODO: Remove when cache_dir-iterating functions are converted to Disks methods.
Definition: Disks.cc:58
sfileno swap_filen
unique ID inside a cache_dir for swapped out entries; -1 for others
Definition: Store.h:235
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