xrootd
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

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 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]
 
XrdNetIF * myIF
 
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
 
XrdCmsClient * Finder
 

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_PI * FSctl_PI
 
XrdAccAuthorize * Authorization
 
XrdCmsClient * Balancer
 
XrdOfsEvs * evsObject
 
XrdOucPListAnchor * ossRPList
 
XrdOfsPoscq * poscQ
 
char * poscLog
 
int poscHold
 
short poscSync
 
signed char poscAuto
 
char ossRW
 
XrdOfsConfigPI * ofsConfig
 
XrdOfsPrepare * prepHandler
 
XrdCks * Cks
 
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 XrdOfsHandle * dummyHandle
 

Friends

class XrdOfsDirectory
 
class XrdOfsFile
 

Member Enumeration Documentation

◆ anonymous enum

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

Constructor & Destructor Documentation

◆ XrdOfs()

XrdOfs::XrdOfs ( )

◆ ~XrdOfs()

virtual XrdOfs::~XrdOfs ( )
inlinevirtual

Member Function Documentation

◆ chksum()

int XrdOfs::chksum ( csFunc  Func,
const char *  csName,
const char *  Path,
XrdOucErrInfo &  out_error,
const XrdSecEntity *  client = 0,
const char *  opaque = 0 
)

◆ chmod()

int XrdOfs::chmod ( const char *  Name,
XrdSfsMode  Mode,
XrdOucErrInfo &  out_error,
const XrdSecEntity *  client,
const char *  opaque = 0 
)

◆ Config_Cluster()

void XrdOfs::Config_Cluster ( XrdOss *  )

◆ Config_Display()

void XrdOfs::Config_Display ( XrdSysError &  )

◆ ConfigDispFwd()

int XrdOfs::ConfigDispFwd ( char *  buff,
struct fwdOpt &  Fwd 
)
private

◆ ConfigPosc()

int XrdOfs::ConfigPosc ( XrdSysError &  Eroute)
private

◆ ConfigRedir()

int XrdOfs::ConfigRedir ( XrdSysError &  Eroute,
XrdOucEnv *  EnvInfo 
)
private

◆ ConfigTPC() [1/2]

int XrdOfs::ConfigTPC ( XrdSysError &  Eroute,
XrdOucEnv *  EnvInfo 
)
private

◆ ConfigTPC() [2/2]

int XrdOfs::ConfigTPC ( XrdSysError &  Eroute)
private

◆ ConfigTPCDir()

char* XrdOfs::ConfigTPCDir ( XrdSysError &  Eroute,
const char *  sfx,
const char *  xPath = 0 
)
private

◆ Configure() [1/2]

virtual int XrdOfs::Configure ( XrdSysError &  )
virtual

◆ Configure() [2/2]

virtual int XrdOfs::Configure ( XrdSysError &  ,
XrdOucEnv *   
)
virtual

◆ ConfigXeq()

virtual int XrdOfs::ConfigXeq ( char *  var,
XrdOucStream &  ,
XrdSysError &   
)
protectedvirtual

◆ Connect()

void XrdOfs::Connect ( const XrdSecEntity *  client = 0)

◆ ctlFADel()

int XrdOfs::ctlFADel ( XrdSfsFACtl &  faCtl,
XrdOucEnv &  faEnv,
XrdOucErrInfo &  einfo 
)
private

◆ ctlFAGet()

int XrdOfs::ctlFAGet ( XrdSfsFACtl &  faCtl,
XrdOucEnv &  faEnv,
XrdOucErrInfo &  einfo 
)
private

◆ ctlFALst()

int XrdOfs::ctlFALst ( XrdSfsFACtl &  faCtl,
XrdOucEnv &  faEnv,
XrdOucErrInfo &  einfo 
)
private

◆ ctlFASet()

int XrdOfs::ctlFASet ( XrdSfsFACtl &  faCtl,
XrdOucEnv &  faEnv,
XrdOucErrInfo &  einfo 
)
private

◆ Disc()

void XrdOfs::Disc ( const XrdSecEntity *  client = 0)

◆ Emsg() [1/2]

static int XrdOfs::Emsg ( const char *  ,
XrdOucErrInfo &  ,
int  ,
const char *  x,
XrdOfsHandle *  hP 
)
staticprotected

◆ Emsg() [2/2]

static int XrdOfs::Emsg ( const char *  ,
XrdOucErrInfo &  ,
int  ,
const char *  x,
const char *  y = "" 
)
staticprotected

◆ exists()

int XrdOfs::exists ( const char *  fileName,
XrdSfsFileExistence &  exists_flag,
XrdOucErrInfo &  out_error,
const XrdSecEntity *  client,
const char *  opaque = 0 
)

◆ FAttr()

