XrdOssSpace Class Reference
#include <XrdOssSpace.hh>
List of all members.
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 (int Gent, off_t Space, sType=Serv) |
| static void | Adjust (const char *GName, off_t Space, sType=Serv) |
| static int | Assign (const char *GName, long long &bytesUsed) |
| static int | Init () |
| static int | Init (const char *aPath, const char *qFile, int isSOL) |
| static int | Quotas () |
| static int | Readjust () |
| static void | Refresh () |
| static int | Unassign (const char *GName) |
| static long long | Usage (int gent) |
| static long long | Usage (const char *GName, struct uEnt &uVal, int rrd=0) |
Static Public Attributes |
| static const int | maxSNlen = 63 |
| static const int | minSNbsz = 64 |
| static const int | haveUsage = 1 |
| static const int | haveQuota = 2 |
Static Private Member Functions |
| static int | findEnt (const char *GName) |
| static int | Readjust (int) |
| static int | UsageLock (int Dolock=1) |
Static Private Attributes |
| static const int | ULen = sizeof(long long) |
| static const int | DataSz = 16384 |
| static const int | maxEnt = DataSz/sizeof(uEnt) |
| static const char * | qFname = 0 |
| static const char * | uFname = 0 |
| static uEnt | uData [maxEnt] = {{{0}}} |
| static short | uDvec [maxEnt] = {0} |
| static time_t | lastMtime = 0 |
| static int | fencEnt = 0 |
| static int | freeEnt = -1 |
| static int | aFD = -1 |
| static int | Solitary = 0 |
Member Enumeration Documentation
- Enumerator:
| Serv |
|
| Pstg |
|
| Purg |
|
| Admin |
|
| RsvA |
|
| RsvB |
|
| RsvC |
|
| addT |
|
| Totn |
|
Constructor & Destructor Documentation
| XrdOssSpace::XrdOssSpace |
( |
|
) |
[inline] |
| XrdOssSpace::~XrdOssSpace |
( |
|
) |
[inline] |
Member Function Documentation
| void XrdOssSpace::Adjust |
( |
const char * |
GName, |
|
|
off_t |
Space, |
|
|
sType |
stNum = Serv | |
|
) |
| | [static] |
| void XrdOssSpace::Adjust |
( |
int |
Gent, |
|
|
off_t |
Space, |
|
|
sType |
stNum = Serv | |
|
) |
| | [static] |
References Admin, aFD, XrdOssSpace::uEnt::Bytes, XrdSysError::Emsg(), fencEnt, pread, Pstg, Purg, pwrite, Serv, Solitary, uData, uFname, ULen, and UsageLock().
Referenced by Adjust(), XrdFrmAdmin::AuditUsage(), and XrdFrmAdmin::Reloc().
| int XrdOssSpace::Assign |
( |
const char * |
GName, |
|
|
long long & |
bytesUsed | |
|
) |
| | [static] |
References addT, aFD, XrdOssSpace::uEnt::Bytes, XrdSysError::Emsg(), fencEnt, findEnt(), freeEnt, maxEnt, pwrite, Serv, uData, uDvec, uFname, and UsageLock().
Referenced by XrdOssCache::Init().
| int XrdOssSpace::findEnt |
( |
const char * |
GName |
) |
[static, private] |
| int XrdOssSpace::Init |
( |
const char * |
aPath, |
|
|
const char * |
qFile, |
|
|
int |
isSOL | |
|
) |
| | [static] |
References aFD, DataSz, XrdSysError::Emsg(), XrdOucEnv::Export(), fencEnt, freeEnt, XrdOucUtils::InstName(), maxEnt, mkdir, open, opts, pwrite, qFname, Quotas(), read, Readjust(), S_IRGRP, S_IRUSR, S_IRWXG, S_IRWXU, S_IWGRP, S_IWUSR, Solitary, stat, uData, uDvec, uFname, UsageLock(), and write.
| int XrdOssSpace::Init |
( |
|
) |
[static] |
| int XrdOssSpace::Quotas |
( |
|
) |
[static] |
References XrdOuca2x::a2sz(), XrdOucStream::Attach(), close, XrdCms::Config, XrdSysError::Emsg(), XrdOssCache_Group::fsgroups, XrdOucStream::GetMyFirstWord(), XrdOucStream::GetWord(), XrdOssCache_Group::group, lastMtime, minSNbsz, XrdOssCache_Group::next, open, XrdOssCache_Group::PubQuota, qFname, XrdOssCache_Group::Quota, and stat.
Referenced by Init().
| int XrdOssSpace::Readjust |
( |
int |
i |
) |
[static, private] |
| int XrdOssSpace::Readjust |
( |
|
) |
[static] |
References aFD, XrdSysError::Emsg(), fencEnt, fstat, pread, pwrite, stat, uData, uDvec, uFname, and UsageLock().
Referenced by Init(), and XrdOssCache::Scan().
| static void XrdOssSpace::Refresh |
( |
|
) |
[static] |
| int XrdOssSpace::Unassign |
( |
const char * |
GName |
) |
[static] |
| long long XrdOssSpace::Usage |
( |
const char * |
GName, |
|
|
struct uEnt & |
uVal, |
|
|
int |
rrd = 0 | |
|
) |
| | [static] |
References aFD, XrdOssSpace::uEnt::Bytes, XrdSysError::Emsg(), fencEnt, findEnt(), pread, Serv, uData, uDvec, uFname, and UsageLock().
| static long long XrdOssSpace::Usage |
( |
int |
gent |
) |
[inline, static] |
| int XrdOssSpace::UsageLock |
( |
int |
Dolock = 1 |
) |
[static, private] |
Member Data Documentation
Referenced by XrdFrmPurge::Add(), XrdOssSys::Alloc_Cache(), XrdOssPath::genPath(), XrdFrmAdmin::QuerySpace(), Quotas(), XrdOssSys::Reloc(), XrdFrmAdmin::Reloc(), XrdOssSys::StatLS(), XrdOssSys::StatXA(), XrdFrmConfig::xpol(), XrdOssSys::xspace(), and XrdFrmConfig::xspace().
The documentation for this class was generated from the following files: