#include <XrdOfs.hh>
Inheritance diagram for XrdOfs:
Public Types | |
enum | |
Public Member Functions | |
XrdSfsDirectory * | newDir (char *user=0) |
XrdSfsFile * | newFile (char *user=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 &) |
void | Config_Cluster (XrdOss *) |
void | Config_Display (XrdSysError &) |
XrdOfs () | |
virtual | ~XrdOfs () |
Public Attributes | |
int | Options |
int | myPort |
fwdOpt | fwdCHMOD |
fwdOpt | fwdMKDIR |
fwdOpt | fwdMKPATH |
fwdOpt | fwdMV |
fwdOpt | fwdRM |
fwdOpt | fwdRMDIR |
fwdOpt | fwdTRUNC |
char * | HostName |
char * | HostPref |
char * | ConfigFN |
char * | OssLib |
Static Public Attributes | |
static int | MaxDelay |
static int | OSSDelay |
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) |
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 | xforward (XrdOucStream &, XrdSysError &) |
int | xmaxd (XrdOucStream &, XrdSysError &) |
int | xnmsg (XrdOucStream &, XrdSysError &) |
int | xnot (XrdOucStream &, XrdSysError &) |
int | xolib (XrdOucStream &, XrdSysError &) |
int | xpers (XrdOucStream &, XrdSysError &) |
int | xred (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 |
XrdSysMutex | ocMutex |
Static Private Attributes | |
static XrdOfsHandle * | dummyHandle |
Friends | |
class | XrdOfsDirectory |
class | XrdOfsFile |
Classes | |
struct | fwdOpt |
Definition at line 147 of file XrdOfs.hh.
XrdOfs::XrdOfs | ( | ) |
Definition at line 118 of file XrdOfs.cc.
References XrdOfsHandle::Alloc(), Authorization, Balancer, ConfigFN, dummyHandle, evsObject, Finder, XrdNetDNS::getHostName(), XrdNetDNS::Host2IP(), HostName, HostPref, i, XrdNetDNS::IP2String(), locResp, locRlen, myPort, myRole, poscAuto, poscHold, poscLog, poscQ, sprintf(), and strcpy().
XrdSfsDirectory* XrdOfs::newDir | ( | char * | user = 0 |
) | [inline, virtual] |
XrdSfsFile* XrdOfs::newFile | ( | char * | user = 0 |
) | [inline, virtual] |
int XrdOfs::chmod | ( | const char * | Name, | |
XrdSfsMode | Mode, | |||
XrdOucErrInfo & | out_error, | |||
const XrdSecEntity * | client, | |||
const char * | opaque = 0 | |||
) | [virtual] |
Implements XrdSfsFileSystem.
Definition at line 1150 of file XrdOfs.cc.
References AOP_Chmod, AUTHORIZE, XrdOss::Chmod(), XrdOfsEvs::Chmod, XrdOfs::fwdOpt::Cmd, Emsg(), XrdOfsEvs::Enabled(), EPNAME, evsObject, Finder, Forward(), fsError(), fwdCHMOD, XrdOucErrInfo::getErrUser(), XrdCmsClient::isRemote(), XrdCmsClient::Locate(), XrdOfsEvs::Notify(), S_IAMB, SFS_O_META, SFS_O_RDWR, SFS_OK, sprintf(), tident, XrdOfsFS, XrdOfsOss, and XTRACE.
Referenced by XrdTokenAuthzOfs::chmod().
int XrdOfs::exists | ( | const char * | fileName, | |
XrdSfsFileExistence & | exists_flag, | |||
XrdOucErrInfo & | out_error, | |||
const XrdSecEntity * | client, | |||
const char * | opaque = 0 | |||
) | [virtual] |
Implements XrdSfsFileSystem.
Definition at line 1209 of file XrdOfs.cc.
References AOP_Stat, AUTHORIZE, Emsg(), EPNAME, Finder, fsError(), XrdOucErrInfo::getErrUser(), XrdCmsClient::isRemote(), XrdCmsClient::Locate(), S_ISDIR, S_ISREG, SFS_O_RDONLY, SFS_OK, stat(), XrdOss::Stat(), tident, XrdOfsFS, XrdOfsOss, XrdSfsFileExistIsDirectory, XrdSfsFileExistIsFile, XrdSfsFileExistNo, and XTRACE.
Referenced by XrdTokenAuthzOfs::exists(), and XrdTokenAuthzOfsFile::open().
int XrdOfs::fsctl | ( | const int | cmd, | |
const char * | args, | |||
XrdOucErrInfo & | out_error, | |||
const XrdSecEntity * | client | |||
) | [virtual] |
Implements XrdSfsFileSystem.
Definition at line 1272 of file XrdOfs.cc.
References XrdAccAuthorize::Access(), AOP_Any, AOP_Stat, Authorization, AUTHORIZE, Emsg(), ENOTSUP, EPNAME, Finder, fsError(), XrdOucErrInfo::getErrUser(), i, XrdCmsClient::isRemote(), XrdCmsClient::Locate(), locResp, locRlen, Path, S_IWUSR, SFS_DATA, SFS_FSCTL_CMD, SFS_FSCTL_LOCATE, SFS_FSCTL_STATFS, SFS_FSCTL_STATLS, SFS_FSCTL_STATXA, SFS_O_LOCATE, SFS_O_NOWAIT, SFS_O_RDONLY, SFS_O_RESET, SFS_O_STAT, SFS_O_TRUNC, XrdCmsClient::Space(), stat(), XrdOss::Stat(), XrdOss::StatFS(), XrdOss::StatLS(), XrdOss::StatXA(), strcpy(), tident, XrdAccPriv_All, XrdAccPriv_Delete, XrdAccPriv_Insert, XrdAccPriv_Lock, XrdAccPriv_Lookup, XrdAccPriv_Read, XrdAccPriv_Rename, XrdAccPriv_Write, XrdOfsFS, XrdOfsOss, and XTRACE.
Referenced by XrdTokenAuthzOfs::fsctl().
int XrdOfs::getStats | ( | char * | buff, | |
int | blen | |||
) | [virtual] |
Implements XrdSfsFileSystem.
Definition at line 1400 of file XrdOfs.cc.
References n, OfsStats, XrdOfsStats::Report(), XrdOss::Stats(), and XrdOfsOss.
Referenced by XrdTokenAuthzOfs::getStats().
const char * XrdOfs::getVersion | ( | ) | [virtual] |
Implements XrdSfsFileSystem.
Definition at line 1423 of file XrdOfs.cc.
Referenced by XrdTokenAuthzOfs::getVersion().
int XrdOfs::mkdir | ( | const char * | dirName, | |
XrdSfsMode | Mode, | |||
XrdOucErrInfo & | out_error, | |||
const XrdSecEntity * | client, | |||
const char * | opaque = 0 | |||
) | [virtual] |
Implements XrdSfsFileSystem.
Definition at line 1429 of file XrdOfs.cc.
References AOP_Mkdir, AUTHORIZE, XrdOfs::fwdOpt::Cmd, Emsg(), XrdOfsEvs::Enabled(), EPNAME, evsObject, Finder, Forward(), fsError(), fwdMKDIR, fwdMKPATH, XrdOucErrInfo::getErrUser(), XrdCmsClient::isRemote(), XrdCmsClient::Locate(), XrdOss::Mkdir(), XrdOfsEvs::Mkdir, XrdOfsEvs::Notify(), S_IAMB, SFS_O_CREAT, SFS_O_META, SFS_O_MKPTH, SFS_O_RDWR, SFS_OK, sprintf(), tident, XrdOfsFS, XrdOfsOss, and XTRACE.
Referenced by XrdTokenAuthzOfs::mkdir().
int XrdOfs::prepare | ( | XrdSfsPrep & | pargs, | |
XrdOucErrInfo & | out_error, | |||
const XrdSecEntity * | client = 0 | |||
) | [virtual] |
Implements XrdSfsFileSystem.
Definition at line 1492 of file XrdOfs.cc.
References AOP_Read, AUTHORIZE, EPNAME, Finder, fsError(), XrdOucTList::next, XrdSfsPrep::paths, XrdCmsClient::Prepare(), XrdOucTList::text, and XrdOfsFS.
Referenced by XrdTokenAuthzOfs::prepare().
int XrdOfs::rem | ( | const char * | path, | |
XrdOucErrInfo & | out_error, | |||
const XrdSecEntity * | client, | |||
const char * | info = 0 | |||
) | [inline, virtual] |
Implements XrdSfsFileSystem.
Definition at line 195 of file XrdOfs.hh.
References info, and remove().
Referenced by XrdTokenAuthzOfs::rem().
int XrdOfs::remdir | ( | const char * | dirName, | |
XrdOucErrInfo & | out_error, | |||
const XrdSecEntity * | client, | |||
const char * | info = 0 | |||
) | [inline, virtual] |
Implements XrdSfsFileSystem.
Definition at line 201 of file XrdOfs.hh.
References info, and remove().
Referenced by XrdTokenAuthzOfs::remdir().
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.
Definition at line 1585 of file XrdOfs.cc.
References XrdCmsClient::Added(), AOP_Insert, AOP_Rename, AUTHORIZE2, Balancer, XrdOfs::fwdOpt::Cmd, Emsg(), XrdOfsEvs::Enabled(), EPNAME, evsObject, Finder, Forward(), fsError(), fwdMV, XrdOucErrInfo::getErrUser(), XrdOfsHandle::Hide(), XrdCmsClient::isRemote(), XrdCmsClient::Locate(), XrdOfsEvs::Mv, XrdOfsEvs::Notify(), XrdCmsClient::Removed(), XrdOss::Rename(), SFS_O_META, SFS_O_RDWR, SFS_OK, tident, XrdOfsFS, XrdOfsOss, and XTRACE.
Referenced by XrdTokenAuthzOfs::rename().
int XrdOfs::stat | ( | const char * | Name, | |
struct stat * | buf, | |||
XrdOucErrInfo & | out_error, | |||
const XrdSecEntity * | client, | |||
const char * | opaque = 0 | |||
) | [virtual] |
Implements XrdSfsFileSystem.
Definition at line 1651 of file XrdOfs.cc.
References AOP_Stat, AUTHORIZE, Emsg(), EPNAME, Finder, fsError(), XrdOucErrInfo::getErrUser(), XrdCmsClient::isRemote(), XrdCmsClient::Locate(), SFS_O_RDONLY, SFS_O_STAT, SFS_OK, XrdOss::Stat(), tident, XrdOfsFS, XrdOfsOss, and XTRACE.
Referenced by exists(), fsctl(), XrdTokenAuthzOfs::stat(), and stat().
int XrdOfs::stat | ( | const char * | Name, | |
mode_t & | mode, | |||
XrdOucErrInfo & | out_error, | |||
const XrdSecEntity * | client, | |||
const char * | opaque = 0 | |||
) | [virtual] |
Implements XrdSfsFileSystem.
Definition at line 1693 of file XrdOfs.cc.
References AOP_Stat, AUTHORIZE, Emsg(), EPNAME, Finder, fsError(), XrdOucErrInfo::getErrUser(), XrdCmsClient::isRemote(), XrdCmsClient::Locate(), SFS_O_NOWAIT, SFS_O_RDONLY, SFS_O_STAT, SFS_OK, stat(), XrdOss::Stat(), tident, XrdOfsFS, XrdOfsOss, XRDOSS_resonly, and XTRACE.
int XrdOfs::truncate | ( | const char * | Name, | |
XrdSfsFileOffset | fileOffset, | |||
XrdOucErrInfo & | out_error, | |||
const XrdSecEntity * | client = 0 , |
|||
const char * | opaque = 0 | |||
) | [virtual] |
Implements XrdSfsFileSystem.
Definition at line 1743 of file XrdOfs.cc.
References AOP_Update, AUTHORIZE, XrdOfs::fwdOpt::Cmd, Emsg(), XrdOfsEvs::Enabled(), EPNAME, evsObject, Finder, Forward(), fsError(), fwdTRUNC, XrdOucErrInfo::getErrUser(), XrdCmsClient::isRemote(), XrdCmsClient::Locate(), XrdOfsEvs::Notify(), SFS_O_RDWR, SFS_OK, sprintf(), tident, XrdOfsEvs::Trunc, XrdOss::Truncate(), XrdOfsFS, XrdOfsOss, and XTRACE.
int XrdOfs::Configure | ( | XrdSysError & | ) | [virtual] |
Definition at line 86 of file XrdOfsConfig.cc.
References Authorize, Balancer, XrdFrm::Config(), Config_Display(), ConfigFN, ConfigPosc(), ConfigRedir(), ConfigXeq(), XrdSysError::Emsg(), evrObject, evsObject, XrdOucEnv::Export(), Forwarding, free(), fwdCHMOD, fwdMKDIR, fwdMKPATH, fwdMV, fwdRM, fwdRMDIR, fwdTRUNC, getenv(), haveRole, i, XrdOfsEvr::Init(), isManager, isMeta, isPeer, isProxy, isServer, j, XrdSysError::logger(), myPort, myRole, NULL, OfsStats, open, Options, OssLib, poscAuto, XrdOfs::fwdOpt::Reset(), XrdSysError::Say(), XrdOfsStats::setRole(), setupAuth(), XrdOfsEvs::Start(), strcpy(), strtol(), theRole(), TRACE_debug, TRACE_MOST, XrdOucTrace::What, XrdOfsOss, and XrdOssGetSS().
Referenced by XrdSfsGetDefaultFileSystem(), and XrdSfsGetFileSystem().
void XrdOfs::Config_Cluster | ( | XrdOss * | ) |
void XrdOfs::Config_Display | ( | XrdSysError & | ) |
Definition at line 242 of file XrdOfsConfig.cc.
References AuthLib, Authorize, XrdOfsEvs::Chmod, XrdOfsEvs::Closer, XrdOfsEvs::Closew, ConfigDispFwd(), ConfigFN, XrdOfsEvs::Create, XrdOfsEvs::Enabled(), evsObject, XrdOucEnv::Export(), Forwarding, fwdCHMOD, fwdMKDIR, fwdMV, fwdRM, fwdRMDIR, fwdTRUNC, XrdOfsEvs::Fwrite, i, MaxDelay, XrdOfsEvs::maxLmsg(), XrdOfsEvs::maxSmsg(), XrdOfsEvs::Mkdir, XrdOfsEvs::Mv, myRole, XrdOfsEvs::Openr, XrdOfsEvs::Openw, Options, OssLib, poscAuto, poscHold, poscLog, poscQ, XrdOfsEvs::Prog(), XrdOfsEvs::Rm, XrdOfsEvs::Rmdir, XrdSysError::Say(), setBuff, snprintf, sprintf(), strcat(), XrdOfsEvs::Trunc, and XrdOucTrace::What.
Referenced by Configure(), and XrdSfsGetFileSystem().
int XrdOfs::ConfigXeq | ( | char * | var, | |
XrdOucStream & | , | |||
XrdSysError & | ||||
) | [protected, virtual] |
Definition at line 472 of file XrdOfsConfig.cc.
References Authorize, XrdFrm::Config(), XrdSysError::Emsg(), Options, XrdSysError::Say(), strlcpy(), TS_Bit, TS_Xeq, val, xalib(), xforward(), xmaxd(), xnmsg(), xnot(), xolib(), xpers(), xred(), xrole(), and xtrace().
Referenced by Configure().
int XrdOfs::Emsg | ( | const char * | , | |
XrdOucErrInfo & | , | |||
int | , | |||
const char * | x, | |||
XrdOfsHandle * | hP | |||
) | [static, protected] |
Definition at line 1802 of file XrdOfs.cc.
References XrdOfsHandle::isRW, XrdOfsHandle::Lock(), XrdOfsHandle::Name(), XrdOfsHandle::opPC, SFS_ERROR, XrdOfsHandle::UnLock(), Unpersist(), and XrdOfsFS.
Referenced by chmod(), XrdOfsFile::close(), XrdOfsDirectory::close(), exists(), fsctl(), mkdir(), XrdOfsDirectory::nextEntry(), XrdTokenAuthzOfsFile::open(), XrdOfsDirectory::open(), XrdOfsFile::open(), XrdOfsFile::read(), XrdTokenAuthzOfs::rem(), remove(), rename(), XrdOfsFile::stat(), XrdTokenAuthzOfs::stat(), stat(), XrdOfsFile::sync(), XrdOfsFile::truncate(), truncate(), and XrdOfsFile::write().
int XrdOfs::Emsg | ( | const char * | , | |
XrdOucErrInfo & | , | |||
int | , | |||
const char * | x, | |||
const char * | y = "" | |||
) | [static, protected] |
Definition at line 1830 of file XrdOfs.cc.
References buffer, XrdSysError::ec2text(), XrdSysError::Emsg(), ETIMEDOUT, XrdOucErrInfo::getErrUser(), OfsEroute, OSSDelay, XrdOucErrInfo::setErrInfo(), SFS_ERROR, snprintf, and sprintf().
int XrdOfs::fsError | ( | XrdOucErrInfo & | myError, | |
int | rc | |||
) | [static, protected] |
Definition at line 1914 of file XrdOfs.cc.
References XrdOfsStats::Data, EINPROGRESS, XrdOfsStats::StatsData::numDelays, XrdOfsStats::StatsData::numErrors, XrdOfsStats::StatsData::numRedirect, XrdOfsStats::StatsData::numReplies, XrdOfsStats::StatsData::numStarted, OfsStats, SFS_DATA, SFS_ERROR, SFS_REDIRECT, and SFS_STARTED.
Referenced by chmod(), exists(), Forward(), fsctl(), mkdir(), XrdOfsFile::open(), prepare(), remove(), rename(), stat(), and truncate().
int XrdOfs::Stall | ( | XrdOucErrInfo & | , | |
int | , | |||
const char * | ||||
) | [protected] |
Definition at line 1930 of file XrdOfs.cc.
References EPNAME, Fname(), MaxDelay, XrdOucErrInfo::setErrInfo(), snprintf, tident, WaitTime(), RooFit::What(), and ZTRACE.
Referenced by XrdOfsFile::open().
void XrdOfs::Unpersist | ( | XrdOfsHandle * | hP, | |
int | xcev = 1 | |||
) | [protected] |
Definition at line 1966 of file XrdOfs.cc.
References XrdOfsStats::Add(), Balancer, close, XrdOfsEvs::Closew, XrdOfsStats::Data, XrdOfsPoscq::Del(), XrdSysError::Emsg(), XrdOfsEvs::Enabled(), EPNAME, evsObject, FTRACE, XrdOfsHandle::Name(), XrdOfsEvs::Notify(), XrdOfsStats::StatsData::numUnpsist, OfsEroute, OfsStats, XrdOfsHandle::PoscGet(), poscQ, XrdOfsHandle::PoscUsr(), XrdCmsClient::Removed(), XrdOfsEvs::Rm, tident, XrdOss::Unlink(), XrdOfsFS, and XrdOfsOss.
Referenced by XrdOfsFile::close(), ConfigPosc(), and Emsg().
char * XrdOfs::WaitTime | ( | int | , | |
char * | , | |||
int | ||||
) | [protected] |
int XrdOfs::remove | ( | const char | type, | |
const char * | path, | |||
XrdOucErrInfo & | out_error, | |||
const XrdSecEntity * | client, | |||
const char * | opaque | |||
) | [private] |
Definition at line 1519 of file XrdOfs.cc.
References AOP_Delete, AUTHORIZE, Balancer, Emsg(), XrdOfsEvs::Enabled(), EPNAME, evsObject, Finder, Forward(), fsError(), fwdRM, fwdRMDIR, XrdOucEnv::Get(), XrdOucErrInfo::getErrUser(), XrdOfsHandle::Hide(), XrdCmsClient::isRemote(), XrdCmsClient::Locate(), XrdOfsEvs::Notify(), XrdOss::Remdir(), XrdCmsClient::Removed(), XrdOfsEvs::Rm, XrdOfsEvs::Rmdir, SFS_O_META, SFS_O_WRONLY, SFS_OK, tident, XrdOss::Unlink(), XrdOfsFS, XrdOfsOss, XRDOSS_Online, and XTRACE.
Referenced by XrdTokenAuthzOfs::rem(), rem(), and remdir().
int XrdOfs::ConfigDispFwd | ( | char * | buff, | |
struct fwdOpt & | Fwd | |||
) | [private] |
Definition at line 324 of file XrdOfsConfig.cc.
References XrdOfs::fwdOpt::Cmd, XrdOfs::fwdOpt::Host, n, XrdOfs::fwdOpt::Port, setBuff, and sprintf().
Referenced by Config_Display().
int XrdOfs::ConfigPosc | ( | XrdSysError & | Eroute | ) | [private] |
Definition at line 354 of file XrdOfsConfig.cc.
References XrdOfsPoscq::Request::addT, XrdOfsHandle::Alloc(), XrdOfsPoscq::Del(), XrdSysError::Emsg(), free(), XrdOucUtils::genPath(), getenv(), XrdOfsPoscq::Init(), XrdOucUtils::InstName(), XrdOfsPoscq::Request::LFN, XrdOucUtils::makePath(), XrdOfsHandle::opPC, poscHold, poscLog, poscQ, XrdOfsHandle::PoscSet(), XrdOfsHandle::Retire(), S_IROTH, S_IRWXG, S_IRWXU, S_IXOTH, XrdOss::Unlink(), Unpersist(), XrdOfsPoscq::Request::User, XrdOfsFS, and XrdOfsOss.
Referenced by Configure().
int XrdOfs::ConfigRedir | ( | XrdSysError & | Eroute | ) | [private] |
Definition at line 429 of file XrdOfsConfig.cc.
References Balancer, ConfigFN, XrdCmsClient::Configure(), XrdSysError::Emsg(), Finder, isManager, XrdCms::IsMeta, isMeta, isPeer, isProxy, XrdCms::IsRedir, isRedir(), isServer, XrdCms::IsTarget, XrdSysError::logger(), myPort, and Options.
Referenced by Configure().
const char * XrdOfs::Fname | ( | const char * | ) | [private] |
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] |
Definition at line 1889 of file XrdOfs.cc.
References XrdOfs::fwdOpt::Cmd, Finder, XrdCmsClient::Forward(), fsError(), XrdOfs::fwdOpt::Host, XrdOfs::fwdOpt::Port, XrdOucErrInfo::setErrInfo(), SFS_OK, and SFS_REDIRECT.
Referenced by chmod(), mkdir(), remove(), rename(), and truncate().
int XrdOfs::setupAuth | ( | XrdSysError & | ) | [private] |
Definition at line 1209 of file XrdOfsConfig.cc.
References AuthLib, Authorization, AuthParm, ConfigFN, XrdSysPlugin::getPlugin(), XrdSysError::logger(), XrdAccDefaultAuthorizeObject(), and XrdSysPlugin.
Referenced by Configure().
const char * XrdOfs::theRole | ( | int | opts | ) | [private] |
Definition at line 1242 of file XrdOfsConfig.cc.
References isManager, isPeer, isProxy, and isServer.
Referenced by Configure().
int XrdOfs::xalib | ( | XrdOucStream & | , | |
XrdSysError & | ||||
) | [private] |
Definition at line 518 of file XrdOfsConfig.cc.
References AuthLib, AuthParm, XrdFrm::Config(), XrdSysError::Emsg(), free(), and val.
Referenced by ConfigXeq().
int XrdOfs::xforward | ( | XrdOucStream & | , | |
XrdSysError & | ||||
) | [private] |
Definition at line 559 of file XrdOfsConfig.cc.
References XrdOfs::fwdOpt::Cmd, XrdFrm::Config(), XrdSysError::Emsg(), Forwarding, free(), fwdCHMOD, fwdMKDIR, fwdMKPATH, fwdMV, fwdRM, fwdRMDIR, fwdTRUNC, XrdOfs::fwdOpt::Host, i, Options, XrdOfs::fwdOpt::Port, XrdSysError::Say(), strlcpy(), and val.
Referenced by ConfigXeq().
int XrdOfs::xmaxd | ( | XrdOucStream & | , | |
XrdSysError & | ||||
) | [private] |
Definition at line 675 of file XrdOfsConfig.cc.
References XrdOuca2x::a2i(), XrdFrm::Config(), XrdSysError::Emsg(), MaxDelay, and val.
Referenced by ConfigXeq().
int XrdOfs::xnmsg | ( | XrdOucStream & | , | |
XrdSysError & | ||||
) | [private] |
Definition at line 705 of file XrdOfsConfig.cc.
References XrdOfsEvs::Chmod, XrdOfsEvs::Closer, XrdOfsEvs::Closew, XrdFrm::Config(), XrdOfsEvs::Create, XrdSysError::Emsg(), XrdOfsEvs::Fwrite, i, XrdOfsEvs::Mkdir, XrdOfsEvs::Mv, XrdOfsEvs::Openr, XrdOfsEvs::Openw, XrdOfsEvs::Parse(), XrdOfsEvs::Rm, XrdOfsEvs::Rmdir, XrdSysError::Say(), XrdOfsEvs::Trunc, and val.
Referenced by ConfigXeq().
int XrdOfs::xnot | ( | XrdOucStream & | , | |
XrdSysError & | ||||
) | [private] |
Definition at line 783 of file XrdOfsConfig.cc.
References XrdOuca2x::a2i(), XrdOfsEvs::All, XrdOfsEvs::Chmod, XrdOfsEvs::Close, XrdOfsEvs::Closer, XrdOfsEvs::Closew, XrdFrm::Config(), XrdOfsEvs::Create, XrdSysError::Emsg(), evsObject, XrdOfsEvs::Fwrite, i, XrdOfsEvs::Mkdir, XrdOfsEvs::Mv, XrdOfsEvs::None, XrdOfsEvs::Open, XrdOfsEvs::Openr, XrdOfsEvs::Openw, XrdOfsEvs::Rm, XrdOfsEvs::Rmdir, XrdSysError::Say(), XrdOfsEvs::Trunc, and val.
Referenced by ConfigXeq().
int XrdOfs::xolib | ( | XrdOucStream & | , | |
XrdSysError & | ||||
) | [private] |
Definition at line 873 of file XrdOfsConfig.cc.
References XrdFrm::Config(), XrdSysError::Emsg(), free(), OssLib, strcpy(), and val.
Referenced by ConfigXeq().
int XrdOfs::xpers | ( | XrdOucStream & | , | |
XrdSysError & | ||||
) | [private] |
Definition at line 916 of file XrdOfsConfig.cc.
References XrdOuca2x::a2tm(), XrdFrm::Config(), XrdSysError::Emsg(), free(), poscAuto, poscHold, poscLog, XrdSysError::Say(), and val.
Referenced by ConfigXeq().
int XrdOfs::xred | ( | XrdOucStream & | , | |
XrdSysError & | ||||
) | [private] |
Definition at line 981 of file XrdOfsConfig.cc.
References XrdFrm::Config(), XrdOucUtils::doIf(), getenv(), XrdOucUtils::InstName(), isManager, isProxy, isServer, Options, XrdSysError::Say(), and val.
Referenced by ConfigXeq().
int XrdOfs::xrole | ( | XrdOucStream & | , | |
XrdSysError & | ||||
) | [private] |
Definition at line 1064 of file XrdOfsConfig.cc.
References XrdFrm::Config(), XrdOucUtils::doIf(), XrdSysError::Emsg(), free(), getenv(), haveRole, XrdOucUtils::InstName(), isManager, isMeta, isPeer, isProxy, isServer, isSuper, myRole, Options, strcat(), strcpy(), and val.
Referenced by ConfigXeq().
int XrdOfs::xtrace | ( | XrdOucStream & | , | |
XrdSysError & | ||||
) | [private] |
Definition at line 1148 of file XrdOfsConfig.cc.
References XrdFrm::Config(), XrdSysError::Emsg(), i, XrdSysError::Say(), TRACE_aio, TRACE_ALL, TRACE_chmod, TRACE_close, TRACE_closedir, TRACE_debug, TRACE_delay, TRACE_dir, TRACE_exists, TRACE_fsctl, TRACE_getstats, 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, val, and XrdOucTrace::What.
Referenced by ConfigXeq().
friend class XrdOfsDirectory [friend] |
friend class XrdOfsFile [friend] |
int XrdOfs::Options |
Definition at line 259 of file XrdOfs.hh.
Referenced by Config_Display(), ConfigRedir(), Configure(), ConfigXeq(), xforward(), xred(), and xrole().
int XrdOfs::myPort |
struct fwdOpt XrdOfs::fwdCHMOD |
Definition at line 275 of file XrdOfs.hh.
Referenced by chmod(), Config_Display(), Configure(), and xforward().
struct fwdOpt XrdOfs::fwdMKDIR |
Definition at line 276 of file XrdOfs.hh.
Referenced by Config_Display(), Configure(), mkdir(), and xforward().
struct fwdOpt XrdOfs::fwdMKPATH |
struct fwdOpt XrdOfs::fwdMV |
Definition at line 278 of file XrdOfs.hh.
Referenced by Config_Display(), Configure(), rename(), and xforward().
struct fwdOpt XrdOfs::fwdRM |
Definition at line 279 of file XrdOfs.hh.
Referenced by Config_Display(), Configure(), remove(), and xforward().
struct fwdOpt XrdOfs::fwdRMDIR |
Definition at line 280 of file XrdOfs.hh.
Referenced by Config_Display(), Configure(), remove(), and xforward().
struct fwdOpt XrdOfs::fwdTRUNC |
Definition at line 281 of file XrdOfs.hh.
Referenced by Config_Display(), Configure(), truncate(), and xforward().
int XrdOfs::MaxDelay [static] |
int XrdOfs::OSSDelay [static] |
char* XrdOfs::HostName |
char* XrdOfs::HostPref |
char* XrdOfs::ConfigFN |
Definition at line 288 of file XrdOfs.hh.
Referenced by Config_Display(), ConfigRedir(), Configure(), setupAuth(), XrdOfs(), XrdSfsGetDefaultFileSystem(), and XrdSfsGetFileSystem().
char* XrdOfs::OssLib |
XrdOfsEvr XrdOfs::evrObject [protected] |
XrdCmsClient* XrdOfs::Finder [protected] |
Definition at line 298 of file XrdOfs.hh.
Referenced by chmod(), ConfigRedir(), exists(), Forward(), fsctl(), mkdir(), XrdOfsFile::open(), prepare(), remove(), rename(), stat(), truncate(), and XrdOfs().
char* XrdOfs::AuthLib [private] |
char* XrdOfs::AuthParm [private] |
char* XrdOfs::myRole [private] |
Definition at line 318 of file XrdOfs.hh.
Referenced by Config_Display(), Configure(), XrdOfs(), and xrole().
XrdAccAuthorize* XrdOfs::Authorization [private] |
XrdCmsClient* XrdOfs::Balancer [private] |
Definition at line 320 of file XrdOfs.hh.
Referenced by XrdOfsFile::close(), ConfigRedir(), Configure(), XrdOfsFile::open(), remove(), rename(), Unpersist(), and XrdOfs().
XrdOfsEvs* XrdOfs::evsObject [private] |
Definition at line 321 of file XrdOfs.hh.
Referenced by chmod(), XrdOfsFile::close(), Config_Display(), Configure(), XrdOfsFile::GenFWEvent(), mkdir(), XrdOfsFile::open(), remove(), rename(), XrdOfsFile::truncate(), truncate(), Unpersist(), XrdOfsFile::write(), xnot(), and XrdOfs().
char* XrdOfs::locResp [private] |
int XrdOfs::locRlen [private] |
XrdOfsPoscq* XrdOfs::poscQ [private] |
Definition at line 325 of file XrdOfs.hh.
Referenced by XrdOfsFile::close(), Config_Display(), ConfigPosc(), XrdOfsFile::open(), Unpersist(), and XrdOfs().
char* XrdOfs::poscLog [private] |
Definition at line 326 of file XrdOfs.hh.
Referenced by Config_Display(), ConfigPosc(), xpers(), and XrdOfs().
int XrdOfs::poscHold [private] |
Definition at line 327 of file XrdOfs.hh.
Referenced by XrdOfsFile::close(), Config_Display(), ConfigPosc(), xpers(), and XrdOfs().
int XrdOfs::poscAuto [private] |
Definition at line 328 of file XrdOfs.hh.
Referenced by Config_Display(), Configure(), XrdOfsFile::open(), xpers(), and XrdOfs().
XrdOfsHandle * XrdOfs::dummyHandle [static, private] |
Definition at line 330 of file XrdOfs.hh.
Referenced by XrdOfsFile::close(), XrdOfsFile::open(), XrdOfs(), and XrdOfsFile::XrdOfsFile().
XrdSysMutex XrdOfs::ocMutex [private] |
Definition at line 331 of file XrdOfs.hh.
Referenced by XrdOfsFile::close(), and XrdOfsFile::open().