int XrdOfs::FAttr ( XrdSfsFACtl *  faReq,
XrdOucErrInfo &  eInfo,
const XrdSecEntity *  client = 0 
)

◆ Fname()

const char* XrdOfs::Fname ( const char *  )
private

◆ Forward()

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

◆ FSctl() [1/2]

int XrdOfs::FSctl ( const int  cmd,
XrdSfsFSctl &  args,
XrdOucErrInfo &  eInfo,
const XrdSecEntity *  client = 0 
)

◆ fsctl()

int XrdOfs::fsctl ( const int  cmd,
const char *  args,
XrdOucErrInfo &  out_error,
const XrdSecEntity *  client = 0 
)

◆ FSctl() [2/2]

int XrdOfs::FSctl ( XrdOfsFile &  file,
int  cmd,
int  alen,
const char *  args,
const XrdSecEntity *  client 
)
private

◆ fsError()

static int XrdOfs::fsError ( XrdOucErrInfo &  myError,
int  rc 
)
staticprotected

◆ getStats()

int XrdOfs::getStats ( char *  buff,
int  blen 
)

◆ getVersion()

const char* XrdOfs::getVersion ( )

◆ mkdir()

int XrdOfs::mkdir ( const char *  dirName,
XrdSfsMode  Mode,
XrdOucErrInfo &  out_error,
const XrdSecEntity *  client,
const char *  opaque = 0 
)

◆ newDir() [1/2]

XrdSfsDirectory* XrdOfs::newDir ( char *  user = 0,
int  MonID = 0 
)
inline

◆ newDir() [2/2]

XrdSfsDirectory* XrdOfs::newDir ( XrdOucErrInfo &  eInfo)
inline

◆ newFile() [1/2]

XrdSfsFile* XrdOfs::newFile ( char *  user = 0,
int  MonID = 0 
)
inline

◆ newFile() [2/2]

XrdSfsFile* XrdOfs::newFile ( XrdOucErrInfo &  eInfo)
inline

◆ prepare()

int XrdOfs::prepare ( XrdSfsPrep &  pargs,
XrdOucErrInfo &  out_error,
const XrdSecEntity *  client = 0 
)

◆ Reformat()

int XrdOfs::Reformat ( XrdOucErrInfo &  )
private

◆ rem()

int XrdOfs::rem ( const char *  path,
XrdOucErrInfo &  out_error,
const XrdSecEntity *  client,
const char *  info = 0 
)
inline

◆ remdir()

int XrdOfs::remdir ( const char *  dirName,
XrdOucErrInfo &  out_error,
const XrdSecEntity *  client,
const char *  info = 0 
)
inline

◆ remove()

int XrdOfs::remove ( const char  type,
const char *  path,
XrdOucErrInfo &  out_error,
const XrdSecEntity *  client,
const char *  opaque 
)
private

◆ rename()

int XrdOfs::rename ( const char *  oldFileName,
const char *  newFileName,
XrdOucErrInfo &  out_error,
const XrdSecEntity *  client,
const char *  infoO = 0,
const char *  infoN = 0 
)

◆ Split()

const char* XrdOfs::Split ( const char *  Args,
const char **  Opq,
char *  Path,
int  Plen 
)
protected

◆ Stall()

int XrdOfs::Stall ( XrdOucErrInfo &  ,
int  ,
const char *   
)
protected

◆ stat() [1/2]

int XrdOfs::stat ( const char *  Name,
struct stat *  buf,
XrdOucErrInfo &  out_error,
const XrdSecEntity *  client,
const char *  opaque = 0 
)

◆ stat() [2/2]

int XrdOfs::stat ( const char *  Name,
mode_t &  mode,
XrdOucErrInfo &  out_error,
const XrdSecEntity *  client,
const char *  opaque = 0 
)

◆ theRole()

const char* XrdOfs::theRole ( int  opts)
private

◆ truncate()

int XrdOfs::truncate ( const char *  Name,
XrdSfsFileOffset  fileOffset,
XrdOucErrInfo &  out_error,
const XrdSecEntity *  client = 0,
const char *  opaque = 0 
)

◆ Unpersist()

void XrdOfs::Unpersist ( XrdOfsHandle *  hP,
int  xcev = 1 
)
protected

◆ WaitTime()

char* XrdOfs::WaitTime ( int  ,
char *  ,
int   
)
protected

◆ xatr()

int XrdOfs::xatr ( XrdOucStream &  ,
XrdSysError &   
)
private

◆ xcrds()

int XrdOfs::xcrds ( XrdOucStream &  ,
XrdSysError &   
)
private

◆ xdirl()

int XrdOfs::xdirl ( XrdOucStream &  ,
XrdSysError &   
)
private

◆ xexp()

int XrdOfs::xexp ( XrdOucStream &  ,
XrdSysError &  ,
bool   
)
private

◆ xforward()

