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());
static SwapDir & SwapDirByIndex(const int i)
TODO: Remove when cache_dir-iterating functions are converted to Disks methods.
Definition: Disks.cc:57
static int64_t objectSizeForDirSelection(const StoreEntry &entry)
Definition: Disks.cc:40
static STDIRSELECT storeDirSelectSwapDirRoundRobin
Definition: Disks.cc:29
static STDIRSELECT storeDirSelectSwapDirLeastLoad
Definition: Disks.cc:30
int64_t availableForSwapOut() const
buffered bytes we have not swapped out yet
Definition: MemObject.cc:489
Definition: RefCount.h:28
struct SquidConfig::@104 Store
char * store_dir_select_algorithm
Definition: SquidConfig.h:500
Definition: Store.h:42
bool hasDisk(const sdirno dirn=-1, const sfileno filen=-1) const
Definition: store.cc:1915
Store::Disk & disk() const
the disk this entry is [being] cached on; asserts for entries w/o a disk
Definition: store.cc:1906
sfileno swap_filen
unique ID inside a cache_dir for swapped out entries; -1 for others
Definition: Store.h:236
static StoreFileSystem * FindByType(const char *type)
Definition: StoreFileSystem.cc:45
High-level store statistics used by mgr:info action. Used inside PODs!
Definition: StoreStats.h:14
virtual void updateHeaders(StoreEntry *)
make stored metadata and HTTP headers the same as in the given entry
Definition: Controlled.h:35
virtual bool updateAnchored(StoreEntry &)
Definition: Controlled.h:44
static int store_dirs_rebuilding
the number of cache_dirs being rebuilt; TODO: move to Disks::Rebuilding
Definition: Controller.h:134
Definition: SquidConfig.h:63
int n_strands
number of disk processes required to support all cache_dirs
Definition: SquidConfig.h:72
struct Store::Disk::Flags flags
virtual void logEntry(const StoreEntry &e, int op) const
Definition: Disk.cc:227
void reference(StoreEntry &e) override
somebody needs this entry (many cache replacement policies need to know)
Definition: Disk.cc:136
void reference(StoreEntry &) override
somebody needs this entry (many cache replacement policies need to know)
Definition: Disks.cc:545
void create() override
create system resources needed for this store to operate in the future
Definition: Disks.cc:220
int64_t maxObjectSize() const override
the maximum size of a storable object; -1 if unlimited
Definition: Disks.cc:374
static void Dump(const DiskConfig &, StoreEntry &, const char *name)
prints the configuration into the provided StoreEntry
Definition: Disks.cc:468
uint64_t currentCount() const override
the total number of objects stored right now
Definition: Disks.cc:361
bool hasReadableEntry(const StoreEntry &) const
whether any of disk caches has entry with e.key
Definition: Disks.cc:667
uint64_t minSize() const override
the minimum size the store will shrink to via normal housekeeping
Definition: Disks.cc:335
void maintain() override
perform regular periodic maintenance; TODO: move to UFSSwapDir::Maintain
Definition: Disks.cc:564
int64_t accumulateMore(const StoreEntry &) const
Definition: Disks.cc:479
void updateHeaders(StoreEntry *) override
make stored metadata and HTTP headers the same as in the given entry
Definition: Disks.cc:557
static SwapDir * SelectSwapDir(const StoreEntry *)
Definition: Disks.cc:661
int callback() override
called once every main loop iteration; TODO: Move to UFS code.
Definition: Disks.cc:188
virtual void evictCached(StoreEntry &e)=0
hash_table * store_table
int store_hash_buckets
int store_open_disk_fd
int reconfiguring
class Ping::pingStats_ stats
SBuf ToSBuf(Args &&... args)
slowly stream-prints all arguments into a freshly allocated SBuf
Definition: Stream.h:63
HASHHASH storeKeyHashHash
HASHCMP storeKeyHashCmp
time_t getCurrentTime() STUB_RETVAL(0) int tvSubUsec(struct timeval
const char * swap_log_op_str[]
struct timeval current_time
the current UNIX time in timeval {seconds, microseconds} format
Definition: gadgets.cc:17