xrootd
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Public Types | Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | Static Private Attributes | Friends | List of all members
XrdOfs Class Reference

#include <XrdOfs.hh>

Inheritance diagram for XrdOfs:
Inheritance graph
[legend]
Collaboration diagram for XrdOfs:
Collaboration graph
[legend]

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
}
 

Public Member Functions

XrdSfsDirectorynewDir (char *user=0, int MonID=0)
 
XrdSfsDirectorynewDir (XrdOucErrInfo &eInfo)
 
XrdSfsFilenewFile (char *user=0, int MonID=0)
 
XrdSfsFilenewFile (XrdOucErrInfo &eInfo)
 
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 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, XrdSfsFSctl &args, XrdOucErrInfo &eInfo, const XrdSecEntity *client=0)
 
int fsctl (const int cmd, const char *args, XrdOucErrInfo &out_error, 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)
 
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
 
char * tpcRdrHost [2]
 
int tpcRdrPort [2]
 
XrdNetIFmyIF
 
struct fwdOpt fwdCHMOD
 
struct fwdOpt fwdMKDIR
 
struct fwdOpt fwdMKPATH
 
struct fwdOpt fwdMV
 
struct fwdOpt fwdRM
 
struct fwdOpt fwdRMDIR
 
struct fwdOpt fwdTRUNC
 
char * ConfigFN
 

Static Public Attributes

static int MaxDelay
 
static int OSSDelay
 

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, 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
 
XrdCmsClientFinder
 

Private Member Functions

int ctlFADel (XrdSfsFACtl &faCtl, XrdOucEnv &faEnv, XrdOucErrInfo &einfo)
 
int ctlFAGet (XrdSfsFACtl &faCtl, XrdOucEnv &faEnv, XrdOucErrInfo &einfo)
 
int ctlFALst (XrdSfsFACtl &faCtl, XrdOucEnv &faEnv, XrdOucErrInfo &einfo)
 
int ctlFASet (XrdSfsFACtl &faCtl, XrdOucEnv &faEnv, XrdOucErrInfo &einfo)
 
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)
 
int ConfigTPC (XrdSysError &Eroute, XrdOucEnv *EnvInfo)
 
int ConfigTPC (XrdSysError &Eroute)
 
char * ConfigTPCDir (XrdSysError &Eroute, const char *sfx, const char *xPath=0)
 
const char * Fname (const char *)
 
int Forward (int &Result, XrdOucErrInfo &Resp, struct fwdOpt &Fwd, const char *arg1=0, const char *arg2=0, XrdOucEnv *Env1=0, XrdOucEnv *Env2=0)
 
int FSctl (XrdOfsFile &file, int cmd, int alen, const char *args, const XrdSecEntity *client)
 
int Reformat (XrdOucErrInfo &)
 
const char * theRole (int opts)
 
int xcrds (XrdOucStream &, XrdSysError &)
 
int xdirl (XrdOucStream &, XrdSysError &)
 
int xexp (XrdOucStream &, XrdSysError &, bool)
 
int xforward (XrdOucStream &, XrdSysError &)
 
int xmaxd (XrdOucStream &, XrdSysError &)
 
int xnmsg (XrdOucStream &, XrdSysError &)
 
int xnot (XrdOucStream &, XrdSysError &)
 
int xpers (XrdOucStream &, XrdSysError &)
 
int xrole (XrdOucStream &, XrdSysError &)
 
int xtpc (XrdOucStream &, XrdSysError &)
 
int xtpcal (XrdOucStream &, XrdSysError &)
 
int xtpcr (XrdOucStream &, XrdSysError &)
 
int xtrace (XrdOucStream &, XrdSysError &)
 
int xatr (XrdOucStream &, XrdSysError &)
 

Private Attributes

char * myRole
 
XrdOfsFSctl_PIFSctl_PI
 
XrdAccAuthorizeAuthorization
 
XrdCmsClientBalancer
 
XrdOfsEvsevsObject
 
XrdOucPListAnchorossRPList
 
XrdOfsPoscqposcQ
 
char * poscLog
 
int poscHold
 
short poscSync
 
signed char poscAuto
 
char ossRW
 
XrdOfsConfigPIofsConfig
 
XrdOfsPrepareprepHandler
 
XrdCksCks
 
bool CksPfn
 
bool CksRdr
 
bool prepAuth
 
char OssIsProxy
 
char myRType [4]
 
uint64_t ossFeatures
 
int usxMaxNsz
 
int usxMaxVsz
 
XrdSysMutex ocMutex
 
bool DirRdr
 
bool reProxy
 
bool OssHasPGrw
 

Static Private Attributes

static XrdOfsHandledummyHandle
 

Friends

class XrdOfsDirectory
 
class XrdOfsFile
 

Member Enumeration Documentation

anonymous enum
Enumerator
Authorize 
XAttrPlug 
isPeer 
isProxy 
isManager 
isServer 
isSuper 
isMeta 
haveRole 
Forwarding 
ThirdPC 
SubCluster 
RdrTPC 

Constructor & Destructor Documentation

XrdOfs::XrdOfs ( )
virtual XrdOfs::~XrdOfs ( )
inlinevirtual