int XrdOfs::xforward ( XrdOucStream &  ,
XrdSysError &   
)
private

◆ xmaxd()

int XrdOfs::xmaxd ( XrdOucStream &  ,
XrdSysError &   
)
private

◆ xnmsg()

int XrdOfs::xnmsg ( XrdOucStream &  ,
XrdSysError &   
)
private

◆ xnot()

int XrdOfs::xnot ( XrdOucStream &  ,
XrdSysError &   
)
private

◆ xpers()

int XrdOfs::xpers ( XrdOucStream &  ,
XrdSysError &   
)
private

◆ xrole()

int XrdOfs::xrole ( XrdOucStream &  ,
XrdSysError &   
)
private

◆ xtpc()

int XrdOfs::xtpc ( XrdOucStream &  ,
XrdSysError &   
)
private

◆ xtpcal()

int XrdOfs::xtpcal ( XrdOucStream &  ,
XrdSysError &   
)
private

◆ xtpcr()

int XrdOfs::xtpcr ( XrdOucStream &  ,
XrdSysError &   
)
private

◆ xtrace()

int XrdOfs::xtrace ( XrdOucStream &  ,
XrdSysError &   
)
private

Friends And Related Function Documentation

◆ XrdOfsDirectory

friend class XrdOfsDirectory
friend

Referenced by newDir().

◆ XrdOfsFile

friend class XrdOfsFile
friend

Referenced by newFile().

Member Data Documentation

◆ Authorization

XrdAccAuthorize* XrdOfs::Authorization
private

◆ Balancer

XrdCmsClient* XrdOfs::Balancer
private

◆ Cks

XrdCks* XrdOfs::Cks
private

◆ CksPfn

bool XrdOfs::CksPfn
private

◆ CksRdr

bool XrdOfs::CksRdr
private

◆ ConfigFN

char* XrdOfs::ConfigFN

◆ DirRdr

bool XrdOfs::DirRdr
private

◆ dummyHandle

XrdOfsHandle* XrdOfs::dummyHandle
staticprivate

◆ evrObject

XrdOfsEvr XrdOfs::evrObject
protected

◆ evsObject

XrdOfsEvs* XrdOfs::evsObject
private

◆ Finder

XrdCmsClient* XrdOfs::Finder
protected

◆ FSctl_PI

XrdOfsFSctl_PI* XrdOfs::FSctl_PI
private

◆ fwdCHMOD

struct fwdOpt XrdOfs::fwdCHMOD

◆ fwdMKDIR

struct fwdOpt XrdOfs::fwdMKDIR

◆ fwdMKPATH

struct fwdOpt XrdOfs::fwdMKPATH

◆ fwdMV

struct fwdOpt XrdOfs::fwdMV

◆ fwdRM

struct fwdOpt XrdOfs::fwdRM

◆ fwdRMDIR

struct fwdOpt XrdOfs::fwdRMDIR

◆ fwdTRUNC

struct fwdOpt XrdOfs::fwdTRUNC

◆ MaxDelay

int XrdOfs::MaxDelay
static

◆ myIF

XrdNetIF* XrdOfs::myIF

◆ myPort

int XrdOfs::myPort

◆ myRole

char* XrdOfs::myRole
private

◆ myRType

char XrdOfs::myRType[4]
private

◆ ocMutex

XrdSysMutex XrdOfs::ocMutex
private

◆ ofsConfig

XrdOfsConfigPI* XrdOfs::ofsConfig
private

◆ Options

int XrdOfs::Options

◆ OSSDelay

int XrdOfs::OSSDelay
static

◆ ossFeatures

uint64_t XrdOfs::ossFeatures
private

◆ OssHasPGrw

bool XrdOfs::OssHasPGrw
private

◆ OssIsProxy

char XrdOfs::OssIsProxy
private

◆ ossRPList

XrdOucPListAnchor* XrdOfs::ossRPList
private

◆ ossRW

char XrdOfs::ossRW
private

◆ poscAuto

signed char XrdOfs::poscAuto
private

◆ poscHold

int XrdOfs::poscHold
private

◆ poscLog

char* XrdOfs::poscLog
private

◆ poscQ

XrdOfsPoscq* XrdOfs::poscQ
private

◆ poscSync

short XrdOfs::poscSync
private

◆ prepAuth

bool XrdOfs::prepAuth
private

◆ prepHandler

XrdOfsPrepare* XrdOfs::prepHandler
private

◆ reProxy

bool XrdOfs::reProxy
private

◆ tpcRdrHost

char* XrdOfs::tpcRdrHost[2]

◆ tpcRdrPort

int XrdOfs::tpcRdrPort[2]

◆ usxMaxNsz

int XrdOfs::usxMaxNsz
private

◆ usxMaxVsz

int XrdOfs::usxMaxVsz
private

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