#include <StoreFSufs.h>

Inheritance diagram for Fs::Ufs::StoreFSufs< TheSwapDir >:
Collaboration diagram for Fs::Ufs::StoreFSufs< TheSwapDir >:

Public Types

typedef std::vector< StoreFileSystem * >::iterator iterator
 
typedef std::vector< StoreFileSystem * >::const_iterator const_iterator
 

Public Member Functions

 StoreFSufs (char const *DefaultModuleType, char const *label)
 
virtual ~StoreFSufs ()
 
virtual char const * type () const
 
virtual SwapDircreateSwapDir ()
 
virtual void done ()
 
virtual void setup ()
 
 StoreFSufs (StoreFSufs const &)
 
StoreFSufsoperator= (StoreFSufs const &)
 

Static Public Member Functions

static StoreFileSystemGetInstance ()
 
static void SetupAllFs ()
 
static void FsAdd (StoreFileSystem &)
 
static void FreeAllFs ()
 
static std::vector< StoreFileSystem * > const & FileSystems ()
 

Protected Member Functions

virtual void registerWithCacheManager (void)
 

Protected Attributes

DiskIOModuleIO
 
char const * moduleName
 
char const * label
 
bool initialised
 

Detailed Description

template<class TheSwapDir>
class Fs::Ufs::StoreFSufs< TheSwapDir >

,

Core UFS class. This template provides compile time aliases for ufs/aufs/diskd to ease configuration conversion - each becomes a StoreFS module whose createSwapDir method parameterises the common UFSSwapDir with an IO module instance.

Definition at line 34 of file StoreFSufs.h.

Member Typedef Documentation

◆ const_iterator

◆ iterator

Definition at line 97 of file StoreFileSystem.h.

Constructor & Destructor Documentation

◆ StoreFSufs() [1/2]

template<class C >
Fs::Ufs::StoreFSufs< C >::StoreFSufs ( char const *  DefaultModuleType,
char const *  label 
)

Definition at line 56 of file StoreFSufs.h.

References StoreFileSystem::FsAdd().

Referenced by Fs::Ufs::StoreFSufs< TheSwapDir >::~StoreFSufs().

◆ ~StoreFSufs()

◆ StoreFSufs() [2/2]

template<class TheSwapDir>
Fs::Ufs::StoreFSufs< TheSwapDir >::StoreFSufs ( StoreFSufs< TheSwapDir > const &  )

Not implemented

Member Function Documentation

◆ createSwapDir()

template<class C >
SwapDir * Fs::Ufs::StoreFSufs< C >::createSwapDir ( )
virtual

◆ done()

template<class C >
void Fs::Ufs::StoreFSufs< C >::done ( void  )
virtual

Implements StoreFileSystem.

Definition at line 78 of file StoreFSufs.h.

References StoreFileSystem::initialised.

Referenced by Fs::Ufs::StoreFSufs< TheSwapDir >::~StoreFSufs().

◆ FileSystems()

std::vector< StoreFileSystem * > const & StoreFileSystem::FileSystems ( )
staticinherited

Definition at line 45 of file StoreFileSystem.cc.

References StoreFileSystem::GetFileSystems().

Referenced by find_fstype(), and parse_cachedir().

◆ FreeAllFs()

void StoreFileSystem::FreeAllFs ( )
staticinherited

Definition at line 64 of file StoreFileSystem.cc.

References StoreFileSystem::done(), and StoreFileSystem::GetFileSystems().

Referenced by SquidShutdown().

◆ FsAdd()

void StoreFileSystem::FsAdd ( StoreFileSystem instance)
staticinherited

◆ GetInstance()

template<class TheSwapDir>
static StoreFileSystem& Fs::Ufs::StoreFSufs< TheSwapDir >::GetInstance ( )
static

◆ operator=()

template<class TheSwapDir>
StoreFSufs& Fs::Ufs::StoreFSufs< TheSwapDir >::operator= ( StoreFSufs< TheSwapDir > const &  )

◆ registerWithCacheManager()

void StoreFileSystem::registerWithCacheManager ( void  )
protectedvirtualinherited

Reimplemented in Rock::StoreFileSystem.

Definition at line 75 of file StoreFileSystem.cc.

◆ setup()

template<class C >
void Fs::Ufs::StoreFSufs< C >::setup ( )
virtual

Implements StoreFileSystem.

Definition at line 85 of file StoreFSufs.h.

References assert, and StoreFileSystem::initialised.

Referenced by Fs::Ufs::StoreFSufs< TheSwapDir >::~StoreFSufs().

◆ SetupAllFs()

void StoreFileSystem::SetupAllFs ( )
staticinherited

Definition at line 24 of file StoreFileSystem.cc.

References StoreFileSystem::GetFileSystems(), and i.

Referenced by testRock::commonInit(), and SquidMain().

◆ type()

template<class C >
char const * Fs::Ufs::StoreFSufs< C >::type ( ) const
virtual

Member Data Documentation

◆ initialised

bool StoreFileSystem::initialised
protectedinherited

◆ IO

template<class TheSwapDir>
DiskIOModule* Fs::Ufs::StoreFSufs< TheSwapDir >::IO
protected

Definition at line 50 of file StoreFSufs.h.

◆ label

template<class TheSwapDir>
char const* Fs::Ufs::StoreFSufs< TheSwapDir >::label
protected

Definition at line 52 of file StoreFSufs.h.

Referenced by Fs::Ufs::StoreFSufs< TheSwapDir >::type().

◆ moduleName

template<class TheSwapDir>
char const* Fs::Ufs::StoreFSufs< TheSwapDir >::moduleName
protected

Definition at line 51 of file StoreFSufs.h.

Referenced by Fs::Ufs::StoreFSufs< TheSwapDir >::createSwapDir().


The documentation for this class was generated from the following file:

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors