|
xrootd
|
#include <XrdOfs.hh>


Classes | |
| struct | fwdOpt |
Public Types | |
| enum | { Authorize = 0x0001, isPeer = 0x0050, isProxy = 0x0020, isManager = 0x0040, isServer = 0x0080, isSuper = 0x00C0, isMeta = 0x0100, haveRole = 0x01F0, Forwarding = 0x1000 } |
Public Member Functions | |
| XrdSfsDirectory * | newDir (char *user=0) |
| XrdSfsFile * | newFile (char *user=0) |
| int | chksum (csFunc Func, const char *csName, const char *Path, XrdOucErrInfo &out_error, const XrdSecEntity *client=0, const char *opaque=0) |
| int | chmod (const char *Name, XrdSfsMode Mode, XrdOucErrInfo &out_error, const XrdSecEntity *client, const char *opaque=0) |
| int | exists (const char *fileName, XrdSfsFileExistence &exists_flag, XrdOucErrInfo &out_error, const XrdSecEntity *client, const char *opaque=0) |
| int | fsctl (const int cmd, const char *args, XrdOucErrInfo &out_error, const XrdSecEntity *client) |
| int | getStats (char *buff, int blen) |
| const char * | getVersion () |
| int | mkdir (const char *dirName, XrdSfsMode Mode, XrdOucErrInfo &out_error, const XrdSecEntity *client, const char *opaque=0) |
| int | prepare (XrdSfsPrep &pargs, XrdOucErrInfo &out_error, const XrdSecEntity *client=0) |
| int | rem (const char *path, XrdOucErrInfo &out_error, const XrdSecEntity *client, const char *info=0) |
| int | remdir (const char *dirName, XrdOucErrInfo &out_error, const XrdSecEntity *client, const char *info=0) |
| int | rename (const char *oldFileName, const char *newFileName, XrdOucErrInfo &out_error, const XrdSecEntity *client, const char *infoO=0, const char *infoN=0) |
| int | stat (const char *Name, struct stat *buf, XrdOucErrInfo &out_error, const XrdSecEntity *client, const char *opaque=0) |
| int | stat (const char *Name, mode_t &mode, XrdOucErrInfo &out_error, const XrdSecEntity *client, const char *opaque=0) |
| int | truncate (const char *Name, XrdSfsFileOffset fileOffset, XrdOucErrInfo &out_error, const XrdSecEntity *client=0, const char *opaque=0) |
| virtual int | Configure (XrdSysError &) |
| virtual int | Configure (XrdSysError &, XrdOucEnv *) |
| void | Config_Cluster (XrdOss *) |
| void | Config_Display (XrdSysError &) |
| XrdOfs () | |
| virtual | ~XrdOfs () |
Public Attributes | |
| int | Options |
| int | myPort |
| struct fwdOpt | fwdCHMOD |
| struct fwdOpt | fwdMKDIR |
| struct fwdOpt | fwdMKPATH |
| struct fwdOpt | fwdMV |
| struct fwdOpt | fwdRM |
| struct fwdOpt | fwdRMDIR |
| struct fwdOpt | fwdTRUNC |
| char * | HostName |
| char * | HostPref |
| char * | ConfigFN |
| char * | OssLib |
Static Public Attributes | |
| static int | MaxDelay = 60 |
| static int | OSSDelay = 30 |
Protected Member Functions | |
| virtual int | ConfigXeq (char *var, XrdOucStream &, XrdSysError &) |
| int | Stall (XrdOucErrInfo &, int, const char *) |
| void | Unpersist (XrdOfsHandle *hP, int xcev=1) |
| char * | WaitTime (int, char *, int) |
Static Protected Member Functions | |
| static int | Emsg (const char *, XrdOucErrInfo &, int, const char *x, XrdOfsHandle *hP) |
| static int | Emsg (const char *, XrdOucErrInfo &, int, const char *x, const char *y="") |
| static int | fsError (XrdOucErrInfo &myError, int rc) |
Protected Attributes | |
| XrdOfsEvr | evrObject |
| XrdCmsClient * | Finder |
Private Member Functions | |
| int | remove (const char type, const char *path, XrdOucErrInfo &out_error, const XrdSecEntity *client, const char *opaque) |
| int | ConfigDispFwd (char *buff, struct fwdOpt &Fwd) |
| int | ConfigPosc (XrdSysError &Eroute) |
| int | ConfigRedir (XrdSysError &Eroute, XrdOucEnv *EnvInfo) |
| const char * | Fname (const char *) |
| int | Forward (int &Result, XrdOucErrInfo &Resp, struct fwdOpt &Fwd, const char *arg1=0, const char *arg2=0, const char *arg3=0, const char *arg4=0) |
| int | setupAuth (XrdSysError &) |
| const char * | theRole (int opts) |
| int | xalib (XrdOucStream &, XrdSysError &) |
| int | xclib (XrdOucStream &, XrdSysError &) |
| int | xcrds (XrdOucStream &, XrdSysError &) |
| int | xforward (XrdOucStream &, XrdSysError &) |
| int | xmaxd (XrdOucStream &, XrdSysError &) |
| int | xnmsg (XrdOucStream &, XrdSysError &) |
| int | xnot (XrdOucStream &, XrdSysError &) |
| int | xolib (XrdOucStream &, XrdSysError &) |
| int | xpers (XrdOucStream &, XrdSysError &) |
| int | xrole (XrdOucStream &, XrdSysError &) |
| int | xtrace (XrdOucStream &, XrdSysError &) |
Private Attributes | |
| char * | AuthLib |
| char * | AuthParm |
| char * | myRole |
| XrdAccAuthorize * | Authorization |
| XrdCmsClient * | Balancer |
| XrdOfsEvs * | evsObject |
| char * | locResp |
| int | locRlen |
| XrdOfsPoscq * | poscQ |
| char * | poscLog |
| int | poscHold |
| int | poscAuto |
| XrdCksConfig * | CksConfig |
| XrdCks * | Cks |
| int | CksRdsz |
| XrdSysMutex | ocMutex |
Static Private Attributes | |
| static XrdOfsHandle * | dummyHandle |
Friends | |
| class | XrdOfsDirectory |
| class | XrdOfsFile |
| anonymous enum |
| XrdOfs::XrdOfs | ( | ) |
References Authorization, Finder, Balancer, evsObject, myRole, myPort, poscQ, poscLog, poscHold, poscAuto, HostName, XrdSysDNS::getHostName(), XrdSysDNS::Host2IP(), XrdSysDNS::IP2String(), locResp, locRlen, HostPref, ConfigFN, XrdOfsHandle::Alloc(), dummyHandle, Cks, CksConfig, and CksRdsz.
| virtual XrdOfs::~XrdOfs | ( | ) | [inline, virtual] |
| int XrdOfs::chksum | ( | csFunc | Func, |
| const char * | csName, | ||
| const char * | Path, | ||
| XrdOucErrInfo & | out_error, | ||
| const XrdSecEntity * | client = 0, |
||
| const char * | opaque = 0 |
||
| ) | [virtual] |
Reimplemented from XrdSfsFileSystem.
References EPNAME, tident, XrdOucErrInfo::getErrUser(), Cks, XrdOucErrInfo::setErrInfo(), SFS_ERROR, XrdCksData::Set(), XrdSfsFileSystem::csSize, XrdCks::Size(), XrdOucErrInfo::setErrCode(), SFS_OK, XTRACE, stat(), AUTHORIZE, AOP_Stat, XrdOss::Lfn2Pfn(), Emsg(), XrdSfsFileSystem::csCalc, XrdCks::Calc(), XrdSfsFileSystem::csGet, XrdCks::Get(), and XrdCksData::Get().
| int XrdOfs::chmod | ( | const char * | Name, |
| XrdSfsMode | Mode, | ||
| XrdOucErrInfo & | out_error, | ||
| const XrdSecEntity * | client, | ||
| const char * | opaque = 0 |
||
| ) | [virtual] |
Implements XrdSfsFileSystem.
References EPNAME, S_IAMB, tident, XrdOucErrInfo::getErrUser(), XTRACE, AUTHORIZE, AOP_Chmod, Finder, XrdCmsClient::isRemote(), fwdCHMOD, XrdOfs::fwdOpt::Cmd, Forward(), XrdCmsClient::Locate(), SFS_O_RDWR, SFS_O_META, fsError(), evsObject, XrdOfsEvs::Enabled(), XrdOfsEvs::Chmod, XrdOfsEvs::Notify(), XrdOss::Chmod(), SFS_OK, and Emsg().
| void XrdOfs::Config_Cluster | ( | XrdOss * | ) |
| void XrdOfs::Config_Display | ( | XrdSysError & | Eroute | ) |
References ConfigFN, poscQ, poscAuto, snprintf, myRole, Options, Authorize, AuthLib, MaxDelay, OssLib, poscHold, poscLog, XrdOucTrace::What, XrdSysError::Say(), Forwarding, ConfigDispFwd(), fwdCHMOD, fwdMKDIR, fwdMV, fwdRM, fwdRMDIR, fwdTRUNC, XrdOucEnv::Export(), evsObject, setBuff, XrdOfsEvs::Enabled(), XrdOfsEvs::Chmod, XrdOfsEvs::Closer, XrdOfsEvs::Closew, XrdOfsEvs::Create, XrdOfsEvs::Mkdir, XrdOfsEvs::Mv, XrdOfsEvs::Openr, XrdOfsEvs::Openw, XrdOfsEvs::Rm, XrdOfsEvs::Rmdir, XrdOfsEvs::Trunc, XrdOfsEvs::Fwrite, XrdOfsEvs::maxSmsg(), XrdOfsEvs::maxLmsg(), and XrdOfsEvs::Prog().
Referenced by Configure().
| int XrdOfs::ConfigDispFwd | ( | char * | buff, |
| struct fwdOpt & | Fwd | ||
| ) | [private] |
References XrdOfs::fwdOpt::Cmd, setBuff, XrdOfs::fwdOpt::Port, and XrdOfs::fwdOpt::Host.
Referenced by Config_Display().
| int XrdOfs::ConfigPosc | ( | XrdSysError & | Eroute | ) | [private] |
References XrdOfsFS, S_IRWXU, S_IRWXG, S_IROTH, S_IXOTH, Unpersist(), XrdOucUtils::InstName(), poscLog, XrdOucUtils::genPath(), XrdOucUtils::makePath(), XrdSysError::Emsg(), poscQ, XrdOfsPoscq::Init(), XrdOfsPoscq::recEnt::reqData, XrdOfsPoscq::Request::addT, poscHold, XrdOfsHandle::Alloc(), XrdOfsPoscq::Request::LFN, XrdOfsHandle::opPC, XrdOfsPoscq::Request::User, XrdOfsHandle::PoscSet(), XrdOfsPoscq::recEnt::Offset, XrdOfsPoscq::recEnt::Mode, XrdOfsHandle::Retire(), XrdOss::Unlink(), XrdOfsPoscq::Del(), and XrdOfsPoscq::recEnt::Next.
Referenced by Configure().
| int XrdOfs::ConfigRedir | ( | XrdSysError & | Eroute, |
| XrdOucEnv * | EnvInfo | ||
| ) | [private] |
References isRedir(), Options, isManager, isServer, XrdCms::IsTarget, isProxy, XrdCms::IsProxy, isMeta, XrdCms::IsMeta, Finder, XrdSysError::logger(), myPort, XrdCmsClient::Configure(), ConfigFN, isPeer, XrdSysError::Emsg(), Balancer, and XrdCms::IsRedir.
Referenced by Configure().
| int XrdOfs::Configure | ( | XrdSysError & | Eroute | ) | [virtual] |
Referenced by XrdSfsGetDefaultFileSystem().
| int XrdOfs::Configure | ( | XrdSysError & | Eroute, |
| XrdOucEnv * | EnvInfo | ||
| ) | [virtual] |
References XrdOssGetSS(), XrdCms::Config, XrdSysError::Say(), Options, XrdOucTrace::What, TRACE_MOST, TRACE_debug, CksConfig, ConfigFN, XrdSysError::Emsg(), open(), XrdOucStream::Attach(), XrdOucStream::GetMyFirstWord(), ConfigXeq(), XrdOucStream::Echo(), XrdOucStream::LastError(), XrdOucStream::Close(), Authorize, setupAuth(), isManager, isServer, isProxy, haveRole, myRole, theRole(), XrdOucEnv::Export(), isMeta, OssLib, XrdCksConfig::Manager(), evrObject, XrdOfsEvr::Init(), Balancer, ConfigRedir(), Forwarding, isPeer, fwdCHMOD, XrdOfs::fwdOpt::Reset(), fwdMKDIR, fwdMKPATH, fwdMV, fwdRM, fwdRMDIR, fwdTRUNC, XrdSysError::logger(), Cks, XrdCksConfig::Configure(), CksRdsz, evsObject, XrdOfsEvs::Start(), poscAuto, ConfigPosc(), XrdOfsStats::setRole(), and Config_Display().
| int XrdOfs::ConfigXeq | ( | char * | var, |
| XrdOucStream & | Config, | ||
| XrdSysError & | Eroute | ||
| ) | [protected, virtual] |
References TS_Bit, Options, Authorize, TS_Xeq, xalib(), xclib(), xcrds(), xforward(), xmaxd(), xnot(), xnmsg(), xolib(), xpers(), xrole(), xtrace(), strlcpy(), XrdOucStream::GetWord(), XrdSysError::Emsg(), XrdSysError::Say(), and XrdOucStream::Echo().
Referenced by Configure().
| int XrdOfs::Emsg | ( | const char * | pfx, |
| XrdOucErrInfo & | einfo, | ||
| int | ecode, | ||
| const char * | x, | ||
| XrdOfsHandle * | hP | ||
| ) | [static, protected] |
References XrdOfsHandle::Name(), SFS_ERROR, XrdOfsHandle::isRW, XrdOfsHandle::opPC, XrdOfsHandle::Lock(), Unpersist(), and XrdOfsHandle::UnLock().
Referenced by XrdOfsDirectory::open(), XrdOfsDirectory::nextEntry(), XrdOfsDirectory::close(), XrdOfsFile::open(), XrdOfsFile::close(), XrdOfsFile::read(), XrdOfsFile::write(), XrdOfsFile::stat(), XrdOfsFile::sync(), XrdOfsFile::truncate(), chksum(), chmod(), exists(), fsctl(), mkdir(), remove(), rename(), stat(), and truncate().
| int XrdOfs::Emsg | ( | const char * | pfx, |
| XrdOucErrInfo & | einfo, | ||
| int | ecode, | ||
| const char * | x, | ||
| const char * | y = "" |
||
| ) | [static, protected] |
| int XrdOfs::exists | ( | const char * | fileName, |
| XrdSfsFileExistence & | exists_flag, | ||
| XrdOucErrInfo & | out_error, | ||
| const XrdSecEntity * | client, | ||
| const char * | opaque = 0 |
||
| ) | [virtual] |
Implements XrdSfsFileSystem.
References EPNAME, stat(), tident, XrdOucErrInfo::getErrUser(), XTRACE, AUTHORIZE, AOP_Stat, Finder, XrdCmsClient::isRemote(), XrdCmsClient::Locate(), SFS_O_RDONLY, fsError(), XrdOss::Stat(), S_ISDIR, XrdSfsFileExistIsDirectory, S_ISREG, XrdSfsFileExistIsFile, XrdSfsFileExistNo, SFS_OK, and Emsg().
| const char * XrdOfs::Fname | ( | const char * | path | ) | [private] |
Referenced by Stall().
| int XrdOfs::Forward | ( | int & | Result, |
| XrdOucErrInfo & | Resp, | ||
| struct fwdOpt & | Fwd, | ||
| const char * | arg1 = 0, |
||
| const char * | arg2 = 0, |
||
| const char * | arg3 = 0, |
||
| const char * | arg4 = 0 |
||
| ) | [private] |
References Finder, XrdCmsClient::Forward(), XrdOfs::fwdOpt::Cmd, fsError(), XrdOfs::fwdOpt::Port, SFS_OK, XrdOucErrInfo::setErrInfo(), XrdOfs::fwdOpt::Host, and SFS_REDIRECT.
Referenced by chmod(), mkdir(), remove(), rename(), and truncate().
| int XrdOfs::fsctl | ( | const int | cmd, |
| const char * | args, | ||
| XrdOucErrInfo & | out_error, | ||
| const XrdSecEntity * | client | ||
| ) | [virtual] |
Implements XrdSfsFileSystem.
References EPNAME, XrdAccPriv_Delete, XrdAccPriv_Insert, XrdAccPriv_Lock, XrdAccPriv_Lookup, XrdAccPriv_Rename, XrdAccPriv_Read, XrdAccPriv_Write, SFS_O_LOCATE, SFS_O_NOWAIT, SFS_O_RESET, SFS_FSCTL_CMD, tident, XrdOucErrInfo::getErrUser(), XTRACE, SFS_FSCTL_LOCATE, stat(), Path, locResp, SFS_O_TRUNC, AUTHORIZE, AOP_Stat, Finder, XrdCmsClient::isRemote(), XrdCmsClient::Locate(), fsError(), XrdOss::Stat(), Emsg(), S_IWUSR, XrdOucErrInfo::setErrInfo(), locRlen, SFS_DATA, SFS_FSCTL_STATFS, XrdCmsClient::Space(), XrdOucErrInfo::getMsgBuff(), XrdOss::StatFS(), XrdOucErrInfo::setErrCode(), SFS_FSCTL_STATLS, index(), XrdOss::StatLS(), SFS_FSCTL_STATXA, SFS_O_RDONLY, SFS_O_STAT, XrdOss::StatXA(), Authorization, XrdAccPriv_All, XrdAccAuthorize::Access(), and AOP_Any.
| int XrdOfs::fsError | ( | XrdOucErrInfo & | myError, |
| int | rc | ||
| ) | [static, protected] |
References XrdOfsStats::Data, XrdOfsStats::StatsData::numRedirect, SFS_REDIRECT, EINPROGRESS, XrdOfsStats::StatsData::numStarted, SFS_STARTED, XrdOfsStats::StatsData::numDelays, XrdOfsStats::StatsData::numReplies, SFS_DATA, XrdOfsStats::StatsData::numErrors, and SFS_ERROR.
Referenced by XrdOfsFile::open(), chmod(), exists(), fsctl(), mkdir(), prepare(), remove(), rename(), stat(), truncate(), and Forward().
| int XrdOfs::getStats | ( | char * | buff, |
| int | blen | ||
| ) | [virtual] |
Implements XrdSfsFileSystem.
References XrdOfsStats::Report(), and XrdOss::Stats().
| const char * XrdOfs::getVersion | ( | ) | [virtual] |
Implements XrdSfsFileSystem.
References XrdVSTRING.
| int XrdOfs::mkdir | ( | const char * | dirName, |
| XrdSfsMode | Mode, | ||
| XrdOucErrInfo & | out_error, | ||
| const XrdSecEntity * | client, | ||
| const char * | opaque = 0 |
||
| ) | [virtual] |
Implements XrdSfsFileSystem.
References EPNAME, SFS_O_RDWR, SFS_O_CREAT, SFS_O_META, S_IAMB, SFS_O_MKPTH, tident, XrdOucErrInfo::getErrUser(), XTRACE, AUTHORIZE, AOP_Mkdir, Finder, XrdCmsClient::isRemote(), fwdMKDIR, XrdOfs::fwdOpt::Cmd, Forward(), fwdMKPATH, XrdCmsClient::Locate(), fsError(), XrdOss::Mkdir(), Emsg(), evsObject, XrdOfsEvs::Enabled(), XrdOfsEvs::Mkdir, XrdOfsEvs::Notify(), Balancer, XrdCmsClient::Added(), and SFS_OK.
| XrdSfsDirectory* XrdOfs::newDir | ( | char * | user = 0 | ) | [inline, virtual] |
Implements XrdSfsFileSystem.
References XrdOfsDirectory.
| XrdSfsFile* XrdOfs::newFile | ( | char * | user = 0 | ) | [inline, virtual] |
Implements XrdSfsFileSystem.
References XrdOfsFile.
| int XrdOfs::prepare | ( | XrdSfsPrep & | pargs, |
| XrdOucErrInfo & | out_error, | ||
| const XrdSecEntity * | client = 0 |
||
| ) | [virtual] |
Implements XrdSfsFileSystem.
References EPNAME, XrdSfsPrep::paths, AUTHORIZE, AOP_Read, XrdOucTList::text, XrdOucTList::next, Finder, XrdCmsClient::Prepare(), and fsError().
| int XrdOfs::rem | ( | const char * | path, |
| XrdOucErrInfo & | out_error, | ||
| const XrdSecEntity * | client, | ||
| const char * | info = 0 |
||
| ) | [inline, virtual] |
Implements XrdSfsFileSystem.
| int XrdOfs::remdir | ( | const char * | dirName, |
| XrdOucErrInfo & | out_error, | ||
| const XrdSecEntity * | client, | ||
| const char * | info = 0 |
||
| ) | [inline, virtual] |
Implements XrdSfsFileSystem.
| int XrdOfs::remove | ( | const char | type, |
| const char * | path, | ||
| XrdOucErrInfo & | out_error, | ||
| const XrdSecEntity * | client, | ||
| const char * | opaque | ||
| ) | [private] |
References EPNAME, tident, XrdOucErrInfo::getErrUser(), XTRACE, AUTHORIZE, AOP_Delete, Finder, XrdCmsClient::isRemote(), fwdRMDIR, fwdRM, XrdOfs::fwdOpt::Cmd, Forward(), XrdCmsClient::Locate(), SFS_O_WRONLY, SFS_O_META, fsError(), evsObject, XrdOfsEvs::Enabled(), XrdOfsEvs::Notify(), XrdOucEnv::Get(), XRDOSS_Online, XrdOss::Remdir(), XrdOss::Unlink(), Emsg(), XrdOfsHandle::Hide(), Balancer, XrdCmsClient::Removed(), and SFS_OK.
| int XrdOfs::rename | ( | const char * | oldFileName, |
| const char * | newFileName, | ||
| XrdOucErrInfo & | out_error, | ||
| const XrdSecEntity * | client, | ||
| const char * | infoO = 0, |
||
| const char * | infoN = 0 |
||
| ) | [virtual] |
Implements XrdSfsFileSystem.
References EPNAME, tident, XrdOucErrInfo::getErrUser(), XTRACE, AUTHORIZE2, AOP_Rename, AOP_Insert, Finder, XrdCmsClient::isRemote(), fwdMV, XrdOfs::fwdOpt::Cmd, Forward(), XrdCmsClient::Locate(), SFS_O_RDWR, SFS_O_META, fsError(), evsObject, XrdOfsEvs::Enabled(), XrdOfsEvs::Mv, XrdOfsEvs::Notify(), XrdOss::Rename(), Emsg(), XrdOfsHandle::Hide(), Balancer, XrdCmsClient::Removed(), XrdCmsClient::Added(), and SFS_OK.
| int XrdOfs::setupAuth | ( | XrdSysError & | Eroute | ) | [private] |
References XrdAccDefaultAuthorizeObject(), AuthLib, Authorization, XrdSysError::logger(), ConfigFN, AuthParm, and XrdSysPlugin::getPlugin().
Referenced by Configure().
| int XrdOfs::Stall | ( | XrdOucErrInfo & | einfo, |
| int | stime, | ||
| const char * | path | ||
| ) | [protected] |
References EPNAME, tident, snprintf, Fname(), WaitTime(), ZTRACE, XrdOucErrInfo::setErrInfo(), and MaxDelay.
Referenced by XrdOfsFile::open().
| int XrdOfs::stat | ( | const char * | Name, |
| struct stat * | buf, | ||
| XrdOucErrInfo & | out_error, | ||
| const XrdSecEntity * | client, | ||
| const char * | opaque = 0 |
||
| ) | [virtual] |
Implements XrdSfsFileSystem.
References EPNAME, tident, XrdOucErrInfo::getErrUser(), XTRACE, AUTHORIZE, AOP_Stat, Finder, XrdCmsClient::isRemote(), XrdCmsClient::Locate(), SFS_O_RDONLY, SFS_O_STAT, fsError(), XrdOss::Stat(), Emsg(), and SFS_OK.
| int XrdOfs::stat | ( | const char * | Name, |
| mode_t & | mode, | ||
| XrdOucErrInfo & | out_error, | ||
| const XrdSecEntity * | client, | ||
| const char * | opaque = 0 |
||
| ) | [virtual] |
Implements XrdSfsFileSystem.
References EPNAME, stat(), tident, XrdOucErrInfo::getErrUser(), XTRACE, AUTHORIZE, AOP_Stat, Finder, XrdCmsClient::isRemote(), XrdCmsClient::Locate(), SFS_O_NOWAIT, SFS_O_RDONLY, SFS_O_STAT, fsError(), XrdOss::Stat(), XRDOSS_resonly, Emsg(), and SFS_OK.
| const char * XrdOfs::theRole | ( | int | opts | ) | [private] |
References isPeer, isManager, isServer, and isProxy.
Referenced by Configure().
| int XrdOfs::truncate | ( | const char * | Name, |
| XrdSfsFileOffset | fileOffset, | ||
| XrdOucErrInfo & | out_error, | ||
| const XrdSecEntity * | client = 0, |
||
| const char * | opaque = 0 |
||
| ) | [virtual] |
Implements XrdSfsFileSystem.
References EPNAME, tident, XrdOucErrInfo::getErrUser(), XTRACE, AUTHORIZE, AOP_Update, Finder, XrdCmsClient::isRemote(), fwdTRUNC, XrdOfs::fwdOpt::Cmd, Forward(), XrdCmsClient::Locate(), SFS_O_RDWR, fsError(), evsObject, XrdOfsEvs::Enabled(), XrdOfsEvs::Trunc, XrdOfsEvs::Notify(), XrdOss::Truncate(), SFS_OK, and Emsg().
| void XrdOfs::Unpersist | ( | XrdOfsHandle * | hP, |
| int | xcev = 1 |
||
| ) | [protected] |
References EPNAME, tident, XrdOfsHandle::PoscUsr(), FTRACE, close, evsObject, XrdOfsEvs::Enabled(), XrdOfsEvs::Closew, XrdOfsHandle::Name(), XrdOfsEvs::Notify(), Balancer, XrdCmsClient::Removed(), XrdOfsEvs::Rm, XrdOfsStats::Add(), XrdOfsStats::Data, XrdOfsStats::StatsData::numUnpsist, OfsEroute, XrdSysError::Emsg(), XrdOfsHandle::PoscGet(), poscQ, XrdOfsPoscq::Del(), and XrdOss::Unlink().
Referenced by XrdOfsFile::close(), Emsg(), and ConfigPosc().
| char * XrdOfs::WaitTime | ( | int | stime, |
| char * | buff, | ||
| int | blen | ||
| ) | [protected] |
| int XrdOfs::xalib | ( | XrdOucStream & | Config, |
| XrdSysError & | Eroute | ||
| ) | [private] |
References XrdOucStream::GetWord(), XrdSysError::Emsg(), AuthLib, XrdOucStream::GetRest(), and AuthParm.
Referenced by ConfigXeq().
| int XrdOfs::xclib | ( | XrdOucStream & | Config, |
| XrdSysError & | Eroute | ||
| ) | [private] |
References CksConfig, and XrdCksConfig::ParseLib().
Referenced by ConfigXeq().
| int XrdOfs::xcrds | ( | XrdOucStream & | Config, |
| XrdSysError & | Eroute | ||
| ) | [private] |
References XrdOucStream::GetWord(), XrdSysError::Emsg(), XrdOuca2x::a2sz(), and CksRdsz.
Referenced by ConfigXeq().
| int XrdOfs::xforward | ( | XrdOucStream & | Config, |
| XrdSysError & | Eroute | ||
| ) | [private] |
References XrdOucStream::GetWord(), XrdSysError::Emsg(), index(), strlcpy(), XrdSysError::Say(), fwdCHMOD, XrdOfs::fwdOpt::Cmd, XrdOfs::fwdOpt::Host, XrdOfs::fwdOpt::Port, fwdMKDIR, fwdMKPATH, fwdMV, fwdRM, fwdRMDIR, fwdTRUNC, Options, and Forwarding.
Referenced by ConfigXeq().
| int XrdOfs::xmaxd | ( | XrdOucStream & | Config, |
| XrdSysError & | Eroute | ||
| ) | [private] |
References XrdOucStream::GetWord(), XrdSysError::Emsg(), XrdOuca2x::a2i(), and MaxDelay.
Referenced by ConfigXeq().
| int XrdOfs::xnmsg | ( | XrdOucStream & | Config, |
| XrdSysError & | Eroute | ||
| ) | [private] |
References Create, XrdOucStream::GetWord(), XrdSysError::Emsg(), XrdSysError::Say(), XrdOucStream::SetEnv(), XrdOucStream::GetRest(), and XrdOfsEvs::Parse().
Referenced by ConfigXeq().
| int XrdOfs::xnot | ( | XrdOucStream & | Config, |
| XrdSysError & | Eroute | ||
| ) | [private] |
References Create, XrdOucStream::GetWord(), XrdSysError::Emsg(), XrdOuca2x::a2i(), XrdSysError::Say(), XrdOucStream::RetToken(), XrdOucStream::GetRest(), and evsObject.
Referenced by ConfigXeq().
| int XrdOfs::xolib | ( | XrdOucStream & | Config, |
| XrdSysError & | Eroute | ||
| ) | [private] |
References XrdOucStream::GetWord(), XrdSysError::Emsg(), XrdOucStream::GetRest(), and OssLib.
Referenced by ConfigXeq().
| int XrdOfs::xpers | ( | XrdOucStream & | Config, |
| XrdSysError & | Eroute | ||
| ) | [private] |
References XrdOucStream::GetWord(), XrdSysError::Emsg(), XrdOuca2x::a2tm(), poscLog, XrdSysError::Say(), poscHold, and poscAuto.
Referenced by ConfigXeq().
| int XrdOfs::xrole | ( | XrdOucStream & | Config, |
| XrdSysError & | Eroute | ||
| ) | [private] |
References haveRole, XrdOucStream::GetWord(), XrdSysError::Emsg(), isMeta, isPeer, isProxy, isManager, isServer, isSuper, XrdOucUtils::doIf(), XrdOucUtils::InstName(), XrdOucStream::noEcho(), myRole, and Options.
Referenced by ConfigXeq().
| int XrdOfs::xtrace | ( | XrdOucStream & | Config, |
| XrdSysError & | Eroute | ||
| ) | [private] |
References TRACE_aio, TRACE_ALL, TRACE_chmod, TRACE_close, TRACE_closedir, TRACE_debug, TRACE_delay, TRACE_dir, TRACE_exists, TRACE_getstats, TRACE_fsctl, TRACE_IO, TRACE_mkdir, TRACE_MOST, TRACE_open, TRACE_opendir, TRACE_qscan, TRACE_read, TRACE_readdir, TRACE_redirect, TRACE_remove, TRACE_rename, TRACE_sync, TRACE_truncate, TRACE_write, XrdOucStream::GetWord(), XrdSysError::Emsg(), XrdSysError::Say(), and XrdOucTrace::What.
Referenced by ConfigXeq().
friend class XrdOfsDirectory [friend] |
Referenced by newDir().
friend class XrdOfsFile [friend] |
Referenced by newFile().
char* XrdOfs::AuthLib [private] |
Referenced by Config_Display(), xalib(), and setupAuth().
XrdAccAuthorize* XrdOfs::Authorization [private] |
Referenced by XrdOfs(), fsctl(), and setupAuth().
char* XrdOfs::AuthParm [private] |
Referenced by xalib(), and setupAuth().
XrdCmsClient* XrdOfs::Balancer [private] |
Referenced by XrdOfs(), XrdOfsFile::open(), XrdOfsFile::close(), mkdir(), remove(), rename(), Unpersist(), Configure(), and ConfigRedir().
XrdCks* XrdOfs::Cks [private] |
Referenced by XrdOfs(), chksum(), and Configure().
XrdCksConfig* XrdOfs::CksConfig [private] |
Referenced by XrdOfs(), Configure(), and xclib().
int XrdOfs::CksRdsz [private] |
Referenced by XrdOfs(), Configure(), and xcrds().
| char* XrdOfs::ConfigFN |
Referenced by XrdOfs(), Configure(), Config_Display(), ConfigRedir(), setupAuth(), and XrdSfsGetDefaultFileSystem().
XrdOfsHandle * XrdOfs::dummyHandle [static, private] |
Referenced by XrdOfs(), XrdOfsFile::open(), and XrdOfsFile::close().
XrdOfsEvr XrdOfs::evrObject [protected] |
Referenced by XrdOfsFile::open(), and Configure().
XrdOfsEvs* XrdOfs::evsObject [private] |
XrdCmsClient* XrdOfs::Finder [protected] |
Referenced by XrdOfs(), XrdOfsFile::open(), chmod(), exists(), fsctl(), mkdir(), prepare(), remove(), rename(), stat(), truncate(), Forward(), and ConfigRedir().
| struct fwdOpt XrdOfs::fwdCHMOD |
Referenced by chmod(), Configure(), Config_Display(), and xforward().
| struct fwdOpt XrdOfs::fwdMKDIR |
Referenced by mkdir(), Configure(), Config_Display(), and xforward().
| struct fwdOpt XrdOfs::fwdMKPATH |
Referenced by mkdir(), Configure(), and xforward().
| struct fwdOpt XrdOfs::fwdMV |
Referenced by rename(), Configure(), Config_Display(), and xforward().
| struct fwdOpt XrdOfs::fwdRM |
Referenced by remove(), Configure(), Config_Display(), and xforward().
| struct fwdOpt XrdOfs::fwdRMDIR |
Referenced by remove(), Configure(), Config_Display(), and xforward().
| struct fwdOpt XrdOfs::fwdTRUNC |
Referenced by truncate(), Configure(), Config_Display(), and xforward().
| char* XrdOfs::HostName |
Referenced by XrdOfs().
| char* XrdOfs::HostPref |
Referenced by XrdOfs().
char* XrdOfs::locResp [private] |
int XrdOfs::locRlen [private] |
int XrdOfs::MaxDelay = 60 [static] |
Referenced by Stall(), Config_Display(), and xmaxd().
| int XrdOfs::myPort |
Referenced by XrdOfs(), and ConfigRedir().
char* XrdOfs::myRole [private] |
Referenced by XrdOfs(), Configure(), Config_Display(), and xrole().
XrdSysMutex XrdOfs::ocMutex [private] |
Referenced by XrdOfsFile::open(), and XrdOfsFile::close().
| int XrdOfs::Options |
Referenced by Configure(), Config_Display(), ConfigRedir(), ConfigXeq(), xforward(), and xrole().
int XrdOfs::OSSDelay = 30 [static] |
Referenced by Emsg().
| char* XrdOfs::OssLib |
Referenced by Configure(), Config_Display(), and xolib().
int XrdOfs::poscAuto [private] |
Referenced by XrdOfs(), XrdOfsFile::open(), Configure(), Config_Display(), and xpers().
int XrdOfs::poscHold [private] |
Referenced by XrdOfs(), XrdOfsFile::close(), Config_Display(), ConfigPosc(), and xpers().
char* XrdOfs::poscLog [private] |
Referenced by XrdOfs(), Config_Display(), ConfigPosc(), and xpers().
XrdOfsPoscq* XrdOfs::poscQ [private] |
Referenced by XrdOfs(), XrdOfsFile::open(), XrdOfsFile::close(), Unpersist(), Config_Display(), and ConfigPosc().
1.7.5