#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 DEBUG, EPNAME, XrdOssCache_FSData::frsz, fsdata, XrdOssCache_FSData::fsid, XrdOssCache_Group::group, XrdSysMutex::Lock(), Mutex, XrdOssCache_Group::next, XrdOssCache_FSData::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] |
void XrdOssCache::Adjust |
( |
XrdOssCache_FS * |
fsp, |
|
|
off_t |
size |
|
) |
| [static] |
References 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(), Usage, XrdOssCache_Group::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, 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, XrdOssCache_FSData::path, XrdOssCache::allocInfo::Path, XrdOssPath::fnInfo::Path, XrdOssCache_FS::path, XrdOssPath::fnInfo::Plen, XrdOssCache_FS::plen, S_IRWXG, S_IRWXU, 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 |
( |
long long |
aMin, |
|
|
int |
ovhd, |
|
|
int |
aFuzz |
|
) |
| [static] |
int XrdOssCache::Init |
( |
const char * |
UDir, |
|
|
const char * |
Qfile, |
|
|
int |
isSOL |
|
) |
| [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, fsSize, fsTotFr, XrdOssCache_Group::GRPid, XrdSysMutex::Lock(), Mutex, XrdOssCache_Group::next, XrdOssCache_FSData::next, XrdOssCache_FSData::path, Quotas, XrdOssSpace::Readjust(), XrdOssCache_FSData::size, XrdOssCache_FSData::stat, XrdSysMutex::UnLock(), XrdOssCache_Group::Usage, Usage, XrdOssFSData_ADJUSTED, and XrdOssFSData_REFRESH.
Referenced by XrdOssSys::StatVS(), and XrdOssCacheScan().
Member Data Documentation
The documentation for this class was generated from the following files: