#include <XrdOssCache.hh>
List of all members.
Classes |
| struct | allocInfo |
Public Member Functions |
| | XrdOssCache () |
| | ~XrdOssCache () |
Static Public Member Functions |
| static void | Adjust (dev_t devid, off_t size) |
| static void | Adjust (const char *Path, off_t size, struct stat *buf=0) |
| static void | Adjust (XrdOssCache_FS *fsp, off_t size) |
| static int | Alloc (allocInfo &aInfo) |
| static XrdOssCache_FS * | Find (const char *Path, int lklen=0) |
| static int | Init (const char *UDir, const char *Qfile, int isSOL) |
| static int | Init (long long aMin, int ovhd, int aFuzz) |
| static void | List (const char *lname, XrdSysError &Eroute) |
| static char * | Parse (const char *token, char *cbuff, int cblen) |
| static void * | Scan (int cscanint) |
Static Public Attributes |
| static XrdSysMutex | Mutex |
| static long long | fsTotal = 0 |
| static long long | fsLarge = 0 |
| static long long | fsTotFr = 0 |
| static long long | fsFree = 0 |
| static long long | fsSize = 0 |
| static XrdOssCache_FS * | fsfirst = 0 |
| static XrdOssCache_FS * | fslast = 0 |
| static XrdOssCache_FSData * | fsdata = 0 |
| static int | fsCount = 0 |
Static Private Attributes |
| static long long | minAlloc = 0 |
| static double | fuzAlloc = 0.0 |
| static int | ovhAlloc = 0 |
| static int | Quotas = 0 |
| static int | Usage = 0 |
Constructor & Destructor Documentation
| XrdOssCache::XrdOssCache |
( |
| ) |
[inline] |
| XrdOssCache::~XrdOssCache |
( |
| ) |
[inline] |
Member Function Documentation
| void XrdOssCache::Adjust |
( |
dev_t |
devid, |
|
|
off_t |
size |
|
) |
| [static] |
References EPNAME, fsdata, XrdOssCache_FSData::fsid, XrdOssCache_FSData::next, DEBUG, XrdOssCache_Group::group, XrdOssCache_Group::next, XrdOssCache_FSData::frsz, XrdOssCache_FSData::path, Mutex, XrdSysMutex::Lock(), XrdOssCache_FSData::stat, XrdOssFSData_ADJUSTED, XrdOssCache_Group::Usage, and XrdSysMutex::UnLock().
Referenced by XrdOssSys::Truncate(), XrdOssFile::Close(), Adjust(), XrdOssSys::Create(), XrdOssSys::Reloc(), XrdOssSys::RenameLink(), XrdOssSys::Unlink(), and XrdOssSys::BreakLink().
| void XrdOssCache::Adjust |
( |
const char * |
Path, |
|
|
off_t |
size, |
|
|
struct stat * |
buf = 0 |
|
) |
| [static] |
| void XrdOssCache::Adjust |
( |
XrdOssCache_FS * |
fsp, |
|
|
off_t |
size |
|
) |
| [static] |
References EPNAME, XrdOssCache_FS::fsdata, DEBUG, XrdOssCache_FS::fsgroup, XrdOssCache_Group::Usage, XrdOssCache_FS::path, XrdOssCache_FSData::frsz, XrdOssCache_FSData::path, Mutex, XrdSysMutex::Lock(), XrdOssCache_FSData::stat, XrdOssFSData_ADJUSTED, Usage, Adjust(), XrdOssCache_Group::GRPid, and XrdSysMutex::UnLock().
References EPNAME, S_IRWXU, S_IRWXG, Mutex, Info, XrdOssCache::allocInfo::cgSize, ovhAlloc, minAlloc, XrdOssCache::allocInfo::cgName, XrdOssCache_Group::group, XrdOssCache_Group::next, XrdOssCache_Group::curr, XrdOssCache_FS::next, XrdOssCache_FS::group, XrdOssCache::allocInfo::cgPath, XrdOssCache::allocInfo::cgPlen, XrdOssCache_FS::plen, XrdOssCache_FS::path, XrdOssCache_FS::fsdata, XrdOssCache_FSData::frsz, fuzAlloc, XRDABS, XrdOssPath::fnInfo::Path, XrdOssPath::fnInfo::Plen, XrdOssPath::fnInfo::Sfx, XrdOssCache_FS::suffix, XrdOssCache::allocInfo::cgPsfx, XrdOssPath::genPFN(), XrdOssCache::allocInfo::cgPFbf, XrdOssCache::allocInfo::cgPFsz, XrdOssCache_FS::opts, XrdOssCache_FS::isXA, XrdOssCache::allocInfo::Path, XrdOssCache::allocInfo::aMode, open(), XrdOssPath::fnInfo::Slash, mkdir(), DEBUG, XrdOssCache_FSData::path, XrdOssCache_FSData::stat, XrdOssFSData_REFRESH, and XrdOssCache::allocInfo::cgFSp.
Referenced by XrdOssSys::Alloc_Cache(), and XrdOssSys::Reloc().
| XrdOssCache_FS * XrdOssCache::Find |
( |
const char * |
Path, |
|
|
int |
lklen = 0 |
|
) |
| [static] |
| int XrdOssCache::Init |
( |
const char * |
UDir, |
|
|
const char * |
Qfile, |
|
|
int |
isSOL |
|
) |
| [static] |
| int XrdOssCache::Init |
( |
long long |
aMin, |
|
|
int |
ovhd, |
|
|
int |
aFuzz |
|
) |
| [static] |
| void XrdOssCache::List |
( |
const char * |
lname, |
|
|
XrdSysError & |
Eroute |
|
) |
| [static] |
| char * XrdOssCache::Parse |
( |
const char * |
token, |
|
|
char * |
cbuff, |
|
|
int |
cblen |
|
) |
| [static] |
| void * XrdOssCache::Scan |
( |
int |
cscanint | ) |
[static] |
References EPNAME, Mutex, XrdSysMutex::Lock(), fsSize, fsTotFr, fsFree, fsdata, XrdOssCache_FSData::stat, XrdOssFSData_REFRESH, XrdOssFSData_ADJUSTED, XrdOssCache_FS::freeSpace(), XrdOssCache_FSData::path, XrdSysError::Emsg(), XrdOssCache_FSData::frsz, DEBUG, XrdOssCache_FSData::size, XrdOssCache_FSData::next, XrdSysMutex::UnLock(), Quotas, Usage, XrdOssSpace::Readjust(), XrdOssCache_Group::Usage, XrdOssCache_Group::GRPid, and XrdOssCache_Group::next.
Referenced by XrdOssCacheScan(), and XrdOssSys::StatVS().
Member Data Documentation
The documentation for this class was generated from the following files: