![]() |
XRootD
|
#include <XrdSsiSfs.hh>
Public Member Functions | |
XrdSsiSfs () | |
virtual | ~XrdSsiSfs () |
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) |
XrdSfsDirectory * | newDir (char *user=0, int MonID=0) |
XrdSfsFile * | newFile (char *user=0, int MonID=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) |
void | setFeatures (XrdSfsFileSystem *prevFS) |
int | stat (const char *Name, mode_t &mode, XrdOucErrInfo &eInfo, const XrdSecEntity *client, const char *opaque=0) |
int | stat (const char *Name, struct stat *buf, 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) |
![]() | |
XrdSfsFileSystem () | |
Constructor and Destructor. More... | |
virtual | ~XrdSfsFileSystem () |
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) |
virtual XrdSfsDirectory * | newDir (XrdOucErrInfo &eInfo) |
virtual XrdSfsFile * | newFile (XrdOucErrInfo &eInfo) |
Static Public Member Functions | |
static void | setMax (int mVal) |
Friends | |
class | XrdSsiFile |
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 44 of file XrdSsiSfs.hh.
|
inline |
Definition at line 139 of file XrdSsiSfs.hh.
|
inlinevirtual |
Definition at line 140 of file XrdSsiSfs.hh.
|
virtual |
Reimplemented from XrdSfsFileSystem.
Definition at line 161 of file XrdSsiSfs.cc.
References XrdSfsFileSystem::chksum(), XrdSsi::fsChk, Path, XrdOucErrInfo::setErrInfo(), SFS_ERROR, and XrdSsi::theFS.
|
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 179 of file XrdSsiSfs.cc.
References XrdSfsFileSystem::chmod(), XrdOucPListAnchor::Find(), XrdSsi::fsChk, XrdSsi::FSPath, Mode, XrdOucErrInfo::setErrInfo(), SFS_ERROR, and XrdSsi::theFS.
|
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 227 of file XrdSsiSfs.cc.
References XrdSfsFileSystem::exists(), XrdOucPListAnchor::Find(), XrdSsi::fsChk, XrdSsi::FSPath, XrdOucErrInfo::setErrInfo(), SFS_ERROR, and XrdSsi::theFS.
|
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 247 of file XrdSsiSfs.cc.
References DEBUG, EPNAME, XrdOucPListAnchor::Find(), XrdSsi::fsChk, XrdSfsFileSystem::fsctl(), XrdSsi::FSPath, XrdNetIF::GetDest(), XrdOucErrInfo::getErrUser(), XrdNetIF::GetIFType(), XrdOucErrInfo::getUCap(), XrdSsiProvider::isPending, XrdSsiProvider::isPresent, XrdSsi::myIF, Path, XrdSsi::Provider, XrdSsiProvider::QueryResource(), XrdOucErrInfo::setErrInfo(), SFS_DATA, SFS_ERROR, SFS_FSCTL_CMD, SFS_FSCTL_LOCATE, SFS_O_HNAME, SFS_O_TRUNC, XrdSsi::theFS, tident, XrdOucEI::uIPv4, XrdOucEI::uIPv64, and XrdOucEI::uPrip.
|
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 330 of file XrdSsiSfs.cc.
References XrdSsi::Stats, and XrdSsiStats::Stats().
|
virtual |
Get version string.
Implements XrdSfsFileSystem.
Definition at line 341 of file XrdSsiSfs.cc.
|
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 347 of file XrdSsiSfs.cc.
References XrdOucPListAnchor::Find(), XrdSsi::fsChk, XrdSsi::FSPath, XrdSfsFileSystem::mkdir(), Mode, XrdOucErrInfo::setErrInfo(), SFS_ERROR, and XrdSsi::theFS.
|
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.
Definition at line 52 of file XrdSsiSfs.hh.
|
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.
Definition at line 55 of file XrdSsiSfs.hh.
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.
Definition at line 367 of file XrdSsiSfs.cc.
References XrdSfsFileSystem::prepare(), SFS_OK, and XrdSsi::theFS.
|
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 381 of file XrdSsiSfs.cc.
References XrdOucPListAnchor::Find(), XrdSsi::fsChk, XrdSsi::FSPath, XrdSfsFileSystem::rem(), XrdOucErrInfo::setErrInfo(), SFS_ERROR, and XrdSsi::theFS.
|
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 400 of file XrdSsiSfs.cc.
References XrdOucPListAnchor::Find(), XrdSsi::fsChk, XrdSsi::FSPath, XrdSfsFileSystem::rem(), XrdOucErrInfo::setErrInfo(), SFS_ERROR, and XrdSsi::theFS.
|
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 419 of file XrdSsiSfs.cc.
References XrdOucPListAnchor::Find(), XrdSsi::fsChk, XrdSsi::FSPath, XrdSfsFileSystem::rename(), XrdOucErrInfo::setErrInfo(), SFS_ERROR, and XrdSsi::theFS.
void XrdSsiSfs::setFeatures | ( | XrdSfsFileSystem * | prevFS | ) |
Definition at line 440 of file XrdSsiSfs.cc.
References XrdSfsFileSystem::Features(), and XrdSfs::hasSXIO.
Referenced by XrdSfsGetFileSystem2().
|
inlinestatic |
Definition at line 137 of file XrdSsiSfs.hh.
|
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 485 of file XrdSsiSfs.cc.
References XrdOucPListAnchor::Find(), XrdSsi::fsChk, XrdSsi::FSPath, XrdOucErrInfo::setErrInfo(), SFS_ERROR, XrdSfsFileSystem::stat(), and XrdSsi::theFS.
|
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 467 of file XrdSsiSfs.cc.
References XrdOucPListAnchor::Find(), XrdSsi::fsChk, XrdSsi::FSPath, XrdOucErrInfo::setErrInfo(), SFS_ERROR, XrdSfsFileSystem::stat(), and XrdSsi::theFS.
|
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 505 of file XrdSsiSfs.cc.
References XrdOucPListAnchor::Find(), XrdSsi::fsChk, XrdSsi::FSPath, XrdOucErrInfo::setErrInfo(), SFS_ERROR, XrdSsi::theFS, and XrdSfsFileSystem::truncate().
|
friend |
Definition at line 46 of file XrdSsiSfs.hh.
Referenced by newFile().