![]() |
XRootD
|
#include <XrdOfsHandle.hh>
Public Member Functions | |
XrdOfsHandle () | |
~XrdOfsHandle () | |
void | Activate (XrdOssDF *ssP) |
int | Inactive () |
void | Lock () |
const char * | Name () |
int | PoscGet (short &Mode, int Done=0) |
int | PoscSet (const char *User, int Unum, short Mode) |
const char * | PoscUsr () |
int | Retire (int &retc, long long *retsz=0, char *buff=0, int blen=0) |
int | Retire (XrdOfsHanCB *, int DSec) |
XrdOssDF & | Select (void) |
void | Suppress (int rrc=-EDOM, int wrc=-EDOM) |
void | UnLock () |
int | Usage () |
Static Public Member Functions | |
static int | Alloc (const char *thePath, int Opts, XrdOfsHandle **Handle) |
static int | Alloc (XrdOfsHandle **Handle) |
static void | Hide (const char *thePath) |
static int | StartXpr (int Init=0) |
Public Attributes | |
char | isChanged |
char | isCompressed |
char | isPending |
char | isRW |
Static Public Attributes | |
static const int | opPC = 3 |
static const int | opRW = 1 |
Friends | |
class | XrdOfsHanTab |
class | XrdOfsHanXpr |
Definition at line 125 of file XrdOfsHandle.hh.
|
inline |
Definition at line 172 of file XrdOfsHandle.hh.
|
inline |
Definition at line 174 of file XrdOfsHandle.hh.
References Retire().
|
inline |
Definition at line 136 of file XrdOfsHandle.hh.
|
static |
Definition at line 260 of file XrdOfsHandle.cc.
References XrdOfsStats::Add(), XrdOfsHanTab::Add(), XrdOfsStats::Data, XrdOfsHanTab::Find(), XrdOfsHanKey::Links, XrdSysMutex::Lock(), XrdOfsStats::StatsData::numHandles, OfsStats, opRW, XrdMpx::Opts, and XrdSysMutex::UnLock().
Referenced by XrdOfs::XrdOfs(), Alloc(), and XrdOfsFile::open().
|
static |
Definition at line 297 of file XrdOfsHandle.cc.
References Alloc(), XrdSysMutex::Lock(), and XrdSysMutex::UnLock().
|
static |
Definition at line 346 of file XrdOfsHandle.cc.
References XrdOfsHanTab::Find(), XrdOfsHanKey::Len, XrdSysMutex::Lock(), and XrdSysMutex::UnLock().
Referenced by XrdPfcFSctl::FSctl(), and XrdOfs::rename().
|
inline |
Definition at line 146 of file XrdOfsHandle.hh.
Referenced by XrdOfsFile::checkpoint(), and XrdOfsFile::close().
|
inline |
Definition at line 169 of file XrdOfsHandle.hh.
References XrdSysMutex::Lock().
Referenced by XrdOfsFile::close(), XrdOfs::Emsg(), and XrdOfsFile::sync().
|
inline |
Definition at line 148 of file XrdOfsHandle.hh.
References Path.
Referenced by XrdOfsFile::checkpoint(), XrdOfsFile::close(), XrdOfs::Emsg(), XrdOfsFile::FName(), XrdOfsFile::pgRead(), XrdOfsFile::pgWrite(), XrdOfsFile::read(), XrdOfsFile::readv(), XrdOfsFile::stat(), XrdOfs::Unpersist(), and XrdOfsFile::write().
int XrdOfsHandle::PoscGet | ( | short & | Mode, |
int | Done = 0 |
||
) |
Definition at line 366 of file XrdOfsHandle.cc.
References XrdOfsHanKey::Links, XrdSysMutex::Lock(), XrdOfsHanPsc::Mode, Mode, XrdOfsHanPsc::Recycle(), XrdSysMutex::UnLock(), XrdOfsHanPsc::Unum, and XrdOfsHanPsc::xprP.
Referenced by XrdOfsFile::close(), and XrdOfs::Unpersist().
int XrdOfsHandle::PoscSet | ( | const char * | User, |
int | Unum, | ||
short | Mode | ||
) |
Definition at line 392 of file XrdOfsHandle.cc.
References XrdOfsHanPsc::Alloc(), XrdSysError::Emsg(), XrdOfsHanPsc::Mode, OfsEroute, XrdOfsHanPsc::Uhst, XrdOfsHanPsc::Ulen, XrdOfsHanPsc::Unum, and XrdOfsHanKey::Val.
const char * XrdOfsHandle::PoscUsr | ( | ) |
Definition at line 446 of file XrdOfsHandle.cc.
Referenced by XrdOfs::Unpersist().
int XrdOfsHandle::Retire | ( | int & | retc, |
long long * | retsz = 0 , |
||
char * | buff = 0 , |
||
int | blen = 0 |
||
) |
Definition at line 458 of file XrdOfsHandle.cc.
References XrdOssDF::Close(), XrdOfsStats::Data, XrdOfsStats::Dec(), XrdSysError::Emsg(), isRW, XrdOfsHanKey::Len, XrdOfsHanKey::Links, XrdSysMutex::Lock(), XrdOfsStats::StatsData::numHandles, OfsEroute, OfsStats, XrdOfsHanPsc::Recycle(), XrdOfsHanTab::Remove(), strlcpy(), UnLock(), XrdSysMutex::UnLock(), and XrdOfsHanKey::Val.
Referenced by ~XrdOfsHandle(), XrdOfsFile::close(), XrdOfsFile::open(), Retire(), and StartXpr().
int XrdOfsHandle::Retire | ( | XrdOfsHanCB * | cbP, |
int | DSec | ||
) |
Definition at line 489 of file XrdOfsHandle.cc.
References XrdOfsHanXpr::add2Q(), XrdSysError::Emsg(), XrdOfsHanKey::Links, XrdSysMutex::Lock(), OfsEroute, Retire(), XrdOfsHanCB::Retired(), XrdOfsHanXpr::Set(), StartXpr(), UnLock(), XrdSysMutex::UnLock(), XrdOfsHanKey::Val, XrdOfsHanPsc::xprP, and XrdOfsHanXpr.
|
inline |
Definition at line 161 of file XrdOfsHandle.hh.
Referenced by XrdOfsFile::checkpoint(), XrdOfsFile::close(), XrdOfsFile::fctl(), XrdOfsFile::getCXinfo(), XrdOfsFile::getMmap(), XrdOfsFile::pgRead(), XrdOfsFile::pgWrite(), XrdOfsFile::read(), XrdOfsFile::readv(), XrdOfsFile::stat(), XrdOfsFile::sync(), XrdOfsFile::truncate(), and XrdOfsFile::write().
|
static |
Definition at line 522 of file XrdOfsHandle.cc.
References XrdSysError::Emsg(), XrdOfsHanXpr::Get(), XrdOfsHanKey::Links, XrdSysMutex::Lock(), OfsEroute, Retire(), XrdOfsHanCB::Retired(), XrdSysThread::Run(), UnLock(), XrdSysMutex::UnLock(), XrdOfsHanKey::Val, XrdOfsHanPsc::xprP, and XrdOfsHanXpire().
Referenced by Retire(), and XrdOfsHanXpire().
void XrdOfsHandle::Suppress | ( | int | rrc = -EDOM , |
int | wrc = -EDOM |
||
) |
Definition at line 583 of file XrdOfsHandle.cc.
Referenced by XrdOfsFile::checkpoint().
|
inline |
Definition at line 170 of file XrdOfsHandle.hh.
References XrdSysMutex::UnLock().
Referenced by XrdOfs::Emsg(), Retire(), StartXpr(), and XrdOfsFile::sync().
|
inline |
Definition at line 167 of file XrdOfsHandle.hh.
References Path.
Referenced by XrdOfsFile::close(), and XrdOfsFile::open().
|
friend |
Definition at line 127 of file XrdOfsHandle.hh.
|
friend |
Definition at line 128 of file XrdOfsHandle.hh.
Referenced by Retire().
char XrdOfsHandle::isChanged |
Definition at line 132 of file XrdOfsHandle.hh.
Referenced by XrdOfsFile::pgWrite(), XrdOfsFile::truncate(), and XrdOfsFile::write().
char XrdOfsHandle::isCompressed |
Definition at line 133 of file XrdOfsHandle.hh.
Referenced by XrdOfsFile::open(), XrdOfsFile::pgRead(), and XrdOfsFile::read().
char XrdOfsHandle::isPending |
Definition at line 131 of file XrdOfsHandle.hh.
Referenced by XrdOfsFile::pgWrite(), XrdOfsFile::sync(), XrdOfsFile::truncate(), and XrdOfsFile::write().
char XrdOfsHandle::isRW |
Definition at line 134 of file XrdOfsHandle.hh.
Referenced by XrdOfsFile::close(), XrdOfs::Emsg(), XrdOfsFile::pgWrite(), Retire(), and XrdOfsFile::write().
|
static |
Definition at line 139 of file XrdOfsHandle.hh.
Referenced by XrdOfsFile::close(), XrdOfs::Emsg(), XrdOfsFile::open(), XrdOfsFile::pgWrite(), and XrdOfsFile::write().
|
static |
Definition at line 138 of file XrdOfsHandle.hh.
Referenced by Alloc(), and XrdOfsFile::open().