Member Function Documentation

int XrdOfs::chksum ( csFunc  Func,
const char *  csName,
const char *  Path,
XrdOucErrInfo out_error,
const XrdSecEntity client = 0,
const char *  opaque = 0 
)
int XrdOfs::chmod ( const char *  Name,
XrdSfsMode  Mode,
XrdOucErrInfo out_error,
const XrdSecEntity client,
const char *  opaque = 0 
)
void XrdOfs::Config_Cluster ( XrdOss )
void XrdOfs::Config_Display ( XrdSysError )
int XrdOfs::ConfigDispFwd ( char *  buff,
struct fwdOpt Fwd 
)
private
int XrdOfs::ConfigPosc ( XrdSysError Eroute)
private
int XrdOfs::ConfigRedir ( XrdSysError Eroute,
XrdOucEnv EnvInfo 
)
private
int XrdOfs::ConfigTPC ( XrdSysError Eroute,
XrdOucEnv EnvInfo 
)
private
int XrdOfs::ConfigTPC ( XrdSysError Eroute)
private
char* XrdOfs::ConfigTPCDir ( XrdSysError Eroute,
const char *  sfx,
const char *  xPath = 0 
)
private
virtual int XrdOfs::Configure ( XrdSysError )
virtual
virtual int XrdOfs::Configure ( XrdSysError ,
XrdOucEnv  
)
virtual
virtual int XrdOfs::ConfigXeq ( char *  var,
XrdOucStream ,
XrdSysError  
)
protectedvirtual
void XrdOfs::Connect ( const XrdSecEntity client = 0)
int XrdOfs::ctlFADel ( XrdSfsFACtl faCtl,
XrdOucEnv faEnv,
XrdOucErrInfo einfo 
)
private
int XrdOfs::ctlFAGet ( XrdSfsFACtl faCtl,
XrdOucEnv faEnv,
XrdOucErrInfo einfo 
)
private
int XrdOfs::ctlFALst ( XrdSfsFACtl faCtl,
XrdOucEnv faEnv,
XrdOucErrInfo einfo 
)
private
int XrdOfs::ctlFASet ( XrdSfsFACtl faCtl,
XrdOucEnv faEnv,
XrdOucErrInfo einfo 
)
private
void XrdOfs::Disc ( const XrdSecEntity client = 0)
static int XrdOfs::Emsg ( const char *  ,
XrdOucErrInfo ,
int  ,
const char *  x,
XrdOfsHandle hP 
)
staticprotected
static int XrdOfs::Emsg ( const char *  ,
XrdOucErrInfo ,
int  ,
const char *  x,
const char *  y = "" 
)
staticprotected
int XrdOfs::exists ( const char *  fileName,
XrdSfsFileExistence exists_flag,
XrdOucErrInfo out_error,
const XrdSecEntity client,
const char *  opaque = 0 
)
int XrdOfs::FAttr ( XrdSfsFACtl faReq,
XrdOucErrInfo eInfo,
const XrdSecEntity client = 0 
)
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,
XrdOucEnv Env1 = 0,
XrdOucEnv Env2 = 0 
)
private
int XrdOfs::FSctl ( const int  cmd,
XrdSfsFSctl args,
XrdOucErrInfo eInfo,
const XrdSecEntity client = 0 
)
int XrdOfs::fsctl ( const int  cmd,
const char *  args,
XrdOucErrInfo out_error,
const XrdSecEntity client = 0 
)
int XrdOfs::FSctl ( XrdOfsFile file,
int  cmd,
int  alen,
const char *  args,
const XrdSecEntity client 
)
private
static int XrdOfs::fsError ( XrdOucErrInfo myError,
int  rc 
)
staticprotected
int XrdOfs::getStats ( char *  buff,
int  blen 
)
const char* XrdOfs::getVersion ( )
int XrdOfs::mkdir ( const char *  dirName,
XrdSfsMode  Mode,
XrdOucErrInfo out_error,
const XrdSecEntity client,
const char *  opaque = 0 
)
XrdSfsDirectory* XrdOfs::newDir ( char *  user = 0,
int  MonID = 0 
)
inline
XrdSfsDirectory* XrdOfs::newDir ( XrdOucErrInfo eInfo)
inline
XrdSfsFile* XrdOfs::newFile ( char *  user = 0,
int  MonID = 0 
)
inline
XrdSfsFile* XrdOfs::newFile ( XrdOucErrInfo eInfo)
inline
int XrdOfs::prepare ( XrdSfsPrep pargs,
XrdOucErrInfo out_error,
const XrdSecEntity client = 0 
)
int XrdOfs::Reformat ( XrdOucErrInfo )
private
int XrdOfs::rem ( const char *  path,
XrdOucErrInfo out_error,
const XrdSecEntity client,
const char *  info = 0 
)
inline
int XrdOfs::remdir ( const char *  dirName,
XrdOucErrInfo out_error,
const XrdSecEntity client,
const char *  info = 0 
)
inline
int XrdOfs::remove ( const char  type,
const char *  path,
XrdOucErrInfo out_error,
const XrdSecEntity client,
const char *  opaque 
)
private
int XrdOfs::rename ( const char *  oldFileName,
const char *  newFileName,
XrdOucErrInfo out_error,
const XrdSecEntity client,
const char *  infoO = 0,
const char *  infoN = 0 
)
const char* XrdOfs::Split ( const char *  Args,
const char **  Opq,
char *  Path,
int  Plen 
)
protected
int XrdOfs::Stall ( XrdOucErrInfo ,
int  ,
const char *   
)
protected
int XrdOfs::stat ( const char *  Name,
struct stat *  buf,
XrdOucErrInfo out_error,
const XrdSecEntity client,
const char *  opaque = 0 
)
int XrdOfs::stat ( const char *  Name,
mode_t &  mode,
XrdOucErrInfo out_error,
const XrdSecEntity client,
const char *  opaque = 0 
)
const char* XrdOfs::theRole ( int  opts)
private
int XrdOfs::truncate ( const char *  Name,
XrdSfsFileOffset  fileOffset,
XrdOucErrInfo out_error,
const XrdSecEntity client = 0,
const char *  opaque = 0 
)
void XrdOfs::Unpersist ( XrdOfsHandle hP,
int  xcev = 1 
)
protected
char* XrdOfs::WaitTime ( int  ,
char *  ,
int   
)
protected
int XrdOfs::xatr ( XrdOucStream ,
XrdSysError  
)
private
int XrdOfs::xcrds ( XrdOucStream ,
XrdSysError  
)
private
int XrdOfs::xdirl ( XrdOucStream ,
XrdSysError  
)
private
int XrdOfs::xexp ( XrdOucStream ,
XrdSysError ,
bool   
)
private
int XrdOfs::xforward ( XrdOucStream ,
XrdSysError  
)
private
int XrdOfs::xmaxd ( XrdOucStream ,
XrdSysError  
)
private
int XrdOfs::xnmsg ( XrdOucStream ,
XrdSysError  
)
private
int XrdOfs::xnot ( XrdOucStream ,
XrdSysError  
)
private
int XrdOfs::xpers ( XrdOucStream ,
XrdSysError  
)
private
int XrdOfs::xrole ( XrdOucStream ,
XrdSysError  
)
private
int XrdOfs::xtpc ( XrdOucStream ,
XrdSysError  
)
private
int XrdOfs::xtpcal ( XrdOucStream ,
XrdSysError  
)
private
int XrdOfs::xtpcr ( XrdOucStream ,
XrdSysError  
)
private
int XrdOfs::xtrace ( XrdOucStream ,
XrdSysError  
)
private

