#include <XrdOssCache.hh>
Public Types | |
enum | FSOpts |
Public Member Functions | |
XrdOssCache_FS (int &retc, const char *fsg, const char *fsp, FSOpts opt) | |
~XrdOssCache_FS () | |
Static Public Member Functions | |
static int | Add (const char *Path) |
static long long | freeSpace (long long &Size, const char *path=0) |
static long long | freeSpace (XrdOssCache_Space &Space, const char *path) |
static int | getSpace (XrdOssCache_Space &Space, const char *sname) |
static int | getSpace (XrdOssCache_Space &Space, XrdOssCache_Group *fsg) |
Public Attributes | |
XrdOssCache_FS * | next |
const char * | group |
const char * | path |
int | plen |
FSOpts | opts |
char | suffix [4] |
XrdOssCache_FSData * | fsdata |
XrdOssCache_Group * | fsgroup |
Definition at line 109 of file XrdOssCache.hh.
Definition at line 113 of file XrdOssCache.hh.
XrdOssCache_FS::XrdOssCache_FS | ( | int & | retc, | |
const char * | fsg, | |||
const char * | fsp, | |||
FSOpts | opt | |||
) |
Definition at line 92 of file XrdOssCache.cc.
References XrdOssCache::fsdata, fsdata, XrdOssCache::fsfirst, fsgroup, XrdOssCache_Group::fsgroups, XrdOssCache::fslast, XrdOssPath::genPath(), XrdOssCache_Group::group, isXA, mkdir, next, XrdOssCache_FSData::next, XrdOssCache_Group::next, opts, path, plen, S_IRWXG, S_IRWXU, stat, and suffix.
XrdOssCache_FS::~XrdOssCache_FS | ( | ) | [inline] |
int XrdOssCache_FS::Add | ( | const char * | Path | ) | [static] |
Definition at line 175 of file XrdOssCache.cc.
References XrdOssCache::fsdata, XrdOssCache_FSData::next, and stat.
Referenced by XrdOssSys::ConfigSpace().
Definition at line 204 of file XrdOssCache.cc.
References XrdOssCache::fsFree, XrdOssCache::fsSize, XrdSysMutex::Lock(), XrdOssCache::Mutex, and XrdSysMutex::UnLock().
Referenced by XrdOssSys::getStats(), XrdOssCache::Scan(), and XrdOssSys::StatFS().
long long XrdOssCache_FS::freeSpace | ( | XrdOssCache_Space & | Space, | |
const char * | path | |||
) | [static] |
Definition at line 230 of file XrdOssCache.cc.
References XrdOssCache_Space::Free, XrdOssCache_Space::Inleft, XrdOssCache_Space::Inodes, and XrdOssCache_Space::Total.
int XrdOssCache_FS::getSpace | ( | XrdOssCache_Space & | Space, | |
const char * | sname | |||
) | [static] |
Definition at line 252 of file XrdOssCache.cc.
References XrdOssCache_Group::fsgroups, XrdOssCache_Group::group, and XrdOssCache_Group::next.
Referenced by XrdOssSys::getStats(), XrdOssSys::StatLS(), and XrdOssSys::StatVS().
int XrdOssCache_FS::getSpace | ( | XrdOssCache_Space & | Space, | |
XrdOssCache_Group * | fsg | |||
) | [static] |
Definition at line 268 of file XrdOssCache.cc.
References XrdOssCache_Space::Free, XrdOssCache_FSData::frsz, fsdata, XrdOssCache::fsfirst, fsgroup, XrdOssCache_Space::Largest, XrdSysMutex::Lock(), XrdOssCache_Space::Maxfree, XrdOssCache::Mutex, next, XrdOssCache_Group::Quota, XrdOssCache_Space::Quota, XrdOssCache_FSData::size, XrdOssCache_Space::Total, XrdSysMutex::UnLock(), XrdOssCache_Space::Usage, and XrdOssCache_Group::Usage.
Definition at line 115 of file XrdOssCache.hh.
Referenced by XrdOssCache::Adjust(), XrdOssCache::Alloc(), XrdOssCache::Find(), getSpace(), XrdOssCache::List(), and XrdOssCache_FS().
const char* XrdOssCache_FS::group |
Definition at line 116 of file XrdOssCache.hh.
Referenced by XrdOssCache::Alloc(), and XrdOssCache::List().
const char* XrdOssCache_FS::path |
Definition at line 117 of file XrdOssCache.hh.
Referenced by XrdOssCache::Adjust(), XrdOssCache::Alloc(), XrdOssCache::Find(), XrdOssCache::List(), XrdOssCache_FS(), and ~XrdOssCache_FS().
Definition at line 118 of file XrdOssCache.hh.
Referenced by XrdOssCache::Alloc(), XrdOssCache::List(), and XrdOssCache_FS().
Definition at line 119 of file XrdOssCache.hh.
Referenced by XrdOssCache::Alloc(), XrdOssCache::List(), and XrdOssCache_FS().
char XrdOssCache_FS::suffix[4] |
Definition at line 120 of file XrdOssCache.hh.
Referenced by XrdOssCache::Alloc(), and XrdOssCache_FS().
Definition at line 121 of file XrdOssCache.hh.
Referenced by XrdOssCache::Adjust(), XrdOssCache::Alloc(), getSpace(), and XrdOssCache_FS().
Definition at line 122 of file XrdOssCache.hh.
Referenced by XrdOssCache::Adjust(), getSpace(), and XrdOssCache_FS().