![]() |
XRootD
|
#include <XrdDigFS.hh>
Public Member Functions | |
XrdDigFS () | |
virtual | ~XrdDigFS () |
int | chmod (const char *Name, XrdSfsMode Mode, XrdOucErrInfo &out_error, const XrdSecClientName *client=0, const char *opaque=0) |
int | exists (const char *fileName, XrdSfsFileExistence &exists_flag, XrdOucErrInfo &out_error, const XrdSecClientName *client=0, const char *opaque=0) |
int | fsctl (const int cmd, const char *args, XrdOucErrInfo &out_error, const XrdSecClientName *client=0) |
int | getStats (char *buff, int blen) |
const char * | getVersion () |
int | mkdir (const char *dirName, XrdSfsMode Mode, XrdOucErrInfo &out_error, const XrdSecClientName *client=0, 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 &out_error, const XrdSecClientName *client=0) |
int | rem (const char *path, XrdOucErrInfo &out_error, const XrdSecClientName *client=0, const char *opaque=0) |
int | remdir (const char *dirName, XrdOucErrInfo &out_error, const XrdSecClientName *client=0, const char *opaque=0) |
int | rename (const char *oldFileName, const char *newFileName, XrdOucErrInfo &out_error, const XrdSecClientName *client=0, const char *opaqueO=0, const char *opaqueN=0) |
int | stat (const char *Name, mode_t &mode, XrdOucErrInfo &out_error, const XrdSecClientName *client=0, const char *opaque=0) |
int | stat (const char *Name, struct stat *buf, XrdOucErrInfo &out_error, const XrdSecClientName *client=0, const char *opaque=0) |
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 () |
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 *path, XrdSfsMode mode, XrdOucErrInfo &eInfo, const XrdSecEntity *client=0, const char *opaque=0)=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 *path, XrdSfsFileExistence &eFlag, XrdOucErrInfo &eInfo, const XrdSecEntity *client=0, const char *opaque=0)=0 |
virtual int | FAttr (XrdSfsFACtl *faReq, XrdOucErrInfo &eInfo, const XrdSecEntity *client=0) |
uint64_t | Features () |
virtual int | fsctl (const int cmd, const char *args, XrdOucErrInfo &eInfo, const XrdSecEntity *client=0)=0 |
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 int | mkdir (const char *path, XrdSfsMode mode, XrdOucErrInfo &eInfo, const XrdSecEntity *client=0, const char *opaque=0)=0 |
virtual XrdSfsDirectory * | newDir (XrdOucErrInfo &eInfo) |
virtual XrdSfsFile * | newFile (XrdOucErrInfo &eInfo) |
virtual int | prepare (XrdSfsPrep &pargs, XrdOucErrInfo &eInfo, const XrdSecEntity *client=0)=0 |
virtual int | rem (const char *path, XrdOucErrInfo &eInfo, const XrdSecEntity *client=0, const char *opaque=0)=0 |
virtual int | remdir (const char *path, XrdOucErrInfo &eInfo, const XrdSecEntity *client=0, const char *opaque=0)=0 |
virtual int | rename (const char *oPath, const char *nPath, XrdOucErrInfo &eInfo, const XrdSecEntity *client=0, const char *opaqueO=0, const char *opaqueN=0)=0 |
virtual int | stat (const char *Name, struct stat *buf, XrdOucErrInfo &eInfo, const XrdSecEntity *client=0, const char *opaque=0)=0 |
virtual int | stat (const char *path, mode_t &mode, XrdOucErrInfo &eInfo, const XrdSecEntity *client=0, const char *opaque=0)=0 |
Static Public Member Functions | |
static int | Emsg (const char *, XrdOucErrInfo &, int, const char *x, const char *y="") |
static int | Validate (const char *) |
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 163 of file XrdDigFS.hh.
|
inline |
Definition at line 261 of file XrdDigFS.hh.
|
inlinevirtual |
Definition at line 262 of file XrdDigFS.hh.
|
inline |
Definition at line 177 of file XrdDigFS.hh.
|
static |
Definition at line 605 of file XrdDigFS.cc.
References XrdDig::eDest, XrdSysError::Emsg(), XrdOucErrInfo::setErrInfo(), SFS_ERROR, and XrdSysE2T().
Referenced by XrdDigDirectory::close(), XrdDigFile::close(), exists(), XrdDigDirectory::nextEntry(), XrdDigDirectory::open(), XrdDigFile::open(), XrdDigFile::read(), XrdDigFile::readv(), stat(), and XrdDigFile::stat().
int XrdDigFS::exists | ( | const char * | fileName, |
XrdSfsFileExistence & | exists_flag, | ||
XrdOucErrInfo & | out_error, | ||
const XrdSecClientName * | client = 0 , |
||
const char * | opaque = 0 |
||
) |
Definition at line 640 of file XrdDigFS.cc.
References Emsg(), fstat(), SFS_OK, stat(), XrdDigUFS::Statfn(), XrdSfsFileExistIsDirectory, XrdSfsFileExistIsFile, and XrdSfsFileExistNo.
int XrdDigFS::fsctl | ( | const int | cmd, |
const char * | args, | ||
XrdOucErrInfo & | out_error, | ||
const XrdSecClientName * | client = 0 |
||
) |
Definition at line 688 of file XrdDigFS.cc.
References XrdDig::Config, XrdDigConfig::GetLocResp(), XrdOucErrInfo::setErrInfo(), SFS_DATA, SFS_ERROR, SFS_FSCTL_CMD, SFS_FSCTL_LOCATE, SFS_LCLROOT, and SFS_O_HNAME.
|
inlinevirtual |
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 195 of file XrdDigFS.hh.
|
virtual |
Get version string.
Implements XrdSfsFileSystem.
Definition at line 730 of file XrdDigFS.cc.
|
inline |
Definition at line 199 of file XrdDigFS.hh.
|
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 169 of file XrdDigFS.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 172 of file XrdDigFS.hh.
|
inline |
Definition at line 206 of file XrdDigFS.hh.
|
inline |
Definition at line 210 of file XrdDigFS.hh.
|
inline |
Definition at line 216 of file XrdDigFS.hh.
|
inline |
Definition at line 222 of file XrdDigFS.hh.
|
inline |
Definition at line 236 of file XrdDigFS.hh.
References stat().
int XrdDigFS::stat | ( | const char * | Name, |
struct stat * | buf, | ||
XrdOucErrInfo & | out_error, | ||
const XrdSecClientName * | client = 0 , |
||
const char * | opaque = 0 |
||
) |
Definition at line 745 of file XrdDigFS.cc.
References XrdDig::Config, Emsg(), XrdDigConfig::GenAccess(), XrdDigConfig::GenPath(), SFS_LCLPLEN, SFS_LCLPRFX, SFS_LCLPRFY, SFS_OK, XrdDigUFS::Statfn(), and XrdDigConfig::StatRoot().
Referenced by stat().
|
inlinevirtual |
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 247 of file XrdDigFS.hh.
|
static |
Definition at line 812 of file XrdDigFS.cc.
References SFS_LCLPATH, and SFS_LCLPLEN.
Referenced by XrdDigDirectory::open(), and XrdDigFile::open().