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 } |
Public Types inherited from XrdSfsFileSystem | |
enum | csFunc { csCalc = 0 , csGet , csSize } |
enum | gpfFunc { gpfCancel =0 , gpfGet , gpfPut } |
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 Member Functions inherited from 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) |
XrdSfsFileSystem () | |
Constructor and Destructor. | |
virtual | ~XrdSfsFileSystem () |
Public Attributes | |
int | Options |
int | myPort |
mode_t | dMask [2] |
mode_t | fMask [2] |
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 |
Protected Attributes inherited from XrdSfsFileSystem | |
uint64_t | FeatureSet |
Adjust features at initialization. | |
Private Attributes | |
char * | myRole |
XrdOfsFSctl_PI * | FSctl_PC |
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 |
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 |
|
private |
|
virtual |
|
virtual |
|
protectedvirtual |
|
virtual |
Notify filesystem that a client has connected.
client | - Client's identify (see common description). |
Reimplemented from XrdSfsFileSystem.
|
private |
|
private |
|
private |
|
private |
|
virtual |
Notify filesystem that a client has disconnected.
client | - Client's identify (see common description). |
Reimplemented from XrdSfsFileSystem.
|
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.
|
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.
|
private |
|
private |
|
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.
|
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.
|
private |
|
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.
|
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.
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.
|
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.
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.
|
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.
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.
|
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 |
|
private |
|
private |
|
private |
|
friend |
Referenced by newDir().
|
friend |
Referenced by newFile().
|
private |
|
private |
|
private |
|
private |
|
private |
char* XrdOfs::ConfigFN |
|
private |
mode_t XrdOfs::dMask[2] |
|
staticprivate |
|
protected |
|
private |
|
protected |
mode_t XrdOfs::fMask[2] |
|
private |
|
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 |
|
static |
XrdNetIF* XrdOfs::myIF |
int XrdOfs::myPort |
|
private |
|
private |
|
private |
|
private |
int XrdOfs::Options |
|
static |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
char* XrdOfs::tpcRdrHost[2] |
int XrdOfs::tpcRdrPort[2] |
|
private |
|
private |