Disks.cc
Go to the documentation of this file.
427 debugs(3, DBG_PARSE_NOTE(DBG_IMPORTANT), "ERROR: This proxy does not support the '" << typeStr << "' cache type. Ignoring.");
457 throw TextException(ToSBuf("Squid cannot handle more than ", cacheDirCountLimit, " cache_dir directives"), Here());
int64_t accumulateMore(const StoreEntry &) const
Definition: Disks.cc:479
HASHCMP storeKeyHashCmp
class Ping::pingStats_ stats
virtual 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 void getStats(StoreInfoStats &stats) const override
collect statistics
Definition: Disks.cc:516
virtual bool updateAnchored(StoreEntry &)
Definition: Controlled.h:45
virtual void evictIfFound(const cache_key *) override
Definition: Disks.cc:603
int64_t availableForSwapOut() const
buffered bytes we have not swapped out yet
Definition: MemObject.cc:485
virtual void create() override
create system resources needed for this store to operate in the future
Definition: Disks.cc:220
int store_open_disk_fd
virtual void maintain() override
perform regular periodic maintenance; TODO: move to UFSSwapDir::Maintain
Definition: Disks.cc:564
static SwapDir * SelectSwapDir(const StoreEntry *)
Definition: Disks.cc:658
virtual void reference(StoreEntry &) override
somebody needs this entry (many cache replacement policies need to know)
Definition: Disks.cc:545
struct Store::Disk::Flags flags
char * store_dir_select_algorithm
Definition: SquidConfig.h:516
struct timeval current_time
the current UNIX time in timeval {seconds, microseconds} format
Definition: gadgets.cc:17
virtual int callback() override
called once every main loop iteration; TODO: Move to UFS code.
Definition: Disks.cc:188
virtual void updateHeaders(StoreEntry *) override
make stored metadata and HTTP headers the same as in the given entry
Definition: Disks.cc:557
time_t getCurrentTime() STUB_RETVAL(0) int tvSubUsec(struct timeval
virtual bool anchorToCache(StoreEntry &e, bool &inSync) override
Definition: Disks.cc:612
static STDIRSELECT storeDirSelectSwapDirRoundRobin
Definition: Disks.cc:29
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:1891
static StoreFileSystem * FindByType(const char *type)
Definition: StoreFileSystem.cc:74
int n_strands
number of disk processes required to support all cache_dirs
Definition: SquidConfig.h:70
int reconfiguring
static void Dump(const DiskConfig &, StoreEntry &, const char *name)
prints the configuration into the provided StoreEntry
Definition: Disks.cc:468
static int64_t objectSizeForDirSelection(const StoreEntry &entry)
Definition: Disks.cc:40
bool hasReadableEntry(const StoreEntry &) const
whether any of disk caches has entry with e.key
Definition: Disks.cc:664
virtual uint64_t currentCount() const override
the total number of objects stored right now
Definition: Disks.cc:361
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:139
Definition: RefCount.h:27
virtual uint64_t minSize() const override
the minimum size the store will shrink to via normal housekeeping
Definition: Disks.cc:335
virtual int64_t maxObjectSize() const override
the maximum size of a storable object; -1 if unlimited
Definition: Disks.cc:374
Definition: Store.h:42
static STDIRSELECT storeDirSelectSwapDirLeastLoad
Definition: Disks.cc:30
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:1882
int store_hash_buckets
Definition: SquidConfig.h:61
virtual bool updateAnchored(StoreEntry &) override
Definition: Disks.cc:638
High-level store statistics used by mgr:info action. Used inside PODs!
Definition: StoreStats.h:14
virtual bool anchorToCache(StoreEntry &, bool &)
Definition: Controlled.h:40
struct SquidConfig::@108 Store
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:57
sfileno swap_filen
unique ID inside a cache_dir for swapped out entries; -1 for others
Definition: Store.h:234