Friends And Related Function Documentation

friend class XrdOfsDirectory
friend

Referenced by newDir().

friend class XrdOfsFile
friend

Referenced by newFile().

Member Data Documentation

XrdAccAuthorize* XrdOfs::Authorization
private
XrdCmsClient* XrdOfs::Balancer
private
XrdCks* XrdOfs::Cks
private
bool XrdOfs::CksPfn
private
bool XrdOfs::CksRdr
private
char* XrdOfs::ConfigFN
bool XrdOfs::DirRdr
private
XrdOfsHandle* XrdOfs::dummyHandle
staticprivate
XrdOfsEvr XrdOfs::evrObject
protected
XrdOfsEvs* XrdOfs::evsObject
private
XrdCmsClient* XrdOfs::Finder
protected
XrdOfsFSctl_PI* XrdOfs::FSctl_PI
private
struct fwdOpt XrdOfs::fwdCHMOD
struct fwdOpt XrdOfs::fwdMKDIR
struct fwdOpt XrdOfs::fwdMKPATH
struct fwdOpt XrdOfs::fwdMV
struct fwdOpt XrdOfs::fwdRM
struct fwdOpt XrdOfs::fwdRMDIR
struct fwdOpt XrdOfs::fwdTRUNC
int XrdOfs::MaxDelay
static
XrdNetIF* XrdOfs::myIF
int XrdOfs::myPort
char* XrdOfs::myRole
private
char XrdOfs::myRType[4]
private
XrdSysMutex XrdOfs::ocMutex
private
XrdOfsConfigPI* XrdOfs::ofsConfig
private
int XrdOfs::Options
int XrdOfs::OSSDelay
static
uint64_t XrdOfs::ossFeatures
private
bool XrdOfs::OssHasPGrw
private
char XrdOfs::OssIsProxy
private
XrdOucPListAnchor* XrdOfs::ossRPList
private
char XrdOfs::ossRW
private
signed char XrdOfs::poscAuto
private
int XrdOfs::poscHold
private
char* XrdOfs::poscLog
private
XrdOfsPoscq* XrdOfs::poscQ
private
short XrdOfs::poscSync
private
bool XrdOfs::prepAuth
private
XrdOfsPrepare* XrdOfs::prepHandler
private
bool XrdOfs::reProxy
private
char* XrdOfs::tpcRdrHost[2]
int XrdOfs::tpcRdrPort[2]
int XrdOfs::usxMaxNsz
private
int XrdOfs::usxMaxVsz
private

The documentation for this class was generated from the following file: