|
xrootd
|
#include <XrdOssCache.hh>

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 |
| XrdOssCache::XrdOssCache | ( | ) | [inline] |
| XrdOssCache::~XrdOssCache | ( | ) | [inline] |
| 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_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 Adjust(), DEBUG, EPNAME, fsfirst, XrdOssCache_FS::next, XrdOssCache_FS::path, and XrdOssPath::Trim2Base().
| 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(), XrdOssCache_Group::Usage, Usage, and XrdOssFSData_ADJUSTED.
| int XrdOssCache::Alloc | ( | XrdOssCache::allocInfo & | aInfo | ) | [static] |
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, XrdOssPath::fnInfo::Path, XrdOssCache_FSData::path, XrdOssCache_FS::path, XrdOssCache::allocInfo::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] |
References fsfirst, lstat(), XrdOssCache_FS::next, XrdOssCache_FS::path, stat(), strlcpy(), and XrdOssPath::Trim2Base().
Referenced by XrdOssFile::Open(), and XrdOssSys::Reloc().
| 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] |
References fsfirst, XrdOssCache_FS::group, XrdOssCache_FS::isXA, XrdOssCache_FS::next, XrdOssCache_FS::opts, XrdOssCache_FS::path, XrdOssCache_FS::plen, XrdSysError::Say(), and snprintf.
Referenced by XrdOssSys::Config_Display().
| char * XrdOssCache::Parse | ( | const char * | token, |
| char * | cbuff, | ||
| int | cblen | ||
| ) | [static] |
References index(), OSS_CGROUP_DEFAULT, Path, and strlcpy().
Referenced by XrdOssSys::Alloc_Cache(), and XrdOssSys::Reloc().
| 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_FSData::next, XrdOssCache_Group::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().
int XrdOssCache::fsCount = 0 [static] |
Referenced by XrdOssSys::StatVS(), and XrdOssCache_FSData::XrdOssCache_FSData().
XrdOssCache_FSData * XrdOssCache::fsdata = 0 [static] |
XrdOssCache_FS * XrdOssCache::fsfirst = 0 [static] |
Referenced by Adjust(), XrdOssSys::Create(), Find(), and List().
long long XrdOssCache::fsFree = 0 [static] |
Referenced by XrdOssCache_FS::freeSpace(), Scan(), XrdOssSys::StatVS(), and XrdOssCache_FSData::XrdOssCache_FSData().
long long XrdOssCache::fsLarge = 0 [static] |
Referenced by XrdOssSys::StatVS(), and XrdOssCache_FSData::XrdOssCache_FSData().
XrdOssCache_FS * XrdOssCache::fslast = 0 [static] |
long long XrdOssCache::fsSize = 0 [static] |
Referenced by XrdOssCache_FS::freeSpace(), and Scan().
long long XrdOssCache::fsTotal = 0 [static] |
Referenced by XrdOssSys::StatVS(), and XrdOssCache_FSData::XrdOssCache_FSData().
long long XrdOssCache::fsTotFr = 0 [static] |
Referenced by Scan(), XrdOssSys::StatVS(), and XrdOssCache_FSData::XrdOssCache_FSData().
double XrdOssCache::fuzAlloc = 0.0 [static, private] |
long long XrdOssCache::minAlloc = 0 [static, private] |
XrdSysMutex XrdOssCache::Mutex [static] |
Referenced by Adjust(), Alloc(), Scan(), and XrdOssSys::StatVS().
int XrdOssCache::ovhAlloc = 0 [static, private] |
int XrdOssCache::Quotas = 0 [static, private] |
int XrdOssCache::Usage = 0 [static, private] |
1.8.0