xrootd
|
#include <XrdSsiSfs.hh>
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 &eInfo, const XrdSecEntity *client=0, const char *opaque=0) |
int | chmod (const char *Name, XrdSfsMode Mode, XrdOucErrInfo &eInfo, const XrdSecEntity *client, const char *opaque=0) |
int | exists (const char *fileName, XrdSfsFileExistence &exists_flag, XrdOucErrInfo &eInfo, const XrdSecEntity *client, const char *opaque=0) |
int | fsctl (const int cmd, const char *args, XrdOucErrInfo &eInfo, const XrdSecEntity *client) |
int | getStats (char *buff, int blen) |
const char * | getVersion () |
int | mkdir (const char *dirName, XrdSfsMode Mode, XrdOucErrInfo &eInfo, const XrdSecEntity *client, const char *opaque=0) |
int | prepare (XrdSfsPrep &pargs, XrdOucErrInfo &eInfo, const XrdSecEntity *client=0) |
int | rem (const char *path, XrdOucErrInfo &eInfo, const XrdSecEntity *client, const char *info=0) |
int | remdir (const char *dirName, XrdOucErrInfo &eInfo, const XrdSecEntity *client, const char *info=0) |
int | rename (const char *oldFileName, const char *newFileName, XrdOucErrInfo &eInfo, const XrdSecEntity *client, const char *infoO=0, const char *infoN=0) |
int | stat (const char *Name, struct stat *buf, XrdOucErrInfo &eInfo, const XrdSecEntity *client, const char *opaque=0) |
int | stat (const char *Name, mode_t &mode, XrdOucErrInfo &eInfo, const XrdSecEntity *client, const char *opaque=0) |
int | truncate (const char *Name, XrdSfsFileOffset fileOffset, XrdOucErrInfo &eInfo, const XrdSecEntity *client=0, const char *opaque=0) |
void | setFeatures (XrdSfsFileSystem *prevFS) |
XrdSsiSfs () | |
virtual | ~XrdSsiSfs () |
Public Member Functions inherited from XrdSfsFileSystem | |
virtual XrdSfsDirectory * | newDir (XrdOucErrInfo &eInfo) |
virtual XrdSfsFile * | newFile (XrdOucErrInfo &eInfo) |
virtual void | Connect (const XrdSecEntity *client=0) |
virtual void | Disc (const XrdSecEntity *client=0) |
virtual void | EnvInfo (XrdOucEnv *envP) |
virtual int | FAttr (XrdSfsFACtl *faReq, XrdOucErrInfo &eInfo, const XrdSecEntity *client=0) |
uint64_t | Features () |
virtual int | FSctl (const int cmd, XrdSfsFSctl &args, XrdOucErrInfo &eInfo, const XrdSecEntity *client=0) |
virtual int | getChkPSize () |
virtual int | gpFile (gpfFunc &gpAct, XrdSfsGPFile &gpReq, XrdOucErrInfo &eInfo, const XrdSecEntity *client=0) |
XrdSfsFileSystem () | |
Constructor and Destructor. | |
virtual | ~XrdSfsFileSystem () |
Static Public Member Functions | |
static void | setMax (int mVal) |
Private Member Functions | |
int | Emsg (const char *pfx, XrdOucErrInfo &einfo, int ecode, const char *op, const char *target) |
const char * | Split (const char *Args, const char **Opq, char *Path, int Plen) |
Static Private Attributes | |
static int | freeMax |
Friends | |
class | XrdSsiFile |
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. | |
|
inline |
|
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.
|
private |
|
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 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 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 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 XrdSsiFile.
|
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.
void XrdSsiSfs::setFeatures | ( | XrdSfsFileSystem * | prevFS | ) |
|
inlinestatic |
References freeMax.
|
private |
|
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.
|
friend |
Referenced by newFile().
|
staticprivate |
Referenced by setMax().