#include <XrdOssCache.hh>
|
| 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) |
| |
| XrdOssCache::XrdOssCache |
( |
| ) |
|
|
inline |
| XrdOssCache::~XrdOssCache |
( |
| ) |
|
|
inline |
| void XrdOssCache::Adjust |
( |
dev_t |
devid, |
|
|
off_t |
size |
|
) |
| |
|
static |
References DEBUG, EPNAME, XrdOssCache_FSData::frsz, fsdata, XrdOssCache_Group::fsgroups, XrdOssCache_FSData::fsid, XrdOssCache_Group::group, XrdSysMutex::Lock(), Mutex, XrdOssCache_FSData::next, XrdOssCache_Group::next, XrdOssCache_FSData::path, XrdOssCache_FSData::stat, XrdSysMutex::UnLock(), XrdOssCache_Group::Usage, and XrdOssFSData_ADJUSTED.
Referenced by Adjust(), XrdOssSys::BreakLink(), XrdOssFile::Close(), XrdOssSys::Create(), XrdOssSys::Reloc(), XrdOssSys::RenameLink(), XrdOssSys::Truncate(), and XrdOssSys::Unlink().
| void XrdOssCache::Adjust |
( |
const char * |
Path, |
|
|
off_t |
size, |
|
|
struct stat * |
buf = 0 |
|
) |
| |
|
static |
References XrdOssSpace::Adjust(), DEBUG, EPNAME, XrdOssCache_FSData::frsz, XrdOssCache_FS::fsdata, XrdOssCache_FS::fsgroup, XrdOssCache_Group::GRPid, XrdSysMutex::Lock(), Mutex, XrdOssCache_FSData::path, XrdOssCache_FS::path, XrdOssCache_FSData::stat, XrdSysMutex::UnLock(), XrdOssCache_Group::Usage, Usage, and XrdOssFSData_ADJUSTED.
References XrdOssCache::allocInfo::aMode, XrdOssCache::allocInfo::cgFSp, XrdOssCache::allocInfo::cgName, XrdOssCache::allocInfo::cgPath, XrdOssCache::allocInfo::cgPFbf, XrdOssCache::allocInfo::cgPFsz, XrdOssCache::allocInfo::cgPlen, XrdOssCache::allocInfo::cgPsfx, XrdOssCache::allocInfo::cgSize, XrdOssCache_Group::curr, DEBUG, EPNAME, XrdOssCache_FSData::frsz, XrdOssCache_FS::fsdata, XrdOssCache_Group::fsgroups, fuzAlloc, XrdOssPath::genPFN(), XrdOssCache_FS::group, XrdOssCache_Group::group, Info, XrdOssCache_FS::isXA, minAlloc, mkdir(), Mutex, XrdOssCache_FS::next, XrdOssCache_Group::next, open(), XrdOssCache_FS::opts, ovhAlloc, XrdOssPath::fnInfo::Path, XrdOssCache_FSData::path, XrdOssCache_FS::path, XrdOssCache::allocInfo::Path, XrdOssPath::fnInfo::Plen, XrdOssCache_FS::plen, XrdOssPath::fnInfo::Sfx, XrdOssPath::fnInfo::Slash, XrdOssCache_FSData::stat, XrdOssCache_FS::suffix, XRDABS, and XrdOssFSData_REFRESH.
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 DEBUG, XrdSysError::Emsg(), EPNAME, XrdOssCache_FS::freeSpace(), XrdOssCache_FSData::frsz, fsdata, fsFree, XrdOssCache_Group::fsgroups, fsSize, fsTotFr, XrdOssCache_Group::GRPid, XrdSysMutex::Lock(), Mutex, XrdOssCache_FSData::next, XrdOssCache_Group::next, XrdOssCache_FSData::path, XrdOssSpace::Quotas(), Quotas, XrdOssSpace::Readjust(), XrdOssCache_FSData::size, XrdOssCache_FSData::stat, XrdSysMutex::UnLock(), XrdOssSpace::Usage(), XrdOssCache_Group::Usage, Usage, XrdOssFSData_ADJUSTED, and XrdOssFSData_REFRESH.
Referenced by XrdOssSys::StatVS(), and XrdOssCacheScan().
| int XrdOssCache::fsCount = 0 |
|
static |
| long long XrdOssCache::fsFree = 0 |
|
static |
| long long XrdOssCache::fsLarge = 0 |
|
static |
| long long XrdOssCache::fsSize = 0 |
|
static |
| long long XrdOssCache::fsTotal = 0 |
|
static |
| long long XrdOssCache::fsTotFr = 0 |
|
static |
| double XrdOssCache::fuzAlloc = 0.0 |
|
staticprivate |
| long long XrdOssCache::minAlloc = 0 |
|
staticprivate |
| int XrdOssCache::ovhAlloc = 0 |
|
staticprivate |
| int XrdOssCache::Quotas = 0 |
|
staticprivate |
| int XrdOssCache::Usage = 0 |
|
staticprivate |
The documentation for this class was generated from the following files: