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

#include <XrdOssCsi.hh>

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

Public Member Functions

virtual XrdOssDFnewDir (const char *tident)
 
virtual XrdOssDFnewFile (const char *tident)
 
virtual int Init (XrdSysLogger *lp, const char *cfn)
 
virtual int Init (XrdSysLogger *lp, const char *cfn, XrdOucEnv *envP)
 
int Init (XrdSysLogger *, const char *, const char *, XrdOucEnv *)
 
virtual uint64_t Features ()
 
virtual int Unlink (const char *path, int Opts=0, XrdOucEnv *eP=0)
 
virtual int Rename (const char *oldname, const char *newname, XrdOucEnv *old_env=0, XrdOucEnv *new_env=0)
 
virtual int Truncate (const char *path, unsigned long long size, XrdOucEnv *envP=0)
 
virtual int Reloc (const char *tident, const char *path, const char *cgName, const char *anchor=0)
 
virtual int Mkdir (const char *path, mode_t mode, int mkpath=0, XrdOucEnv *envP=0)
 
virtual int Create (const char *tident, const char *path, mode_t access_mode, XrdOucEnv &env, int Opts=0)
 
virtual int Chmod (const char *path, mode_t mode, XrdOucEnv *envP=0)
 
virtual int Remdir (const char *path, int Opts=0, XrdOucEnv *eP=0)
 
virtual int Stat (const char *path, struct stat *buff, int opts=0, XrdOucEnv *EnvP=0)
 
virtual int StatPF (const char *path, struct stat *buff, int opts)
 
virtual int StatPF (const char *path, struct stat *buff)
 
virtual int StatXA (const char *path, char *buff, int &blen, XrdOucEnv *envP=0)
 
 XrdOssCsi (XrdOss *successor)
 
virtual ~XrdOssCsi ()
 
- Public Member Functions inherited from XrdOssHandler
virtual void Connect (XrdOucEnv &env)
 
virtual void Disc (XrdOucEnv &env)
 
virtual void EnvInfo (XrdOucEnv *envP)
 
virtual int FSctl (int cmd, int alen, const char *args, char **resp=0)
 
virtual int Stats (char *bp, int bl)
 
virtual int StatFS (const char *path, char *buff, int &blen, XrdOucEnv *eP=0)
 
virtual int StatLS (XrdOucEnv &env, const char *cgrp, char *buff, int &blen)
 
virtual int StatVS (XrdOssVSInfo *sP, const char *sname=0, int updt=0)
 
virtual int StatXP (const char *path, unsigned long long &attr, XrdOucEnv *eP=0)
 
virtual int Lfn2Pfn (const char *Path, char *buff, int blen)
 
virtual const char * Lfn2Pfn (const char *Path, char *buff, int blen, int &rc)
 
 XrdOssHandler (XrdOss *successor)
 
virtual ~XrdOssHandler ()
 
- Public Member Functions inherited from XrdOss
 XrdOss ()
 Constructor and Destructor.
 
virtual ~XrdOss ()
 

Static Public Member Functions

static std::unique_ptr< XrdOucEnvtagOpenEnv (const XrdOssCsiConfig &, XrdOucEnv &)
 

Static Public Attributes

static XrdSchedulerSched_
 
- Static Public Attributes inherited from XrdOss
static const int PF_dInfo = 0x00000001
 
static const int PF_dNums = 0x00000002
 
static const int PF_isLFN = 0x00000004
 
static const int PF_dStat = 0x00000008
 
static const int PF_csVer = 0x00000001
 verified file checksums present
 
static const int PF_csVun = 0x00000002
 unverified file checksums present
 

Private Attributes

XrdOssCsiConfig config_
 

Additional Inherited Members

- Protected Attributes inherited from XrdOssHandler
XrdOsssuccessor_
 

Constructor & Destructor Documentation

◆ XrdOssCsi()

XrdOssCsi::XrdOssCsi ( XrdOss successor)
inline

◆ ~XrdOssCsi()

virtual XrdOssCsi::~XrdOssCsi ( )
inlinevirtual

Member Function Documentation

◆ Chmod()

virtual int XrdOssCsi::Chmod ( const char *  path,
mode_t  mode,
XrdOucEnv envP = 0 
)
virtual

