![]() |
XRootD
|
#include <XrdThrottle.hh>
Public Member Functions | |
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 int | Configure (XrdSysError &, XrdSfsFileSystem *native_fs, XrdOucEnv *envP) |
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 XrdSfsDirectory * | newDir (char *user=0, int monid=0) |
virtual XrdSfsFile * | newFile (char *user=0, int monid=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, mode_t &mode, XrdOucErrInfo &out_error, const XrdSecEntity *client, const char *opaque=0) |
virtual int | stat (const char *Name, struct stat *buf, 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) |
![]() | |
XrdSfsFileSystem () | |
Constructor and Destructor. More... | |
virtual | ~XrdSfsFileSystem () |
uint64_t | Features () |
virtual int | FSctl (const int cmd, XrdSfsFSctl &args, XrdOucErrInfo &eInfo, const XrdSecEntity *client=0) |
virtual XrdSfsDirectory * | newDir (XrdOucErrInfo &eInfo) |
virtual XrdSfsFile * | newFile (XrdOucErrInfo &eInfo) |
Friends | |
XrdSfsFileSystem * | XrdSfsGetFileSystem_Internal (XrdSfsFileSystem *, XrdSysLogger *, const char *, XrdOucEnv *) |
Additional Inherited Members | |
![]() | |
enum | csFunc { csCalc = 0 , csGet , csSize } |
enum | gpfFunc { gpfCancel =0 , gpfGet , gpfPut } |
![]() | |
uint64_t | FeatureSet |
Adjust features at initialization. More... | |
Definition at line 135 of file XrdThrottle.hh.
|
virtual |
Reimplemented from XrdSfsFileSystem.
Definition at line 38 of file XrdThrottleFileSystem.cc.
References XrdSfsFileSystem::chksum().
|
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.
Definition at line 49 of file XrdThrottleFileSystem.cc.
References XrdSfsFileSystem::chmod(), and Mode.
|
virtual |
Definition at line 131 of file XrdThrottleFileSystemConfig.cc.
References XrdCms::Config, XrdSysError::Emsg(), XrdProxy::envP, XrdOucEnv::Export(), XrdOucEnv::GetPtr(), LoadFS(), OFS_NAME, open(), XrdSysError::Say(), XrdThrottleManager::SetMonitor(), and TS_Xeq.
|
virtual |
Notify filesystem that a client has connected.
client | - Client's identify (see common description). |
Reimplemented from XrdSfsFileSystem.
Definition at line 59 of file XrdThrottleFileSystem.cc.
References XrdSfsFileSystem::Connect().
|
virtual |
Notify filesystem that a client has disconnected.
client | - Client's identify (see common description). |
Reimplemented from XrdSfsFileSystem.
Definition at line 65 of file XrdThrottleFileSystem.cc.
References XrdSfsFileSystem::Disc().
|
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.
Definition at line 71 of file XrdThrottleFileSystem.cc.
References XrdSfsFileSystem::EnvInfo(), and XrdProxy::envP.
|
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.
Definition at line 77 of file XrdThrottleFileSystem.cc.
References XrdSfsFileSystem::exists().
|
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.
Definition at line 87 of file XrdThrottleFileSystem.cc.
References XrdSfsFileSystem::FAttr().
|
virtual |
Definition at line 95 of file XrdThrottleFileSystem.cc.
References XrdSfsFileSystem::Features().
|
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.
Definition at line 101 of file XrdThrottleFileSystem.cc.
References XrdSfsFileSystem::fsctl().
|
virtual |
Return maximum checkpoint size.
Reimplemented from XrdSfsFileSystem.
Definition at line 110 of file XrdThrottleFileSystem.cc.
References XrdSfsFileSystem::getChkPSize().
|
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.
Definition at line 116 of file XrdThrottleFileSystem.cc.
References XrdSfsFileSystem::getStats().
|
virtual |
Get version string.
Implements XrdSfsFileSystem.
Definition at line 123 of file XrdThrottleFileSystem.cc.
|
virtual |
Reimplemented from XrdSfsFileSystem.
Definition at line 129 of file XrdThrottleFileSystem.cc.
References XrdSfsFileSystem::gpFile().
|
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.
Definition at line 138 of file XrdThrottleFileSystem.cc.
References XrdSfsFileSystem::mkdir(), and Mode.
|
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.
Definition at line 13 of file XrdThrottleFileSystem.cc.
References XrdSfsFileSystem::newDir().
|
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.
Definition at line 20 of file XrdThrottleFileSystem.cc.
References File, and XrdSfsFileSystem::newFile().
|
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.
Definition at line 148 of file XrdThrottleFileSystem.cc.
References XrdSfsFileSystem::prepare().
|
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.
Definition at line 156 of file XrdThrottleFileSystem.cc.
References XrdSfsFileSystem::rem().
|
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.
Definition at line 165 of file XrdThrottleFileSystem.cc.
References XrdSfsFileSystem::remdir().
|
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.
Definition at line 174 of file XrdThrottleFileSystem.cc.
References XrdSfsFileSystem::rename().
|
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.
Definition at line 195 of file XrdThrottleFileSystem.cc.
References XrdSfsFileSystem::stat().
|
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.
Definition at line 185 of file XrdThrottleFileSystem.cc.
References XrdSfsFileSystem::stat().
|
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.
Definition at line 205 of file XrdThrottleFileSystem.cc.
References XrdSfsFileSystem::truncate().
|
friend |
Definition at line 56 of file XrdThrottleFileSystemConfig.cc.