![]() |
XRootD
|
#include <XrdOfs.hh>
Classes | |
struct | fwdOpt |
Public Types | |
enum | { Authorize = 0x0001 , XAttrPlug = 0x0002 , isPeer = 0x0050 , isProxy = 0x0020 , isManager = 0x0040 , isServer = 0x0080 , isSuper = 0x00C0 , isMeta = 0x0100 , haveRole = 0x01F0 , Forwarding = 0x1000 , ThirdPC = 0x2000 , SubCluster = 0x4000 , RdrTPC = 0x8000 } |
![]() | |
enum | csFunc { csCalc = 0 , csGet , csSize } |
enum | gpfFunc { gpfCancel =0 , gpfGet , gpfPut } |
Public Member Functions | |
XrdOfs () | |
virtual | ~XrdOfs () |
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) |
void | Config_Cluster (XrdOss *) |
void | Config_Display (XrdSysError &) |
virtual int | Configure (XrdSysError &) |
virtual int | Configure (XrdSysError &, XrdOucEnv *) |
void | Connect (const XrdSecEntity *client=0) |
void | Disc (const XrdSecEntity *client=0) |
int | exists (const char *fileName, XrdSfsFileExistence &exists_flag, XrdOucErrInfo &out_error, const XrdSecEntity *client, const char *opaque=0) |
int | FAttr (XrdSfsFACtl *faReq, XrdOucErrInfo &eInfo, const XrdSecEntity *client=0) |
int | fsctl (const int cmd, const char *args, XrdOucErrInfo &out_error, const XrdSecEntity *client=0) |
int | FSctl (const int cmd, XrdSfsFSctl &args, XrdOucErrInfo &eInfo, const XrdSecEntity *client=0) |
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) |
XrdSfsDirectory * | newDir (char *user=0, int MonID=0) |
XrdSfsDirectory * | newDir (XrdOucErrInfo &eInfo) |
XrdSfsFile * | newFile (char *user=0, int MonID=0) |
XrdSfsFile * | newFile (XrdOucErrInfo &eInfo) |
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, mode_t &mode, XrdOucErrInfo &out_error, const XrdSecEntity *client, const char *opaque=0) |
int | stat (const char *Name, struct stat *buf, 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) |
![]() | |
XrdSfsFileSystem () | |
Constructor and Destructor. More... | |
virtual | ~XrdSfsFileSystem () |
virtual void | EnvInfo (XrdOucEnv *envP) |
uint64_t | Features () |
virtual int | getChkPSize () |
virtual int | gpFile (gpfFunc &gpAct, XrdSfsGPFile &gpReq, XrdOucErrInfo &eInfo, const XrdSecEntity *client=0) |
Public Attributes | |
char * | ConfigFN |
mode_t | dMask [2] |
mode_t | fMask [2] |
struct fwdOpt | fwdCHMOD |
struct fwdOpt | fwdMKDIR |
struct fwdOpt | fwdMKPATH |
struct fwdOpt | fwdMV |
struct fwdOpt | fwdRM |
struct fwdOpt | fwdRMDIR |
struct fwdOpt | fwdTRUNC |
XrdNetIF * | myIF |
int | myPort |
int | Options |
char * | tpcRdrHost [2] |
int | tpcRdrPort [2] |
Static Public Attributes | |
static int | MaxDelay = 60 |
static int | OSSDelay = 30 |
Protected Member Functions | |
virtual int | ConfigXeq (char *var, XrdOucStream &, XrdSysError &) |
const char * | Split (const char *Args, const char **Opq, char *Path, int Plen) |
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, const char *y="") |
static int | Emsg (const char *, XrdOucErrInfo &, int, const char *x, XrdOfsHandle *hP) |
static int | fsError (XrdOucErrInfo &myError, int rc) |
Protected Attributes | |
XrdOfsEvr | evrObject |
XrdCmsClient * | Finder |
![]() | |
uint64_t | FeatureSet |
Adjust features at initialization. More... | |
Friends | |
class | XrdOfsDirectory |
class | XrdOfsFile |
anonymous enum |
XrdOfs::XrdOfs | ( | ) |
Definition at line 169 of file XrdOfs.cc.
References XrdOfsHandle::Alloc(), ConfigFN, Finder, kXR_faMaxNlen, kXR_faMaxVlen, and myPort.
|
inlinevirtual |
|
virtual |
Reimplemented from XrdSfsFileSystem.
Definition at line 1783 of file XrdOfs.cc.
References AOP_Stat, AUTHORIZE, XrdCks::Calc(), XrdSfsFileSystem::csCalc, XrdSfsFileSystem::csGet, XrdSfsFileSystem::csSize, Emsg(), ENOATTR, ENODATA, EPNAME, Finder, fsError(), XrdCksData::Get(), XrdCks::Get(), XrdOucErrInfo::getEnv(), XrdOucErrInfo::getErrUser(), XrdCmsClient::isRemote(), XrdOss::Lfn2Pfn(), XrdCmsClient::Locate(), Path, XrdCksData::Set(), XrdOucErrInfo::setErrCode(), XrdOucErrInfo::setErrInfo(), SFS_ERROR, SFS_O_RDONLY, SFS_OK, XrdCks::Size(), stat(), tident, XrdOfsOss, and XTRACE.
|
virtual |
Change file mode settings.
path | - Pointer to the path of the file in question. |
mode | - The new file mode setting. |
eInfo | - The object where error info or results are to be returned. |
client | - Client's identify (see common description). |
opaque | - Path's CGI information (see common description). |
Implements XrdSfsFileSystem.
Definition at line 1894 of file XrdOfs.cc.
References AOP_Chmod, AUTHORIZE, XrdOfsEvs::Chmod, XrdOss::Chmod(), XrdOfs::fwdOpt::Cmd, dMask, Emsg(), XrdOfsEvs::Enabled(), EPNAME, Finder, fMask, fsError(), fwdCHMOD, XrdOucErrInfo::getErrUser(), XrdCmsClient::isRemote(), XrdCmsClient::Locate(), Mode, XrdOfsEvs::Notify(), S_IAMB, SFS_O_META, SFS_O_RDWR, SFS_OK, Stat, stat(), XrdOss::Stat(), tident, XrdOfsFS, XrdOfsOss, and XTRACE.
void XrdOfs::Config_Cluster | ( | XrdOss * | ) |
void XrdOfs::Config_Display | ( | XrdSysError & | Eroute | ) |
Definition at line 413 of file XrdOfsConfig.cc.
References Authorize, XrdOfsEvs::Chmod, XrdOfsEvs::Closer, XrdOfsEvs::Closew, ConfigFN, XrdOfsEvs::Create, XrdOfsConfigPI::Display(), XrdOfsEvs::Enabled(), XrdOucEnv::Export(), Forwarding, fwdCHMOD, fwdMKDIR, fwdMV, fwdRM, fwdRMDIR, fwdTRUNC, XrdOfsEvs::Fwrite, MaxDelay, XrdOfsEvs::maxLmsg(), XrdOfsEvs::maxSmsg(), XrdOfsEvs::Mkdir, XrdOfsEvs::Mv, OfsTrace, XrdOfsEvs::Openr, XrdOfsEvs::Openw, Options, XrdOfsEvs::Prog(), XrdOfsEvs::Rm, XrdOfsEvs::Rmdir, XrdSysError::Say(), setBuff, XrdOfsEvs::Trunc, and XrdSysTrace::What.
Referenced by Configure().
|
virtual |
Definition at line 140 of file XrdOfsConfig.cc.
Referenced by XrdSfsGetDefaultFileSystem().
|
virtual |
Definition at line 142 of file XrdOfsConfig.cc.
References XrdOfsConfigPI::allXXXLib, Authorize, XrdCms::Config, Config_Display(), XrdOfsConfigPI::ConfigCtl(), ConfigFN, XrdOfsFSctl_PI::Configure(), ConfigXeq(), XrdOfsConfigPI::Default(), dMask, XrdSysError::Emsg(), XrdSfsFileSystem::EnvInfo(), evrObject, XrdOucEnv::Export(), XrdOss::Features(), XrdSfsFileSystem::FeatureSet, Finder, fMask, Forwarding, fwdCHMOD, fwdMKDIR, fwdMKPATH, fwdMV, fwdRM, fwdRMDIR, fwdTRUNC, XrdSfs::hasAUTZ, XrdSfs::hasCACH, XrdSfs::hasNAIO, XrdSfs::hasNOSF, XrdSfs::hasPRP2, XrdSfs::hasPRXY, haveRole, XrdOfsConfigCP::Init(), XrdOfsTPC::Init(), XrdOfsEvr::Init(), isManager, isMeta, isPeer, isProxy, isServer, XrdOfsConfigPI::LclCks(), XrdOfsConfigPI::Load(), myIF, XrdOfsConfigPI::New(), ofsSchedP, OfsStats, OfsTrace, open(), Options, XrdOfsConfigPI::OssCks(), XrdOfsConfigPI::Plugin(), XrdOfsConfigPI::PrepAuth(), XrdOucEnv::PutPtr(), XrdOfs::fwdOpt::Reset(), XrdSysError::Say(), XrdOfsStats::setRole(), XrdOfsEvs::Start(), XrdOfsConfigPI::theCksLib, XrdOfsConfigPI::theOssLib, ThirdPC, TRACE_debug, TRACE_MOST, XrdSysTrace::What, XrdOfsFS, XrdOfsOss, XRDOSS_HASCACH, XRDOSS_HASNAIO, XRDOSS_HASNOSF, XRDOSS_HASPGRW, and XRDOSS_HASPRXY.
|
protectedvirtual |
Definition at line 798 of file XrdOfsConfig.cc.
References Authorize, XrdCms::Config, XrdSysError::Emsg(), Options, XrdOfsConfigCP::Parse(), XrdSysError::Say(), strlcpy(), SubCluster, TS_Bit, TS_Xeq, and TS_XPI.
Referenced by Configure().
|
virtual |
Notify filesystem that a client has connected.
client | - Client's identify (see common description). |
Reimplemented from XrdSfsFileSystem.
Definition at line 1962 of file XrdOfs.cc.
References XrdOss::Connect(), and XrdOfsOss.
|
virtual |
Notify filesystem that a client has disconnected.
client | - Client's identify (see common description). |
Reimplemented from XrdSfsFileSystem.
Definition at line 1975 of file XrdOfs.cc.
References XrdOss::Disc(), and XrdOfsOss.
|
staticprotected |
Definition at line 2541 of file XrdOfs.cc.
References XrdSysError::Emsg(), XrdOucERoute::Format(), XrdOucErrInfo::getErrUser(), OfsEroute, OSSDelay, XrdOucErrInfo::setErrInfo(), and SFS_ERROR.
|
staticprotected |
Definition at line 2513 of file XrdOfs.cc.
References XrdOfsHandle::isRW, XrdOfsHandle::Lock(), XrdOfsHandle::Name(), XrdOfsHandle::opPC, SFS_ERROR, XrdOfsHandle::UnLock(), Unpersist(), and XrdOfsFS.
Referenced by XrdOfsDirectory::autoStat(), XrdOfsFile::checkpoint(), chksum(), chmod(), XrdOfsDirectory::close(), XrdOfsFile::close(), exists(), FAttr(), fsctl(), FSctl(), mkdir(), XrdOfsDirectory::nextEntry(), XrdOfsDirectory::open(), XrdOfsFile::open(), XrdOfsFile::pgRead(), XrdOfsFile::pgWrite(), XrdOfsFile::read(), XrdOfsFile::readv(), rename(), stat(), XrdOfsFile::stat(), XrdOfsFile::sync(), truncate(), XrdOfsFile::truncate(), and XrdOfsFile::write().
|
virtual |
Return directory/file existence information (short stat).
path | - Pointer to the path of the file/directory in question. |
eFlag | - Where the results are to be returned. |
eInfo | - The object where error info is to be returned. |
client | - Client's identify (see common description). |
opaque | - Path's CGI information (see common description). |
Implements XrdSfsFileSystem.
Definition at line 1988 of file XrdOfs.cc.
References AOP_Stat, AUTHORIZE, Emsg(), EPNAME, Finder, fsError(), fstat(), XrdOucErrInfo::getErrUser(), XrdCmsClient::isRemote(), XrdCmsClient::Locate(), SFS_O_RDONLY, SFS_OK, stat(), XrdOss::Stat(), tident, XrdOfsFS, XrdOfsOss, XrdSfsFileExistIsDirectory, XrdSfsFileExistIsFile, XrdSfsFileExistNo, and XTRACE.
Referenced by rename().
|
virtual |
Perform a filesystem extended attribute function.
faReq | - pointer to the request object (see XrdSfsFAttr.hh). If the pointer is nill, simply return whether or not extended attributes are supported. |
eInfo | - The object where error info or results are to be returned. |
client | - Client's identify (see common description). |
Reimplemented from XrdSfsFileSystem.
Definition at line 195 of file XrdOfsFAttr.cc.
References XrdSfsFACtl::accChk, AOP_Read, AOP_Update, AUTHORIZE, Emsg(), XrdProxy::envP, XrdSfsFACtl::envP, EPNAME, XrdSfsFACtl::faDel, XrdSfsFACtl::faGet, XrdSfsFACtl::faLst, XrdSfsFACtl::faSet, XrdOucPListAnchor::Find(), Finder, fsctl(), XrdOss::FSctl(), fsError(), XrdOucErrInfo::getEnv(), XrdOucErrInfo::getErrUser(), XrdCmsClient::isRemote(), XrdOss::Lfn2Pfn(), XrdCmsClient::Locate(), XrdSfsFACtl::opts, XrdSfsFACtl::path, XrdSfsFACtl::pcgi, XrdSfsFACtl::pfnP, XrdOucEnv::PutInt(), XrdSfsFACtl::rqst, XrdOucErrInfo::setErrInfo(), SFS_ERROR, SFS_O_RDWR, SFS_OK, tident, XRDEXP_NOTRW, XRDEXP_NOXATTR, XrdOfsFS, XrdOfsOss, XRDOSS_FSCTLFA, and ZTRACE.
|
virtual |
Perform a filesystem control operation (version 1)
cmd | - The operation to be performed: SFS_FSCTL_LOCATE Locate a file or file servers SFS_FSCTL_STATCC Return cluster config status SFS_FSCTL_STATFS Return physical filesystem information SFS_FSCTL_STATLS Return logical filesystem information SFS_FSCTL_STATXA Return extended attributes |
args | - Arguments specific to cmd. SFS_FSCTL_LOCATE args points to the path to be located "" path is the first exported path "*" return all current servers "*‍/" return servers exporting path o/w return servers having the path SFS_FSCTL_STATFS Path in the filesystem in question. SFS_FSCTL_STATLS Path in the filesystem in question. SFS_FSCTL_STATXA Path of the file whose xattr is wanted. |
eInfo | - The object where error info or results are to be returned. |
client | - Client's identify (see common description). |
Implements XrdSfsFileSystem.
Definition at line 93 of file XrdOfsFSctl.cc.
References XrdAccAuthorize::Access(), AOP_Any, AOP_Stat, AUTHORIZE, Emsg(), EPNAME, Finder, fsError(), fstat(), XrdNetIF::GetDest(), XrdOucErrInfo::getErrUser(), XrdNetIF::GetIFType(), XrdOucErrInfo::getMsgBuff(), XrdOucErrInfo::getUCap(), XrdCmsClient::isRemote(), XrdCmsClient::Locate(), myIF, Path, XrdOucEnv::Put(), XrdOucErrInfo::setErrCode(), XrdOucErrInfo::setErrInfo(), SFS_DATA, SFS_ERROR, SFS_FSCTL_CMD, SFS_FSCTL_LOCATE, SFS_FSCTL_STATCC, SFS_FSCTL_STATFS, SFS_FSCTL_STATLS, SFS_FSCTL_STATXA, SFS_O_DIRLIST, SFS_O_FORCE, SFS_O_HNAME, SFS_O_LOCAL, SFS_O_LOCATE, SFS_O_NOWAIT, SFS_O_RAWIO, SFS_O_RDONLY, SFS_O_RESET, SFS_O_STAT, SFS_O_TRUNC, XrdCmsClient::Space(), Split(), stat(), XrdOss::Stat(), XrdOss::StatFS(), XrdOss::StatLS(), XrdOss::StatXA(), tident, XrdOucEI::uIPv4, XrdOucEI::uIPv64, XrdOucEI::uPrip, XrdAccPriv_All, XrdAccPriv_Delete, XrdAccPriv_Insert, XrdAccPriv_Lock, XrdAccPriv_Lookup, XrdAccPriv_Read, XrdAccPriv_Rename, XrdAccPriv_Write, XrdOfsFS, XrdOfsOss, and ZTRACE.
Referenced by FAttr().
|
virtual |
Perform a filesystem control operation (version 2)
cmd | - The operation to be performed: SFS_FSCTL_PLUGIN Return Implementation Dependent Data v1 SFS_FSCTL_PLUGIO Return Implementation Dependent Data v2 |
args | - Arguments specific to cmd. SFS_FSCTL_PLUGIN path and opaque information. SFS_FSCTL_PLUGIO Unscreened argument string. |
eInfo | - The object where error info or results are to be returned. |
client | - Client's identify (see common description). |
Reimplemented from XrdSfsFileSystem.
Definition at line 263 of file XrdOfsFSctl.cc.
References AOP_Read, XrdSfsFSctl::Arg2Len, AUTHORIZE, Emsg(), EPNAME, XrdOfsFSctl_PI::FSctl(), SFS_FSCTL_PLUGXC, and XrdOfsFS.
Referenced by XrdOfsFile::fctl().
|
staticprotected |
Definition at line 2628 of file XrdOfs.cc.
References XrdOfsStats::Data, 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 chksum(), chmod(), exists(), FAttr(), fsctl(), mkdir(), XrdOfsDirectory::open(), XrdOfsFile::open(), prepare(), rename(), stat(), and truncate().
|
virtual |
Return statistical information.
buff | - Pointer to the buffer where results are to be returned. Statistics should be in standard XML format. If buff is nil then only maximum size information is wanted. |
blen | - The length available in buff. |
Implements XrdSfsFileSystem.
Definition at line 2051 of file XrdOfs.cc.
References OfsStats, XrdOfsStats::Report(), XrdOss::Stats(), and XrdOfsOss.
|
virtual |
Get version string.
Implements XrdSfsFileSystem.
Definition at line 134 of file XrdOfsConfig.cc.
|
virtual |
Create a directory.
path | - Pointer to the path of the directory to be created. |
mode | - The directory mode setting. |
eInfo | - The object where error info is to be returned. |
client | - Client's identify (see common description). |
opaque | - Path's CGI information (see common description). |
Implements XrdSfsFileSystem.
Definition at line 2074 of file XrdOfs.cc.
References XrdCmsClient::Added(), AOP_Mkdir, AUTHORIZE, XrdOfs::fwdOpt::Cmd, dMask, Emsg(), XrdOfsEvs::Enabled(), EPNAME, Finder, fsError(), fwdMKDIR, fwdMKPATH, XrdOucErrInfo::getErrUser(), XrdCmsClient::isRemote(), XrdCmsClient::Locate(), XrdOfsEvs::Mkdir, XrdOss::Mkdir(), Mode, XrdOfsEvs::Notify(), SFS_O_CREAT, SFS_O_META, SFS_O_MKPTH, SFS_O_RDWR, SFS_OK, tident, XrdOfsFS, XrdOfsOss, and XTRACE.
|
inlinevirtual |
Obtain a new director object to be used for future directory requests.
user | - Text identifying the client responsible for this call. The pointer may be null if identification is missing. |
MonID | - The monitoring identifier assigned to this and all future requests using the returned object. |
Implements XrdSfsFileSystem.
Definition at line 244 of file XrdOfs.hh.
|
inlinevirtual |
Obtain a new wrapped directory object to be used for future requests.
eInfo | - Reference to the error object to be used by the new directory object. Note that an implementation is supplied for compatibility purposes but it returns a nil pointer which is considered to be a failure. You must supply an implementation for this to work correctly. |
Reimplemented from XrdSfsFileSystem.
Definition at line 247 of file XrdOfs.hh.
References XrdOucErrInfo::getErrUser(), and XrdOfsDirectory.
|
inlinevirtual |
Obtain a new file object to be used for a future file requests.
user | - Text identifying the client responsible for this call. The pointer may be null if identification is missing. |
MonID | - The monitoring identifier assigned to this and all future requests using the returned object. |
Implements XrdSfsFileSystem.
Definition at line 250 of file XrdOfs.hh.
|
inlinevirtual |
Obtain a new wrapped file object to be used for a future requests.
eInfo | - Reference to the error object to be used by the new file object. Note that an implementation is supplied for compatibility purposes but it returns a nil pointer which is considered to be a failure. You must supply an implementation for this to work correctly. |
Reimplemented from XrdSfsFileSystem.
Definition at line 253 of file XrdOfs.hh.
References XrdOucErrInfo::getErrUser(), and XrdOfsFile.
|
virtual |
Prepare a file for future processing.
pargs | - The preapre arguments. |
eInfo | - The object where error info is to be returned. |
client | - Client's identify (see common description). |
Implements XrdSfsFileSystem.
Definition at line 2149 of file XrdOfs.cc.
References AOP_Read, AUTHORIZE, XrdOfsPrepare::begin(), XrdOfsPrepare::cancel(), EPNAME, Finder, fsError(), XrdOucTList::next, XrdSfsPrep::opts, XrdSfsPrep::paths, Prep_CANCEL, Prep_QUERY, XrdCmsClient::Prepare(), XrdOfsPrepare::query(), XrdOucTList::text, and XrdOfsFS.
|
inlinevirtual |
Remove a file.
path | - Pointer to the path of the file to be removed. |
eInfo | - The object where error info is to be returned. |
client | - Client's identify (see common description). |
opaque | - Path's CGI information (see common description). |
Implements XrdSfsFileSystem.
|
inlinevirtual |
Remove a directory.
path | - Pointer to the path of the directory to be removed. |
eInfo | - The object where error info is to be returned. |
client | - Client's identify (see common description). |
opaque | - Path's CGI information (see common description). |
Implements XrdSfsFileSystem.
|
virtual |
Rename a file or directory.
oPath | - Pointer to the path to be renamed. |
nPath | - Pointer to the path oPath is to have. |
eInfo | - The object where error info is to be returned. |
client | - Client's identify (see common description). |
opaqueO | - oPath's CGI information (see common description). |
opaqueN | - nPath's CGI information (see common description). |
Implements XrdSfsFileSystem.
Definition at line 2257 of file XrdOfs.cc.
References XrdAccAuthorize::Access(), XrdSecEntityAttr::Add(), XrdCmsClient::Added(), AOP_Excl_Insert, AOP_Insert, AOP_Rename, AUTHORIZE, XrdOfs::fwdOpt::Cmd, XrdSecEntity::eaAPI, Emsg(), XrdOfsEvs::Enabled(), EPNAME, exists(), Finder, fsError(), fwdMV, XrdOucErrInfo::getErrInfo(), XrdOucErrInfo::getErrUser(), XrdOfsHandle::Hide(), XrdCmsClient::isRemote(), XrdCmsClient::Locate(), XrdOfsEvs::Mv, XrdOfsEvs::Notify(), XrdCmsClient::Removed(), XrdOss::Rename(), XrdOucErrInfo::setErrInfo(), SFS_O_META, SFS_O_RDWR, SFS_OK, tident, XrdOfsFS, XrdOfsOss, XrdSfsFileExistNo, and XTRACE.
|
protected |
|
protected |
Definition at line 2702 of file XrdOfs.cc.
References EPNAME, MaxDelay, XrdOucErrInfo::setErrInfo(), tident, WaitTime(), and ZTRACE.
Referenced by XrdOfsFile::open().
|
virtual |
Return mode information on a file or directory.
path | - Pointer to the path in question. |
mode | - Where full mode information is to be returned. |
eInfo | - The object where error info is to be returned. |
client | - Client's identify (see common description). |
opaque | - path's CGI information (see common description). |
Implements XrdSfsFileSystem.
Definition at line 2403 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.
|
virtual |
Return state information on a file or directory.
Name | - Pointer to the path in question. |
buf | - Pointer to the structure where info it to be returned. |
eInfo | - The object where error info is to be returned. |
client | - Client's identify (see common description). |
opaque | - path's CGI information (see common description). |
Implements XrdSfsFileSystem.
Definition at line 2361 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 chksum(), chmod(), exists(), fsctl(), and stat().
|
virtual |
Truncate a file.
path | - Pointer to the path of the file to be truncated. |
fsize | - The size that the file is to have. |
eInfo | - The object where error info is to be returned. |
client | - Client's identify (see common description). |
opaque | - path's CGI information (see common description). |
Implements XrdSfsFileSystem.
Definition at line 2454 of file XrdOfs.cc.
References AOP_Update, AUTHORIZE, XrdOfs::fwdOpt::Cmd, Emsg(), XrdOfsEvs::Enabled(), EPNAME, Finder, fsError(), fwdTRUNC, XrdOucErrInfo::getErrUser(), XrdCmsClient::isRemote(), XrdCmsClient::Locate(), XrdOfsEvs::Notify(), SFS_O_RDWR, SFS_OK, tident, XrdOfsEvs::Trunc, XrdOss::Truncate(), XrdOfsFS, XrdOfsOss, and XTRACE.
|
protected |
Definition at line 2738 of file XrdOfs.cc.
References XrdOfsStats::Add(), close, XrdOfsEvs::Closew, XrdOfsStats::Data, XrdOfsPoscq::Del(), XrdSysError::Emsg(), XrdOfsEvs::Enabled(), EPNAME, FTRACE, XrdOfsHandle::Name(), XrdOfsEvs::Notify(), XrdOfsStats::StatsData::numUnpsist, OfsEroute, OfsStats, XrdOfsHandle::PoscGet(), XrdOfsHandle::PoscUsr(), XrdCmsClient::Removed(), XrdOfsEvs::Rm, tident, XrdOss::Unlink(), XrdOfsFS, and XrdOfsOss.
Referenced by XrdOfsFile::close(), and Emsg().
|
protected |
|
friend |
|
friend |
char* XrdOfs::ConfigFN |
Definition at line 420 of file XrdOfs.hh.
Referenced by XrdOfs(), Config_Display(), Configure(), and XrdSfsGetDefaultFileSystem().
mode_t XrdOfs::dMask[2] |
Definition at line 384 of file XrdOfs.hh.
Referenced by chmod(), Configure(), and mkdir().
|
protected |
Definition at line 428 of file XrdOfs.hh.
Referenced by Configure(), and XrdOfsFile::open().
|
protected |
Definition at line 429 of file XrdOfs.hh.
Referenced by XrdOfs(), chksum(), chmod(), Configure(), exists(), FAttr(), fsctl(), mkdir(), XrdOfsDirectory::open(), XrdOfsFile::open(), prepare(), rename(), stat(), and truncate().
mode_t XrdOfs::fMask[2] |
Definition at line 385 of file XrdOfs.hh.
Referenced by chmod(), Configure(), and XrdOfsFile::open().
struct fwdOpt XrdOfs::fwdCHMOD |
Definition at line 394 of file XrdOfs.hh.
Referenced by chmod(), Config_Display(), and Configure().
struct fwdOpt XrdOfs::fwdMKDIR |
Definition at line 394 of file XrdOfs.hh.
Referenced by Config_Display(), Configure(), and mkdir().
struct fwdOpt XrdOfs::fwdMKPATH |
Definition at line 394 of file XrdOfs.hh.
Referenced by Configure(), and mkdir().
struct fwdOpt XrdOfs::fwdMV |
Definition at line 394 of file XrdOfs.hh.
Referenced by Config_Display(), Configure(), and rename().
struct fwdOpt XrdOfs::fwdRM |
Definition at line 394 of file XrdOfs.hh.
Referenced by Config_Display(), and Configure().
struct fwdOpt XrdOfs::fwdRMDIR |
Definition at line 394 of file XrdOfs.hh.
Referenced by Config_Display(), and Configure().
struct fwdOpt XrdOfs::fwdTRUNC |
Definition at line 394 of file XrdOfs.hh.
Referenced by Config_Display(), Configure(), and truncate().
|
static |
Definition at line 417 of file XrdOfs.hh.
Referenced by Config_Display(), and Stall().
XrdNetIF* XrdOfs::myIF |
Definition at line 394 of file XrdOfs.hh.
Referenced by Configure(), and fsctl().
int XrdOfs::Options |
Definition at line 379 of file XrdOfs.hh.
Referenced by Config_Display(), Configure(), ConfigXeq(), and XrdOfsFile::open().
char* XrdOfs::tpcRdrHost[2] |
Definition at line 389 of file XrdOfs.hh.
Referenced by XrdOfsFile::open().
int XrdOfs::tpcRdrPort[2] |
Definition at line 390 of file XrdOfs.hh.
Referenced by XrdOfsFile::open().