Change file mode settings.

Parameters
path- Pointer to the path of the file in question.
mode- The new file mode setting.
envP- Pointer to environmental information.
Returns
0 upon success or -errno or -osserr (see XrdOssError.hh).

Reimplemented from XrdOssHandler.

◆ Create()

virtual int XrdOssCsi::Create ( const char *  tid,
const char *  path,
mode_t  mode,
XrdOucEnv env,
int  opts = 0 
)
virtual

Create file.

Parameters
tid- Pointer to the trace identifier.
path- Pointer to the path of the file to create.
mode- The new file mode setting.
env- Reference to environmental information.
opts- Create options: XRDOSS_mkpath - create dir path if it does not exist. XRDOSS_new - the file must not already exist. oflags<<8 - open flags shifted 8 bits to the left/
Returns
0 upon success or -errno or -osserr (see XrdOssError.hh).

Reimplemented from XrdOssHandler.

◆ Features()

virtual uint64_t XrdOssCsi::Features ( )
inlinevirtual

Return storage system features.

Returns
Storage system features (see XRDOSS_HASxxx flags).

Reimplemented from XrdOssHandler.

References XrdOss::Features(), XrdOssHandler::successor_, XRDOSS_HASFSCS, and XRDOSS_HASPGRW.

◆ Init() [1/3]

int XrdOssCsi::Init ( XrdSysLogger ,
const char *  ,
const char *  ,
XrdOucEnv  
)

◆ Init() [2/3]

virtual int XrdOssCsi::Init ( XrdSysLogger lp,
const char *  cfn 
)
inlinevirtual

Initialize the storage system V1 (deprecated).

Parameters
lp- Pointer to the message logging object.
cfn- Pointer to the configuration file.
Returns
0 upon success or -errno or -osserr (see XrdOssError.hh).

Implements XrdOss.

References Init().

Referenced by Init().

◆ Init() [3/3]

virtual int XrdOssCsi::Init ( XrdSysLogger lp,
const char *  cfn,
XrdOucEnv envP 
)
inlinevirtual

Initialize the storage system V2.

Parameters
lp- Pointer to the message logging object.
cfn- Pointer to the configuration file.
envP- Pointer to environmental information.
Returns
0 upon success or -errno or -osserr (see XrdOssError.hh).

Reimplemented from XrdOss.

References Init().

Referenced by Init().

◆ Mkdir()

virtual int XrdOssCsi::Mkdir ( const char *  path,
mode_t  mode,
int  mkpath = 0,
XrdOucEnv envP = 0 
)
virtual

Create a directory.

Parameters
path- Pointer to the path of the directory to be created.
mode- The directory mode setting.
mkpath- When true the path is created if it does not exist.
envP- Pointer to environmental information.
Returns
0 upon success or -errno or -osserr (see XrdOssError.hh).

Reimplemented from XrdOssHandler.

◆ newDir()

virtual XrdOssDF * XrdOssCsi::newDir ( const char *  tident)
virtual

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

Parameters
tident- The trace identifier.
Returns
pointer- Pointer to an XrdOssDF object.
nil - Insufficient memory to allocate an object.

Implements XrdOss.

◆ newFile()

virtual XrdOssDF * XrdOssCsi::newFile ( const char *  tident)
virtual

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

Parameters
tident- The trace identifier.
Returns
pointer- Pointer to an XrdOssDF object.
nil - Insufficient memory to allocate an object.

Implements XrdOss.

◆ Reloc()

virtual int XrdOssCsi::Reloc ( const char *  tident,
const char *  path,
const char *  cgName,
const char *  anchor = 0 
)
virtual

Relocate/Copy the file at ‘path’ to a new location.

Parameters
tident- -> trace identifier for this operation.
path- -> fully qualified name of the file to relocate.
cgName- -> target space name[:path]
anchor- Processing directions (see XrdOssReloc.cc example).
Returns
0 upon success or -errno or -osserr (see XrdOssError.hh).

Reimplemented from XrdOssHandler.

◆ Remdir()

virtual int XrdOssCsi::Remdir ( const char *  path,
int  Opts = 0,
XrdOucEnv envP = 0 
)
virtual

Remove a directory.

