|
Squid Web Cache v8/master
|
#include <UFSStrategy.h>
Public Member Functions | |
| UFSStrategy (DiskIOStrategy *) | |
| virtual | ~UFSStrategy () |
| virtual bool | shedLoad () |
| virtual int | load () |
| StoreIOState::Pointer | createState (SwapDir *SD, StoreEntry *e, StoreIOState::STIOCB *callback, void *callback_data) const |
| virtual RefCount< DiskFile > | newFile (char const *path) |
| StoreIOState::Pointer | open (SwapDir *, StoreEntry *, StoreIOState::STIOCB *, void *) |
| StoreIOState::Pointer | create (SwapDir *, StoreEntry *, StoreIOState::STIOCB *, void *) |
| virtual void | unlinkFile (char const *) |
| virtual void | sync () |
| virtual int | callback () |
| virtual void | init () |
| virtual void | statfs (StoreEntry &sentry) const |
Public Attributes | |
| DiskIOStrategy * | io |
Private Member Functions | |
| UFSStrategy () | |
| UFSStrategy (UFSStrategy const &) | |
| UFSStrategy & | operator= (UFSStrategy const &) |
Friends | |
| class | UFSSwapDir |
Definition at line 24 of file UFSStrategy.h.
| Fs::Ufs::UFSStrategy::UFSStrategy | ( | DiskIOStrategy * | anIO | ) |
Definition at line 31 of file UFSStrategy.cc.
|
virtual |
Definition at line 34 of file UFSStrategy.cc.
|
private |
|
private |
|
virtual |
Definition at line 140 of file UFSStrategy.cc.
References StoreIOState::callback.
| StoreIOState::Pointer Fs::Ufs::UFSStrategy::create | ( | SwapDir * | SD, |
| StoreEntry * | e, | ||
| StoreIOState::STIOCB * | aCallback, | ||
| void * | callback_data | ||
| ) |
Definition at line 93 of file UFSStrategy.cc.
References asHex(), assert, DiskFile::create(), Fs::Ufs::UFSStoreState::creating, debugs, DiskFile::error(), RefCount< C >::getRaw(), StoreIOState::mode, StoreIOState::swap_filen, and Fs::Ufs::UFSStoreState::theFile.
| StoreIOState::Pointer Fs::Ufs::UFSStrategy::createState | ( | SwapDir * | SD, |
| StoreEntry * | e, | ||
| StoreIOState::STIOCB * | callback, | ||
| void * | callback_data | ||
| ) | const |
Definition at line 40 of file UFSStrategy.cc.
|
virtual |
Init per-instance logic
Definition at line 146 of file UFSStrategy.cc.
|
virtual |
Definition at line 26 of file UFSStrategy.cc.
Referenced by Fs::Ufs::UFSSwapDir::canStore().
|
virtual |
Definition at line 46 of file UFSStrategy.cc.
| StoreIOState::Pointer Fs::Ufs::UFSStrategy::open | ( | SwapDir * | SD, |
| StoreEntry * | e, | ||
| StoreIOState::STIOCB * | aCallback, | ||
| void * | callback_data | ||
| ) |
Definition at line 58 of file UFSStrategy.cc.
References asHex(), assert, debugs, DiskFile::error(), RefCount< C >::getRaw(), StoreIOState::mode, DiskFile::open(), Fs::Ufs::UFSStoreState::opening, StoreEntry::swap_filen, and Fs::Ufs::UFSStoreState::theFile.
|
private |
|
virtual |
Definition at line 20 of file UFSStrategy.cc.
References io, and DiskIOStrategy::shedLoad().
Referenced by Fs::Ufs::UFSSwapDir::canStore().
|
virtual |
cachemgr output on the IO instance stats
Definition at line 158 of file UFSStrategy.cc.
|
virtual |
Definition at line 152 of file UFSStrategy.cc.
|
virtual |
Definition at line 52 of file UFSStrategy.cc.
|
friend |
Definition at line 55 of file UFSStrategy.h.
| DiskIOStrategy* Fs::Ufs::UFSStrategy::io |
The io strategy in use
Definition at line 51 of file UFSStrategy.h.
Referenced by shedLoad(), and TestUfs::testUfsDefaultEngine().