xrootd
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Private Member Functions | List of all members
XrdDigFS Class Reference

#include <XrdDigFS.hh>

Inheritance diagram for XrdDigFS:
Inheritance graph
[legend]
Collaboration diagram for XrdDigFS:
Collaboration graph
[legend]

Public Member Functions

XrdSfsDirectorynewDir (char *user=0, int monid=0)
 
XrdSfsFilenewFile (char *user=0, int monid=0)
 
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)
 
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, struct stat *buf, XrdOucErrInfo &out_error, const XrdSecClientName *client=0, const char *opaque=0)
 
int stat (const char *Name, mode_t &mode, 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)
 
 XrdDigFS ()
 
virtual ~XrdDigFS ()
 
- Public Member Functions inherited from XrdSfsFileSystem
virtual XrdSfsDirectorynewDir (XrdOucErrInfo &eInfo)
 
virtual XrdSfsFilenewFile (XrdOucErrInfo &eInfo)
 
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, XrdSfsFSctl &args, XrdOucErrInfo &eInfo, const XrdSecEntity *client=0)
 
virtual int fsctl (const int cmd, const char *args, XrdOucErrInfo &eInfo, const XrdSecEntity *client=0)=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 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
 
 XrdSfsFileSystem ()
 Constructor and Destructor.
 
virtual ~XrdSfsFileSystem ()
 

Static Public Member Functions

static int Emsg (const char *, XrdOucErrInfo &, int, const char *x, const char *y="")
 
static int Validate (const char *)
 

Private Member Functions

int Reject (const char *op, const char *trg, XrdOucErrInfo &)
 

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.
 

Constructor & Destructor Documentation

◆ XrdDigFS()

XrdDigFS::XrdDigFS ( )
inline

◆ ~XrdDigFS()

virtual XrdDigFS::~XrdDigFS ( )
inlinevirtual

Member Function Documentation

◆ chmod()

int XrdDigFS::chmod ( const char * Name,
XrdSfsMode Mode,
XrdOucErrInfo & out_error,
const XrdSecClientName * client = 0,
const char * opaque = 0 )
inline

References Reject().

◆ Emsg()

static int XrdDigFS::Emsg ( const char * ,
XrdOucErrInfo & ,
int ,
const char * x,
const char * y = "" )
static

◆ exists()

int XrdDigFS::exists ( const char * fileName,
XrdSfsFileExistence & exists_flag,
XrdOucErrInfo & out_error,
const XrdSecClientName * client = 0,
const char * opaque = 0 )

◆ fsctl()

int XrdDigFS::fsctl ( const int cmd,
const char * args,
XrdOucErrInfo & out_error,
const XrdSecClientName * client = 0 )

◆ getStats()

int XrdDigFS::getStats ( char * buff,
int blen )
inlinevirtual

Return statistical information.

Parameters
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.
Returns
Number of bytes placed in buff. When buff is nil, the maximum number of bytes that could have been placed in buff.

Implements XrdSfsFileSystem.

◆ getVersion()

const char * XrdDigFS::getVersion ( )
virtual

Get version string.

Returns
The version string. Normally this is the XrdVERSION value.

Implements XrdSfsFileSystem.

◆ mkdir()

int XrdDigFS::mkdir ( const char * dirName,
XrdSfsMode Mode,
XrdOucErrInfo & out_error,
const XrdSecClientName * client = 0,
const char * opaque = 0 )
inline

References Reject().

◆ newDir()

XrdSfsDirectory * XrdDigFS::newDir ( char * user = 0,
int MonID = 0 )
inlinevirtual

Obtain a new director object to be used for future directory requests.

Parameters
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.
Returns
pointer- Pointer to an XrdSfsDirectory object.
nil - Insufficient memory to allocate an object.

Implements XrdSfsFileSystem.

◆ newFile()

XrdSfsFile * XrdDigFS::newFile ( char * user = 0,
int MonID = 0 )
inlinevirtual

Obtain a new file object to be used for a future file requests.

Parameters
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.
Returns
pointer- Pointer to an XrdSfsFile object.
nil - Insufficient memory to allocate an object.

Implements XrdSfsFileSystem.

◆ prepare()

int XrdDigFS::prepare ( XrdSfsPrep & pargs,
XrdOucErrInfo & out_error,
const XrdSecClientName * client = 0 )
inline

◆ Reject()

int XrdDigFS::Reject ( const char * op,
const char * trg,
XrdOucErrInfo &  )
private

Referenced by chmod(), mkdir(), rem(), remdir(), rename(), and truncate().

◆ rem()

int XrdDigFS::rem ( const char * path,
XrdOucErrInfo & out_error,
const XrdSecClientName * client = 0,
const char * opaque = 0 )
inline

References Reject().

◆ remdir()

int XrdDigFS::remdir ( const char * dirName,
XrdOucErrInfo & out_error,
const XrdSecClientName * client = 0,
const char * opaque = 0 )
inline

References Reject().

◆ rename()

int XrdDigFS::rename ( const char * oldFileName,
const char * newFileName,
XrdOucErrInfo & out_error,
const XrdSecClientName * client = 0,
const char * opaqueO = 0,
const char * opaqueN = 0 )
inline

References Reject().

◆ stat() [1/2]

int XrdDigFS::stat ( const char * Name,
mode_t & mode,
XrdOucErrInfo & out_error,
const XrdSecClientName * client = 0,
const char * opaque = 0 )
inline

References stat.

◆ stat() [2/2]

int XrdDigFS::stat ( const char * Name,
struct stat * buf,
XrdOucErrInfo & out_error,
const XrdSecClientName * client = 0,
const char * opaque = 0 )

◆ truncate()

int XrdDigFS::truncate ( const char * path,
XrdSfsFileOffset fsize,
XrdOucErrInfo & eInfo,
const XrdSecEntity * client = 0,
const char * opaque = 0 )
inlinevirtual

Truncate a file.

Parameters
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).
Returns
One of SFS_OK, SFS_ERROR, SFS_REDIRECT, or SFS_STALL

Implements XrdSfsFileSystem.

References Reject().

◆ Validate()

static int XrdDigFS::Validate ( const char * )
static

The documentation for this class was generated from the following file: