#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 } |
Public Member Functions | |
XrdSfsDirectory * | newDir (char *user=0, int MonID=0) |
XrdSfsFile * | newFile (char *user=0, int MonID=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 |
char * | tpcRdrHost |
int | tpcRdrPort |
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 | 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) |
char * | ConfigTPCDir (XrdSysError &Eroute, const char *xPath) |
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 | Reformat (XrdOucErrInfo &) |
const char * | theRole (int opts) |
int | xcrds (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 &) |
Private Attributes | |
char * | myRole |
XrdAccAuthorize * | Authorization |
XrdCmsClient * | Balancer |
XrdOfsEvs * | evsObject |
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] |
XrdVersionInfo * | myVersion |
XrdSysMutex | ocMutex |
Static Private Attributes | |
static XrdOfsHandle * | dummyHandle |
Friends | |
class | XrdOfsDirectory |
class | XrdOfsFile |
anonymous enum |
XrdOfs::XrdOfs | ( | ) |
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 | |||
) |
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 | ) | [private] |
char* XrdOfs::ConfigTPCDir | ( | XrdSysError & | Eroute, | |
const char * | xPath | |||
) | [private] |
virtual int XrdOfs::Configure | ( | XrdSysError & | , | |
XrdOucEnv * | ||||
) | [virtual] |
virtual int XrdOfs::Configure | ( | XrdSysError & | ) | [virtual] |
virtual int XrdOfs::ConfigXeq | ( | char * | var, | |
XrdOucStream & | , | |||
XrdSysError & | ||||
) | [protected, virtual] |
static int XrdOfs::Emsg | ( | const char * | , | |
XrdOucErrInfo & | , | |||
int | , | |||
const char * | x, | |||
const char * | y = "" | |||
) | [static, protected] |
static int XrdOfs::Emsg | ( | const char * | , | |
XrdOucErrInfo & | , | |||
int | , | |||
const char * | x, | |||
XrdOfsHandle * | hP | |||
) | [static, protected] |
int XrdOfs::exists | ( | const char * | fileName, | |
XrdSfsFileExistence & | exists_flag, | |||
XrdOucErrInfo & | out_error, | |||
const XrdSecEntity * | client, | |||
const char * | opaque = 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, | |
const char * | args, | |||
XrdOucErrInfo & | out_error, | |||
const XrdSecEntity * | client | |||
) |
static int XrdOfs::fsError | ( | XrdOucErrInfo & | myError, | |
int | rc | |||
) | [static, protected] |
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] |
References XrdOfsDirectory.
XrdSfsFile* XrdOfs::newFile | ( | char * | user = 0 , |
|
int | MonID = 0 | |||
) | [inline] |
References XrdOfsFile.
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, | |
mode_t & | mode, | |||
XrdOucErrInfo & | out_error, | |||
const XrdSecEntity * | client, | |||
const char * | opaque = 0 | |||
) |
int XrdOfs::stat | ( | const char * | Name, | |
struct stat * | buf, | |||
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::xcrds | ( | 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] |
friend class XrdOfsDirectory [friend] |
Referenced by newDir().
friend class XrdOfsFile [friend] |
Referenced by newFile().
XrdAccAuthorize* XrdOfs::Authorization [private] |
XrdCmsClient* XrdOfs::Balancer [private] |
XrdCks* XrdOfs::Cks [private] |
bool XrdOfs::CksPfn [private] |
bool XrdOfs::CksRdr [private] |
char* XrdOfs::ConfigFN |
XrdOfsHandle* XrdOfs::dummyHandle [static, private] |
XrdOfsEvr XrdOfs::evrObject [protected] |
XrdOfsEvs* XrdOfs::evsObject [private] |
XrdCmsClient* XrdOfs::Finder [protected] |
struct fwdOpt XrdOfs::fwdCHMOD [read] |
struct fwdOpt XrdOfs::fwdMKDIR [read] |
struct fwdOpt XrdOfs::fwdMKPATH [read] |
struct fwdOpt XrdOfs::fwdMV [read] |
struct fwdOpt XrdOfs::fwdRM [read] |
struct fwdOpt XrdOfs::fwdRMDIR [read] |
struct fwdOpt XrdOfs::fwdTRUNC [read] |
int XrdOfs::MaxDelay [static] |
int XrdOfs::myPort |
char* XrdOfs::myRole [private] |
char XrdOfs::myRType[4] [private] |
XrdVersionInfo* XrdOfs::myVersion [private] |
XrdSysMutex XrdOfs::ocMutex [private] |
XrdOfsConfigPI* XrdOfs::ofsConfig [private] |
int XrdOfs::Options |
int XrdOfs::OSSDelay [static] |
char XrdOfs::OssIsProxy [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] |
char* XrdOfs::tpcRdrHost |