Parameters
path- Pointer to the path of the directory to be removed.
Opts- The processing options: XRDOSS_Online - only remove online copy XRDOSS_isPFN - path is already translated.
envP- Pointer to environmental information.
Returns
0 upon success or -errno or -osserr (see XrdOssError.hh).

Reimplemented from XrdOssHandler.

◆ Rename()

virtual int XrdOssCsi::Rename ( const char *  oPath,
const char *  nPath,
XrdOucEnv oEnvP = 0,
XrdOucEnv nEnvP = 0 
)
virtual

Rename a file or directory.

Parameters
oPath- Pointer to the path to be renamed.
nPath- Pointer to the path oPath is to have.
oEnvP- Environmental information for oPath.
nEnvP- Environmental information for nPath.
Returns
0 upon success or -errno or -osserr (see XrdOssError.hh).

Reimplemented from XrdOssHandler.

◆ Stat()

virtual int XrdOssCsi::Stat ( const char *  path,
struct stat buff,
int  opts = 0,
XrdOucEnv envP = 0 
)
virtual

Return state information on a file or directory.

Parameters
path- Pointer to the path in question.
buff- Pointer to the structure where info it to be returned.
opts- Options: XRDOSS_preop - this is a stat prior to open. XRDOSS_resonly - only look for resident files. XRDOSS_updtatm - update file access time.
envP- Pointer to environmental information.
Returns
0 upon success or -errno or -osserr (see XrdOssError.hh).

Reimplemented from XrdOssHandler.

◆ StatPF() [1/2]

virtual int XrdOssCsi::StatPF ( const char *  path,
struct stat buff 
)
inlinevirtual

Reimplemented from XrdOssHandler.

References StatPF().

Referenced by StatPF().

◆ StatPF() [2/2]

virtual int XrdOssCsi::StatPF ( const char *  path,
struct stat buff,
int  opts 
)
virtual

Reimplemented from XrdOssHandler.

◆ StatXA()

virtual int XrdOssCsi::StatXA ( const char *  path,
char *  buff,
int &  blen,
XrdOucEnv envP = 0 
)
virtual

Return logical extended attributes associated with a path.

Parameters
path- Path in whose information is wanted.
buff- Pointer to the buffer to hold the information.
blen- Length of the buffer. This is updated with the actual number of bytes placed in the buffer as in snprintf().
envP- Pointer to environmental information.
Returns
"oss.cgroup=<name>&oss.type={'f'|'d'|'o'}&oss.used=<totbytes> &oss.mt=<mtime>&oss.ct=<ctime>&oss.at=<atime>&oss.u=*&oss.g=* &oss.fs={'w'|'r'}" Upon failure -errno or -osserr (see XrdOssError.hh) returned.

Reimplemented from XrdOssHandler.

◆ tagOpenEnv()

static std::unique_ptr< XrdOucEnv > XrdOssCsi::tagOpenEnv ( const XrdOssCsiConfig ,
XrdOucEnv  
)
static

◆ Truncate()

virtual int XrdOssCsi::Truncate ( const char *  path,
unsigned long long  fsize,
XrdOucEnv envP = 0 
)
virtual

Truncate a file.

Parameters
path- Pointer to the path of the file to be truncated.
fsize- The size that the file is to have.
envP- Pointer to environmental information.
Returns
0 upon success or -errno or -osserr (see XrdOssError.hh).

Reimplemented from XrdOssHandler.

◆ Unlink()

virtual int XrdOssCsi::Unlink ( const char *  path,
int  Opts = 0,
XrdOucEnv envP = 0 
)
virtual

Remove a file.

Parameters
path- Pointer to the path of the file to be removed.
Opts- Options: XRDOSS_isMIG - this is a migratable path. XRDOSS_isPFN - do not apply name2name to path. XRDOSS_Online - remove only the online copy.
envP- Pointer to environmental information.
Returns
0 upon success or -errno or -osserr (see XrdOssError.hh).

Reimplemented from XrdOssHandler.

Member Data Documentation

◆ config_

XrdOssCsiConfig XrdOssCsi::config_
private

◆ Sched_

XrdScheduler* XrdOssCsi::Sched_
static

Referenced by XrdOssCsiFileAio::Init().


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