![]() |
XRootD
|
#include <XrdOssCache.hh>
Classes | |
struct | allocInfo |
Public Member Functions | |
XrdOssCache () | |
~XrdOssCache () | |
Static Public Member Functions | |
static void | Adjust (const char *Path, off_t size, struct stat *buf=0) |
static void | Adjust (dev_t devid, off_t size) |
static void | Adjust (XrdOssCache_FS *fsp, off_t size) |
static int | Alloc (allocInfo &aInfo) |
static void | DevInfo (struct stat &buf, bool limits=false) |
static XrdOssCache_FS * | Find (const char *Path, int lklen=0) |
static int | Init (const char *UDir, const char *Qfile, int isSOL, int usync=0) |
static int | Init (long long aMin, int ovhd, int aFuzz) |
static void | List (const char *lname, XrdSysError &Eroute) |
static void | MapDevs (bool dBug=false) |
static char * | Parse (const char *token, char *cbuff, int cblen) |
static void * | Scan (int cscanint) |
Static Public Attributes | |
static int | fsCount = 0 |
static XrdOssCache_FSData * | fsdata = 0 |
static XrdOssCache_FS * | fsfirst = 0 |
static long long | fsFree = 0 |
static long long | fsLarge = 0 |
static XrdOssCache_FS * | fslast = 0 |
static long long | fsSize = 0 |
static long long | fsTotal = 0 |
static long long | fsTotFr = 0 |
static XrdSysMutex | Mutex |
Definition at line 212 of file XrdOssCache.hh.
|
inline |
Definition at line 259 of file XrdOssCache.hh.
|
inline |
Definition at line 260 of file XrdOssCache.hh.
|
static |
Definition at line 435 of file XrdOssCache.cc.
References DEBUG, EPNAME, XrdOssCache_FS::next, XrdOssCache_FS::path, Path, and XrdOssPath::Trim2Base().
|
static |
Definition at line 397 of file XrdOssCache.cc.
References XrdOssSpace::Adjust(), DEBUG, EPNAME, XrdOssCache_FSData::frsz, fsdata, XrdOssCache_FSData::fsid, XrdOssCache_FSData::next, XrdOssCache_FSData::path, XrdOssCache_Group::PubGroup, XrdOssCache_FSData::stat, Usage(), XrdOssCache_Group::Usage, and XrdOssFSData_ADJUSTED.
Referenced by XrdOssSys::BreakLink(), XrdOssFile::Close(), XrdOssSys::Create(), XrdOssSys::Reloc(), XrdOssSys::RenameLink(), XrdOssSys::Truncate(), XrdOssSys::Unlink(), and XrdOssAt::Unlink().
|
static |
Definition at line 468 of file XrdOssCache.cc.
References XrdOssSpace::Adjust(), DEBUG, EPNAME, XrdOssCache_FSData::frsz, XrdOssCache_FS::fsdata, XrdOssCache_FS::fsgroup, XrdOssCache_Group::GRPid, XrdOssCache_FSData::path, XrdOssCache_FS::path, XrdOssCache_FSData::stat, Usage(), XrdOssCache_Group::Usage, and XrdOssFSData_ADJUSTED.
|
static |
Definition at line 492 of file XrdOssCache.cc.
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, XrdOssPath::genPFN(), XrdOssCache_FS::group, XrdOssCache_Group::group, Info, XrdOssCache_FS::isXA, mkdir(), XrdOssCache_FS::next, XrdOssCache_Group::next, open(), XrdOssCache_FS::opts, XrdOssCache_FSData::path, XrdOssCache_FS::path, XrdOssCache::allocInfo::Path, XrdOssCache_FS::plen, XrdOssCache_FSData::stat, XrdOssCache_FS::suffix, XRDABS, and XrdOssFSData_REFRESH.
Referenced by XrdOssSys::Alloc_Cache(), and XrdOssSys::Reloc().
|
static |
Definition at line 583 of file XrdOssCache.cc.
References XrdOssCacheDevs::dev2ID, XrdOssCacheDevs::devNMax, XrdOssCacheDevs::prtNMax, and stat().
Referenced by XrdOssAt::Stat(), and XrdOssSys::StatPF().
|
static |
Definition at line 611 of file XrdOssCache.cc.
References lstat(), XrdOssCache_FS::next, XrdOssCache_FS::path, Path, stat(), strlcpy(), and XrdOssPath::Trim2Base().
Referenced by XrdOssFile::Open(), and XrdOssSys::Reloc().
|
static |
Definition at line 644 of file XrdOssCache.cc.
References XrdOssCache_Group::fsgroups, XrdOssCache_Group::group, XrdOssCache_Group::GRPid, XrdOssSpace::Init(), XrdOssCache_Group::next, Usage(), and XrdOssCache_Group::Usage.
Referenced by XrdOssSys::Configure().
|
static |
Definition at line 668 of file XrdOssCache.cc.
|
static |
Definition at line 682 of file XrdOssCache.cc.
References XrdOssCache_FSData::bdevID, XrdOssCache_FSData::devN, XrdOssCache_FS::fsdata, XrdOssCache_FS::group, XrdOssCache_FS::isXA, XrdOssCache_FS::next, XrdOssCache_FS::opts, XrdOssCache_FSData::pact, XrdOssCache_FSData::partID, XrdOssCache_FSData::path, XrdOssCache_FS::path, XrdOssCache_FS::plen, and XrdSysError::Say().
Referenced by XrdOssSys::Config_Display().
|
static |
Definition at line 709 of file XrdOssCache.cc.
References XrdOucStream::Attach(), XrdOssCacheDevs::dev2ID, XrdOssCacheDevs::devNMax, XrdOucStream::GetLine(), XrdOucStream::GetToken(), XrdOssCacheDevs::devID::nDev, open(), and strlcpy().
Referenced by XrdOssSys::Configure().
|
static |
Definition at line 814 of file XrdOssCache.cc.
References OSS_CGROUP_DEFAULT, Path, and strlcpy().
Referenced by XrdOssSys::Alloc_Cache(), and XrdOssSys::Reloc().
|
static |
Definition at line 843 of file XrdOssCache.cc.
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, OssEroute, XrdOssCache_FSData::path, XrdOssSpace::Quotas(), XrdOssCache_FSData::size, XrdOssCache_FSData::stat, XrdSysMutex::UnLock(), Usage(), XrdOssCache_Group::Usage, XrdOssSpace::Usage(), XrdOssFSData_ADJUSTED, and XrdOssFSData_REFRESH.
Referenced by XrdOssSys::StatVS(), and XrdOssCacheScan().
|
static |
Definition at line 272 of file XrdOssCache.hh.
Referenced by XrdOssCache_FSData::XrdOssCache_FSData(), and XrdOssSys::StatVS().
|
static |
Definition at line 271 of file XrdOssCache.hh.
Referenced by XrdOssCache_FS::XrdOssCache_FS(), XrdOssCache_FS::Add(), Adjust(), and Scan().
|
static |
Definition at line 269 of file XrdOssCache.hh.
Referenced by XrdOssCache_FS::XrdOssCache_FS(), and XrdOssSys::Create().
|
static |
Definition at line 267 of file XrdOssCache.hh.
Referenced by XrdOssCache_FSData::XrdOssCache_FSData(), XrdOssCache_FS::freeSpace(), Scan(), and XrdOssSys::StatVS().
|
static |
Definition at line 265 of file XrdOssCache.hh.
Referenced by XrdOssCache_FSData::XrdOssCache_FSData(), and XrdOssSys::StatVS().
|
static |
Definition at line 270 of file XrdOssCache.hh.
Referenced by XrdOssCache_FS::XrdOssCache_FS().
|
static |
Definition at line 268 of file XrdOssCache.hh.
Referenced by XrdOssCache_FS::freeSpace(), and Scan().
|
static |
Definition at line 264 of file XrdOssCache.hh.
Referenced by XrdOssCache_FSData::XrdOssCache_FSData(), and XrdOssSys::StatVS().
|
static |
Definition at line 266 of file XrdOssCache.hh.
Referenced by XrdOssCache_FSData::XrdOssCache_FSData(), Scan(), and XrdOssSys::StatVS().
|
static |
Definition at line 262 of file XrdOssCache.hh.
Referenced by XrdOssCache_FS::freeSpace(), XrdOssCache_FS::getSpace(), Scan(), and XrdOssSys::StatVS().