#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 |
Detailed Description
Definition at line 24 of file UFSStrategy.h.
Constructor & Destructor Documentation
◆ UFSStrategy() [1/3]
Fs::Ufs::UFSStrategy::UFSStrategy | ( | DiskIOStrategy * | anIO | ) |
Definition at line 30 of file UFSStrategy.cc.
◆ ~UFSStrategy()
|
virtual |
Definition at line 33 of file UFSStrategy.cc.
◆ UFSStrategy() [2/3]
|
private |
◆ UFSStrategy() [3/3]
|
private |
Member Function Documentation
◆ callback()
|
virtual |
Definition at line 141 of file UFSStrategy.cc.
◆ create()
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 assert, DiskFile::create(), Fs::Ufs::UFSStoreState::creating, debugs, DiskFile::error(), RefCount< C >::getRaw(), StoreIOState::mode, StoreIOState::swap_filen, and Fs::Ufs::UFSStoreState::theFile.
◆ createState()
StoreIOState::Pointer Fs::Ufs::UFSStrategy::createState | ( | SwapDir * | SD, |
StoreEntry * | e, | ||
StoreIOState::STIOCB * | callback, | ||
void * | callback_data | ||
) | const |
Definition at line 39 of file UFSStrategy.cc.
◆ init()
|
virtual |
Init per-instance logic
Definition at line 147 of file UFSStrategy.cc.
◆ load()
|
virtual |
Definition at line 25 of file UFSStrategy.cc.
Referenced by Fs::Ufs::UFSSwapDir::canStore().
◆ newFile()
|
virtual |
Definition at line 45 of file UFSStrategy.cc.
◆ open()
StoreIOState::Pointer Fs::Ufs::UFSStrategy::open | ( | SwapDir * | SD, |
StoreEntry * | e, | ||
StoreIOState::STIOCB * | aCallback, | ||
void * | callback_data | ||
) |
Definition at line 57 of file UFSStrategy.cc.
References assert, debugs, DiskFile::error(), RefCount< C >::getRaw(), StoreIOState::mode, DiskFile::open(), Fs::Ufs::UFSStoreState::opening, StoreEntry::swap_filen, and Fs::Ufs::UFSStoreState::theFile.
◆ operator=()
|
private |
◆ shedLoad()
|
virtual |
Definition at line 19 of file UFSStrategy.cc.
References io, and DiskIOStrategy::shedLoad().
Referenced by Fs::Ufs::UFSSwapDir::canStore().
◆ statfs()
|
virtual |
cachemgr output on the IO instance stats
Definition at line 159 of file UFSStrategy.cc.
◆ sync()
|
virtual |
Definition at line 153 of file UFSStrategy.cc.
◆ unlinkFile()
|
virtual |
Definition at line 51 of file UFSStrategy.cc.
Friends And Related Function Documentation
◆ UFSSwapDir
|
friend |
Definition at line 55 of file UFSStrategy.h.
Member Data Documentation
◆ io
DiskIOStrategy* Fs::Ufs::UFSStrategy::io |
The io strategy in use
Definition at line 51 of file UFSStrategy.h.
Referenced by shedLoad(), and TestUfs::testUfsDefaultEngine().
The documentation for this class was generated from the following files:
- src/fs/ufs/UFSStrategy.h
- src/fs/ufs/UFSStrategy.cc