![]() |
XRootD
|
#include <XrdOssSpace.hh>
Classes | |
struct | uEnt |
Public Types | |
enum | sType { Serv = 0 , Pstg = 1 , Purg = 2 , Admin = 3 , RsvA = 4 , RsvB = 5 , RsvC = 6 , addT = 7 , Totn = 8 } |
Public Member Functions | |
XrdOssSpace () | |
~XrdOssSpace () | |
Static Public Member Functions | |
static void | Adjust (const char *GName, off_t Space, sType=Serv) |
static void | Adjust (int Gent, off_t Space, sType=Serv) |
static int | Init () |
static int | Init (const char *aPath, const char *qFile, int isSOL, int us=0) |
static int | Quotas () |
static int | Unassign (const char *GName) |
static long long | Usage (const char *GName, struct uEnt &uVal, int rrd=0) |
static long long | Usage (int gent) |
Static Public Attributes | |
static const int | haveQuota = 2 |
static const int | haveUsage = 1 |
static const int | maxSNlen = 63 |
static const int | minSNbsz = 64 |
Friends | |
class | XrdOssCache |
Definition at line 35 of file XrdOssSpace.hh.
struct XrdOssSpace::uEnt |
Definition at line 64 of file XrdOssSpace.hh.
Class Members | ||
---|---|---|
long long | Bytes[Totn] | |
char | gName[minSNbsz] |
enum XrdOssSpace::sType |
Enumerator | |
---|---|
Serv | |
Pstg | |
Purg | |
Admin | |
RsvA | |
RsvB | |
RsvC | |
addT | |
Totn |
Definition at line 40 of file XrdOssSpace.hh.
|
inline |
Definition at line 70 of file XrdOssSpace.hh.
|
inline |
Definition at line 71 of file XrdOssSpace.hh.
Definition at line 142 of file XrdOssSpace.cc.
References Adjust().
Definition at line 81 of file XrdOssSpace.cc.
References Admin, fsync, OssEroute, pread, Pstg, Purg, pwrite, and Serv.
Referenced by XrdOssCache::Adjust(), XrdOssCache::Adjust(), and Adjust().
|
static |
Definition at line 224 of file XrdOssSpace.cc.
References haveQuota, and haveUsage.
Referenced by XrdOssCache::Init().
|
static |
Definition at line 228 of file XrdOssSpace.cc.
References close, XrdOucEnv::Export(), fstat, XrdOucUtils::InstName(), mkdir, open, opts, OssEroute, pwrite, Quotas(), read, stat, and write.
|
static |
Definition at line 345 of file XrdOssSpace.cc.
References XrdOuca2x::a2sz(), close, XrdOssCache_Group::fsgroups, XrdOssCache_Group::group, minSNbsz, XrdOssCache_Group::next, open, OssEroute, XrdOssCache_Group::PubQuota, XrdOssCache_Group::Quota, and stat.
Referenced by Init(), and XrdOssCache::Scan().
|
static |
Definition at line 486 of file XrdOssSpace.cc.
|
static |
Definition at line 535 of file XrdOssSpace.cc.
References XrdOssSpace::uEnt::Bytes, OssEroute, pread, and Serv.
|
static |
Definition at line 521 of file XrdOssSpace.cc.
References Serv.
Referenced by XrdOssCache::Scan().
|
friend |
|
static |
Definition at line 52 of file XrdOssSpace.hh.
Referenced by Init().
|
static |
Definition at line 51 of file XrdOssSpace.hh.
Referenced by Init().
|
static |
Definition at line 44 of file XrdOssSpace.hh.
Referenced by XrdOssSys::getStats(), and XrdOssSys::xspace().
|
static |
Definition at line 45 of file XrdOssSpace.hh.
Referenced by XrdOssSys::Alloc_Cache(), XrdOssPath::genPath(), Quotas(), XrdOssSys::Reloc(), XrdOssSys::StatLS(), and XrdOssSys::StatXA().