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 } |
![]() | |
enum | csFunc { csCalc = 0, csGet, csSize } |
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 () |
![]() | |
virtual void | Disc (const XrdSecEntity *client=0) |
virtual void | EnvInfo (XrdOucEnv *envP) |
virtual int | FSctl (const int cmd, XrdSfsFSctl &args, XrdOucErrInfo &eInfo, const XrdSecEntity *client=0) |
XrdSfsFileSystem () | |
Constructor and Destructor. More... | |
virtual | ~XrdSfsFileSystem () |
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 | 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 | ( | ) |
|
inlinevirtual |
|
virtual |
Reimplemented from XrdSfsFileSystem.
|
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.
void XrdOfs::Config_Cluster | ( | XrdOss * | ) |
void XrdOfs::Config_Display | ( | XrdSysError & | ) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
virtual |
|
virtual |
|
protectedvirtual |
|
staticprotected |
|
staticprotected |
|
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.
|
private |
|
private |
|
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). |
Implements XrdSfsFileSystem.
|
staticprotected |
|
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.
|
virtual |
Get version string.
Implements XrdSfsFileSystem.
|
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.
|
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.
References 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.
References XrdOfsFile.
|
virtual |
Preapre 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.
|
private |
|
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.
References remove().
|
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.
References remove().
|
private |
|
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.
|
protected |
|
protected |
|
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.
|
virtual |
Return state information on a file or directory.
path | - 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.
|
private |
|
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.
|
protected |
|
protected |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
friend |
Referenced by newDir().
|
friend |
Referenced by newFile().
|
private |
|
private |
|
private |
|
private |
|
private |
char* XrdOfs::ConfigFN |
|
staticprivate |
|
protected |
|
private |
|
protected |
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 |
|
static |
XrdNetIF* XrdOfs::myIF |
int XrdOfs::myPort |
|
private |
|
private |
|
private |
|
private |
|
private |
int XrdOfs::Options |
|
static |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
char* XrdOfs::tpcRdrHost[2] |
int XrdOfs::tpcRdrPort[2] |