xrootd
|
#include <XrdThrottle.hh>
Public Member Functions | |
virtual XrdSfsDirectory * | newDir (char *user=0, int monid=0) |
virtual XrdSfsFile * | newFile (char *user=0, int monid=0) |
virtual int | chksum (csFunc Func, const char *csName, const char *path, XrdOucErrInfo &eInfo, const XrdSecEntity *client=0, const char *opaque=0) |
virtual int | chmod (const char *Name, XrdSfsMode Mode, XrdOucErrInfo &out_error, const XrdSecEntity *client, const char *opaque=0) |
virtual void | Connect (const XrdSecEntity *client=0) |
virtual void | Disc (const XrdSecEntity *client=0) |
virtual void | EnvInfo (XrdOucEnv *envP) |
virtual int | exists (const char *fileName, XrdSfsFileExistence &exists_flag, XrdOucErrInfo &out_error, const XrdSecEntity *client, const char *opaque=0) |
virtual int | FAttr (XrdSfsFACtl *faReq, XrdOucErrInfo &eInfo, const XrdSecEntity *client=0) |
virtual uint64_t | Features () |
virtual int | fsctl (const int cmd, const char *args, XrdOucErrInfo &out_error, const XrdSecEntity *client) |
virtual int | getChkPSize () |
virtual int | getStats (char *buff, int blen) |
virtual const char * | getVersion () |
virtual int | gpFile (gpfFunc &gpAct, XrdSfsGPFile &gpReq, XrdOucErrInfo &eInfo, const XrdSecEntity *client=0) |
virtual int | mkdir (const char *dirName, XrdSfsMode Mode, XrdOucErrInfo &out_error, const XrdSecEntity *client, const char *opaque=0) |
virtual int | prepare (XrdSfsPrep &pargs, XrdOucErrInfo &out_error, const XrdSecEntity *client=0) |
virtual int | rem (const char *path, XrdOucErrInfo &out_error, const XrdSecEntity *client, const char *info=0) |
virtual int | remdir (const char *dirName, XrdOucErrInfo &out_error, const XrdSecEntity *client, const char *info=0) |
virtual int | rename (const char *oldFileName, const char *newFileName, XrdOucErrInfo &out_error, const XrdSecEntity *client, const char *infoO=0, const char *infoN=0) |
virtual int | stat (const char *Name, struct stat *buf, XrdOucErrInfo &out_error, const XrdSecEntity *client, const char *opaque=0) |
virtual int | stat (const char *Name, mode_t &mode, XrdOucErrInfo &out_error, const XrdSecEntity *client, const char *opaque=0) |
virtual int | truncate (const char *Name, XrdSfsFileOffset fileOffset, XrdOucErrInfo &out_error, const XrdSecEntity *client=0, const char *opaque=0) |
virtual int | Configure (XrdSysError &, XrdSfsFileSystem *native_fs) |
Public Member Functions inherited from XrdSfsFileSystem | |
virtual XrdSfsDirectory * | newDir (XrdOucErrInfo &eInfo) |
virtual XrdSfsFile * | newFile (XrdOucErrInfo &eInfo) |
uint64_t | Features () |
virtual int | FSctl (const int cmd, XrdSfsFSctl &args, XrdOucErrInfo &eInfo, const XrdSecEntity *client=0) |
XrdSfsFileSystem () | |
Constructor and Destructor. | |
virtual | ~XrdSfsFileSystem () |
Private Member Functions | |
FileSystem () | |
virtual | ~FileSystem () |
int | xthrottle (XrdOucStream &Config) |
int | xloadshed (XrdOucStream &Config) |
int | xtrace (XrdOucStream &Config) |
int | xmaxopen (XrdOucStream &Config) |
int | xmaxconn (XrdOucStream &Config) |
Static Private Member Functions | |
static void | Initialize (FileSystem *&fs, XrdSfsFileSystem *native_fs, XrdSysLogger *lp, const char *config_file) |
Private Attributes | |
XrdSysError | m_eroute |
XrdOucTrace | m_trace |
std::string | m_config_file |
XrdSfsFileSystem * | m_sfs_ptr |
bool | m_initialized |
XrdThrottleManager | m_throttle |
XrdVersionInfo * | myVersion |
Static Private Attributes | |
static FileSystem * | m_instance |
Friends | |
XrdSfsFileSystem * | XrdSfsGetFileSystem_Internal (XrdSfsFileSystem *, XrdSysLogger *, const char *) |
Additional Inherited Members | |
Public Types inherited from XrdSfsFileSystem | |
enum | csFunc { csCalc = 0 , csGet , csSize } |
enum | gpfFunc { gpfCancel =0 , gpfGet , gpfPut } |
Protected Attributes inherited from XrdSfsFileSystem | |
uint64_t | FeatureSet |
Adjust features at initialization. | |
|
private |
|
privatevirtual |
|
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.
|
virtual |
|
virtual |
Notify filesystem that a client has connected.
client | - Client's identify (see common description). |
Reimplemented from XrdSfsFileSystem.
|
virtual |
Notify filesystem that a client has disconnected.
client | - Client's identify (see common description). |
Reimplemented from XrdSfsFileSystem.
|
virtual |
Notify filesystem about implmentation dependent environment. This method may be called only once, if at all, right after obtaining this object.
envP | - Pointer to environmental information. |
Reimplemented from XrdSfsFileSystem.
|
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.
|
virtual |
|
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 |
Return maximum checkpoint size.
Reimplemented from XrdSfsFileSystem.
|
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 |
Reimplemented from XrdSfsFileSystem.
|
staticprivate |
|
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.
|
virtual |
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.
|
virtual |
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.
|
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.
|
virtual |
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.
|
virtual |
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.
|
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.
|
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.
|
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.
|
private |
|
private |
|
private |
|
private |
|
private |
|
friend |
|
private |
|
private |
|
private |
|
staticprivate |
|
private |
|
private |
|
private |
|
private |