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

#include <XrdOssApi.hh>

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

Public Member Functions

virtual XrdOssDFnewDir (const char *tident)
 
virtual XrdOssDFnewFile (const char *tident)
 
int Chmod (const char *, mode_t mode, XrdOucEnv *eP=0)
 
int Configure (const char *, XrdSysError &, XrdOucEnv *envP)
 
void Config_Display (XrdSysError &)
 
virtual int Create (const char *, const char *, mode_t, XrdOucEnv &, int opts=0)
 
uint64_t Features ()
 
int GenLocalPath (const char *, char *)
 
int GenRemotePath (const char *, char *)
 
int Init (XrdSysLogger *, const char *, XrdOucEnv *envP)
 
int Init (XrdSysLogger *lP, const char *cP)
 
int IsRemote (const char *path)
 
int Lfn2Pfn (const char *Path, char *buff, int blen)
 
const char * Lfn2Pfn (const char *Path, char *buff, int blen, int &rc)
 
int Mkdir (const char *, mode_t mode, int mkpath=0, XrdOucEnv *eP=0)
 
int Mkpath (const char *, mode_t mode)
 
unsigned long long PathOpts (const char *path)
 
int Reloc (const char *tident, const char *path, const char *cgName, const char *anchor=0)
 
int Remdir (const char *, int Opts=0, XrdOucEnv *eP=0)
 
int Rename (const char *, const char *, XrdOucEnv *eP1=0, XrdOucEnv *eP2=0)
 
virtual int Stage (const char *, const char *, XrdOucEnv &, int, mode_t, unsigned long long)
 
void * Stage_In (void *carg)
 
int Stat (const char *, struct stat *, int opts=0, XrdOucEnv *Env=0)
 
int StatFS (const char *path, char *buff, int &blen, XrdOucEnv *Env=0)
 
int StatFS (const char *path, unsigned long long &Opt, long long &fSize, long long &fSpace)
 
int StatLS (XrdOucEnv &env, const char *path, char *buff, int &blen)
 
int StatPF (const char *, struct stat *, int)
 
int StatVS (XrdOssVSInfo *sP, const char *sname=0, int updt=0)
 
int StatXA (const char *path, char *buff, int &blen, XrdOucEnv *Env=0)
 
int StatXP (const char *path, unsigned long long &attr, XrdOucEnv *Env=0)
 
int Truncate (const char *, unsigned long long Size, XrdOucEnv *eP=0)
 
int Unlink (const char *, int Opts=0, XrdOucEnv *eP=0)
 
int Stats (char *bp, int bl)
 
int MSS_Closedir (void *)
 
int MSS_Create (const char *path, mode_t, XrdOucEnv &)
 
void * MSS_Opendir (const char *, int &rc)
 
int MSS_Readdir (void *fd, char *buff, int blen)
 
int MSS_Remdir (const char *, const char *)
 
int MSS_Rename (const char *, const char *)
 
int MSS_Stat (const char *, struct stat *buff=0)
 
int MSS_Unlink (const char *)
 
 XrdOssSys ()
 
virtual ~XrdOssSys ()
 
- Public Member Functions inherited from XrdOss
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 StatPF (const char *path, struct stat *buff)
 
 XrdOss ()
 Constructor and Destructor.
 
virtual ~XrdOss ()
 

Static Public Member Functions

static int AioInit ()
 

Public Attributes

char * ConfigFN
 
char * LocalRoot
 
char * RemoteRoot
 
int MaxTwiddle
 
int StageRealTime
 
int StageAsync
 
int StageCreate
 
int StageFormat
 
char * StageCmd
 
char * StageMsg
 
XrdOucMsubsStageSnd
 
XrdFrcProxyStageFrm
 
char * StageEvents
 
int StageEvSize
 
int StageActLen
 
char * StageAction
 
char * StageArg [MaxArgs]
 
int StageAln [MaxArgs]
 
int StageAnum
 
char * RSSCmd
 
int isMSSC
 
int RSSTout
 
long long MaxSize
 
int FDFence
 
int FDLimit
 
unsigned long long DirFlags
 
int Trace
 
int Solitary
 
int OptFlags
 
XrdOucPListAnchor SPList
 
char * N2N_Lib
 
char * N2N_Parms
 
XrdOucName2Namelcl_N2N
 
XrdOucName2Namermt_N2N
 
XrdOucName2Namethe_N2N
 
XrdOucPListAnchor RPList
 
OssDPathDPList
 
int lenDP
 
short numDP
 
short numCG
 
char * STT_Lib
 
char * STT_Parms
 
union { 
 
   XrdOssStatInfo_t   STT_Func 
 
   XrdOssStatInfo2_t   STT_Fund 
 
};  
 
int STT_PreOp
 
char STT_DoN2N
 
char STT_V2
 
char STT_DoARE
 
long long prPBits
 
long long prPMask
 
int prPSize
 
int prBytes
 
int prActive
 
short prDepth
 
short prQSize
 
XrdVersionInfo * myVersion
 

Static Public Attributes

static int AioAllOk
 
static char tryMmap
 
static char chkMmap
 
static const int MaxArgs = 15
 
- 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
 

Protected Member Functions

int Alloc_Cache (XrdOssCreateInfo &, XrdOucEnv &)
 
int Alloc_Local (XrdOssCreateInfo &, XrdOucEnv &)
 
int BreakLink (const char *local_path, struct stat &statbuff)
 
int CalcTime ()
 
int CalcTime (XrdOssStage_Req *req)
 
int SetFattr (XrdOssCreateInfo &crInfo, int datfd, time_t mtime)
 
void doScrub ()
 
int Find (XrdOssStage_Req *req, void *carg)
 
int getCname (const char *path, struct stat *sbuff, char *cgbuff)
 
int getStats (char *buff, int blen)
 
int GetFile (XrdOssStage_Req *req)
 
int getID (const char *, XrdOucEnv &, char *, int)
 
time_t HasFile (const char *fn, const char *sfx, time_t *mTime=0)
 
int Stage_QT (const char *, const char *, XrdOucEnv &, int, mode_t)
 
int Stage_RT (const char *, const char *, XrdOucEnv &, unsigned long long)
 
void ConfigCache (XrdSysError &Eroute, bool pass2=false)
 
void ConfigMio (XrdSysError &Eroute)
 
int ConfigN2N (XrdSysError &Eroute, XrdOucEnv *envP)
 
int ConfigProc (XrdSysError &Eroute)
 
void ConfigSpace (XrdSysError &Eroute)
 
void ConfigSpace (const char *Lfn)
 
void ConfigSpath (XrdSysError &Eroute, const char *Pn, unsigned long long &Fv, int noMSS)
 
int ConfigStage (XrdSysError &Eroute)
 
int ConfigStageC (XrdSysError &Eroute)
 
int ConfigStatLib (XrdSysError &Eroute, XrdOucEnv *envP)
 
void ConfigStats (XrdSysError &Eroute)
 
void ConfigStats (dev_t Devnum, char *lP)
 
int ConfigXeq (char *, XrdOucStream &, XrdSysError &)
 
void List_Path (const char *, const char *, unsigned long long, XrdSysError &)
 
int xalloc (XrdOucStream &Config, XrdSysError &Eroute)
 
int xcache (XrdOucStream &Config, XrdSysError &Eroute)
 
int xcachescan (XrdOucStream &Config, XrdSysError &Eroute)
 
int xdefault (XrdOucStream &Config, XrdSysError &Eroute)
 
int xfdlimit (XrdOucStream &Config, XrdSysError &Eroute)
 
int xmaxsz (XrdOucStream &Config, XrdSysError &Eroute)
 
int xmemf (XrdOucStream &Config, XrdSysError &Eroute)
 
int xnml (XrdOucStream &Config, XrdSysError &Eroute)
 
int xpath (XrdOucStream &Config, XrdSysError &Eroute)
 
int xprerd (XrdOucStream &Config, XrdSysError &Eroute)
 
int xspace (XrdOucStream &Config, XrdSysError &Eroute, int *isCD=0)
 
int xspace (XrdOucStream &Config, XrdSysError &Eroute, const char *grp, bool isAsgn)
 
int xspaceBuild (OssSpaceConfig &sInfo, XrdSysError &Eroute)
 
int xstg (XrdOucStream &Config, XrdSysError &Eroute)
 
int xstl (XrdOucStream &Config, XrdSysError &Eroute)
 
int xusage (XrdOucStream &Config, XrdSysError &Eroute)
 
int xtrace (XrdOucStream &Config, XrdSysError &Eroute)
 
int xxfr (XrdOucStream &Config, XrdSysError &Eroute)
 
int tranmode (char *)
 
int MSS_Xeq (XrdOucStream **xfd, int okerr, const char *cmd, const char *arg1=0, const char *arg2=0)
 
int RenameLink (char *old_path, char *new_path)
 
int RenameLink3 (char *cPath, char *old_path, char *new_path)
 

Protected Attributes

long long minalloc
 
int ovhalloc
 
int fuzalloc
 
int cscanint
 
int xfrspeed
 
int xfrovhd
 
int xfrhold
 
int xfrkeep
 
int xfrthreads
 
int xfrtcount
 
long long pndbytes
 
long long stgbytes
 
long long totbytes
 
int totreqs
 
int badreqs
 
XrdOucProgStageProg
 
XrdOucProgRSSProg
 
char * UDir
 
char * QFile
 
char * xfrFdir
 
int xfrFdln
 
short USync
 
bool pfcMode
 

Constructor & Destructor Documentation

◆ XrdOssSys()

XrdOssSys::XrdOssSys ( )

◆ ~XrdOssSys()

virtual XrdOssSys::~XrdOssSys ( )
inlinevirtual

Member Function Documentation

◆ AioInit()

static int XrdOssSys::AioInit ( )
static

◆ Alloc_Cache()

int XrdOssSys::Alloc_Cache ( XrdOssCreateInfo &  ,
XrdOucEnv  
)
protected

◆ Alloc_Local()

int XrdOssSys::Alloc_Local ( XrdOssCreateInfo &  ,
XrdOucEnv  
)
protected

◆ BreakLink()

int XrdOssSys::BreakLink ( const char *  local_path,
struct stat statbuff 
)
protected

◆ CalcTime() [1/2]

int XrdOssSys::CalcTime ( )
protected

◆ CalcTime() [2/2]

int XrdOssSys::CalcTime ( XrdOssStage_Req req)
protected

◆ Chmod()

int XrdOssSys::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).

Implements XrdOss.

◆ Config_Display()

void XrdOssSys::Config_Display ( XrdSysError )

◆ ConfigCache()

void XrdOssSys::ConfigCache ( XrdSysError Eroute,
bool  pass2 = false 
)
protected

◆ ConfigMio()

void XrdOssSys::ConfigMio ( XrdSysError Eroute)
protected

◆ ConfigN2N()

int XrdOssSys::ConfigN2N ( XrdSysError Eroute,
XrdOucEnv envP 
)
protected

◆ ConfigProc()

int XrdOssSys::ConfigProc ( XrdSysError Eroute)
protected

◆ ConfigSpace() [1/2]

void XrdOssSys::ConfigSpace ( const char *  Lfn)
protected

◆ ConfigSpace() [2/2]

void XrdOssSys::ConfigSpace ( XrdSysError Eroute)
protected

◆ ConfigSpath()

void XrdOssSys::ConfigSpath ( XrdSysError Eroute,
const char *  Pn,
unsigned long long &  Fv,
int  noMSS 
)
protected

◆ ConfigStage()

int XrdOssSys::ConfigStage ( XrdSysError Eroute)
protected

◆ ConfigStageC()

int XrdOssSys::ConfigStageC ( XrdSysError Eroute)
protected

◆ ConfigStatLib()

int XrdOssSys::ConfigStatLib ( XrdSysError Eroute,
XrdOucEnv envP 
)
protected

◆ ConfigStats() [1/2]

void XrdOssSys::ConfigStats ( dev_t  Devnum,
char *  lP 
)
protected

◆ ConfigStats() [2/2]

void XrdOssSys::ConfigStats ( XrdSysError Eroute)
protected

◆ Configure()

int XrdOssSys::Configure ( const char *  ,
XrdSysError ,
XrdOucEnv envP 
)

◆ ConfigXeq()

int XrdOssSys::ConfigXeq ( char *  ,
XrdOucStream ,
XrdSysError  
)
protected

◆ Create()

virtual int XrdOssSys::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).

Implements XrdOss.

◆ doScrub()

void XrdOssSys::doScrub ( )
protected

◆ Features()

uint64_t XrdOssSys::Features ( )
inlinevirtual

Return storage system features.

Returns
Storage system features (see XRDOSS_HASxxx flags).

Reimplemented from XrdOss.

References XRDOSS_HASNAIO.

◆ Find()

int XrdOssSys::Find ( XrdOssStage_Req req,
void *  carg 
)
protected

◆ GenLocalPath()

int XrdOssSys::GenLocalPath ( const char *  ,
char *   
)

◆ GenRemotePath()

int XrdOssSys::GenRemotePath ( const char *  ,
char *   
)

◆ getCname()

int XrdOssSys::getCname ( const char *  path,
struct stat sbuff,
char *  cgbuff 
)
protected

◆ GetFile()

int XrdOssSys::GetFile ( XrdOssStage_Req req)
protected

◆ getID()

int XrdOssSys::getID ( const char *  ,
XrdOucEnv ,
char *  ,
int   
)
protected

◆ getStats()

int XrdOssSys::getStats ( char *  buff,
int  blen 
)
protected

◆ HasFile()

time_t XrdOssSys::HasFile ( const char *  fn,
const char *  sfx,
time_t *  mTime = 0 
)
protected

◆ Init() [1/2]

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

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.

◆ Init() [2/2]

int XrdOssSys::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().

◆ IsRemote()

int XrdOssSys::IsRemote ( const char *  path)
inline

◆ Lfn2Pfn() [1/2]

int XrdOssSys::Lfn2Pfn ( const char *  Path,
char *  buff,
int  blen 
)
virtual

Translate logical name to physical name V1 (deprecated).

Parameters
Path- Path in whose information is wanted.
buff- Pointer to the buffer to hold the new path.
blen- Length of the buffer.
Returns
0 upon success or -errno or -osserr (see XrdOssError.hh).

Reimplemented from XrdOss.

◆ Lfn2Pfn() [2/2]

const char * XrdOssSys::Lfn2Pfn ( const char *  Path,
char *  buff,
int  blen,
int &  rc 
)
virtual

Translate logical name to physical name V2.

Parameters
Path- Path in whose information is wanted.
buff- Pointer to the buffer to hold the new path.
blen- Length of the buffer.
rc- Place where failure return code is to be returned: -errno or -osserr (see XrdOssError.hh).
Returns
Pointer to the translated path upon success or nil on failure.

Reimplemented from XrdOss.

◆ List_Path()

void XrdOssSys::List_Path ( const char *  ,
const char *  ,
unsigned long long  ,
XrdSysError  
)
protected

◆ Mkdir()

int XrdOssSys::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).

Implements XrdOss.

◆ Mkpath()

int XrdOssSys::Mkpath ( const char *  ,
mode_t  mode 
)

◆ MSS_Closedir()

int XrdOssSys::MSS_Closedir ( void *  )

◆ MSS_Create()

int XrdOssSys::MSS_Create ( const char *  path,
mode_t  ,
XrdOucEnv  
)

◆ MSS_Opendir()

void * XrdOssSys::MSS_Opendir ( const char *  ,
int &  rc 
)

◆ MSS_Readdir()

int XrdOssSys::MSS_Readdir ( void *  fd,
char *  buff,
int  blen 
)

◆ MSS_Remdir()

int XrdOssSys::MSS_Remdir ( const char *  ,
const char *   
)
inline

◆ MSS_Rename()

int XrdOssSys::MSS_Rename ( const char *  ,
const char *   
)

◆ MSS_Stat()

int XrdOssSys::MSS_Stat ( const char *  ,
struct stat buff = 0 
)

◆ MSS_Unlink()

int XrdOssSys::MSS_Unlink ( const char *  )

◆ MSS_Xeq()

int XrdOssSys::MSS_Xeq ( XrdOucStream **  xfd,
int  okerr,
const char *  cmd,
const char *  arg1 = 0,
const char *  arg2 = 0 
)
protected

◆ newDir()

virtual XrdOssDF * XrdOssSys::newDir ( const char *  tident)
inlinevirtual

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 * XrdOssSys::newFile ( const char *  tident)
inlinevirtual

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.

◆ PathOpts()

unsigned long long XrdOssSys::PathOpts ( const char *  path)
inline

◆ Reloc()

int XrdOssSys::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 XrdOss.

◆ Remdir()

int XrdOssSys::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).

Implements XrdOss.

◆ Rename()

int XrdOssSys::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).

Implements XrdOss.

◆ RenameLink()

int XrdOssSys::RenameLink ( char *  old_path,
char *  new_path 
)
protected

◆ RenameLink3()

int XrdOssSys::RenameLink3 ( char *  cPath,
char *  old_path,
char *  new_path 
)
protected

◆ SetFattr()

int XrdOssSys::SetFattr ( XrdOssCreateInfo &  crInfo,
int  datfd,
time_t  mtime 
)
protected

◆ Stage()

virtual int XrdOssSys::Stage ( const char *  ,
const char *  ,
XrdOucEnv ,
int  ,
mode_t  ,
unsigned long long   
)
virtual

◆ Stage_In()

void * XrdOssSys::Stage_In ( void *  carg)

◆ Stage_QT()

int XrdOssSys::Stage_QT ( const char *  ,
const char *  ,
XrdOucEnv ,
int  ,
mode_t   
)
protected

◆ Stage_RT()

int XrdOssSys::Stage_RT ( const char *  ,
const char *  ,
XrdOucEnv ,
unsigned long long   
)
protected

◆ Stat()

int XrdOssSys::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).

Implements XrdOss.

◆ StatFS() [1/2]

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

Return filesystem physical space information associated with a path.

Parameters
path- Path in the partition in question.
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
"<wval> <fsp> <utl> <sval> <fsp> <utl>" where: <wval> is "0" if XRDEXP_NOTRW specified, otherwise "1" <fsp> is free space in megabytes. <utl> is percentage utilization (i.e. allocated space) <sval> is "1' if XRDEXP_STAGE specified, otherwise "0" Upon failure -errno or -osserr (see XrdOssError.hh) returned.

Reimplemented from XrdOss.

◆ StatFS() [2/2]

int XrdOssSys::StatFS ( const char *  path,
unsigned long long &  Opt,
long long &  fSize,
long long &  fSpace 
)

◆ StatLS()

int XrdOssSys::StatLS ( XrdOucEnv env,
const char *  path,
char *  buff,
int &  blen 
)
virtual

Return filesystem physical space information associated with a space name.

Parameters
env- Ref to environmental information. If the environment has the key oss.cgroup defined, the associated value is used as the space name and the path is ignored.
path- Path in the name space in question. The space name associated with gthe path is used unless overridden.
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().
Returns
"oss.cgroup=<name>&oss.space=<totbytes>&oss.free=<freebytes> &oss.maxf=<maxcontigbytes>&oss.used=<bytesused> &oss.quota=<quotabytes>" in buff upon success. Upon failure -errno or -osserr (see XrdOssError.hh) returned.

Reimplemented from XrdOss.

◆ StatPF()

int XrdOssSys::StatPF ( const char *  ,
struct stat ,
int   
)
virtual

Reimplemented from XrdOss.

◆ Stats()

int XrdOssSys::Stats ( char *  buff,
int  blen 
)
virtual

Return statistics.

Parameters
buff- Pointer to the buffer to hold statistics.
blen- Length of the buffer.
Returns
The number of bytes placed in the buffer excluding null byte.

Reimplemented from XrdOss.

◆ StatVS()

int XrdOssSys::StatVS ( XrdOssVSInfo vsP,
const char *  sname = 0,
int  updt = 0 
)
virtual

Return space information for a space name.

Parameters
vsP- Pointer to the XrdOssVSInfo object to hold results. It should be fully initialized (i.e. a new copy).
sname- Pointer to the space name. If the name starts with a plus (e.g. "+public"), partition information is returned, should it exist. If nil, space information for all spaces is returned. See, XrdOssVS.hh for more info.
updt- When true, a space update occurrs prior to a query.
Returns
0 upon success or -errno or -osserr (see XrdOssError.hh).

Reimplemented from XrdOss.

◆ StatXA()

int XrdOssSys::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 XrdOss.

◆ StatXP()

int XrdOssSys::StatXP ( const char *  path,
unsigned long long &  attr,
XrdOucEnv envP = 0 
)
virtual

Return export attributes associated with a path.

Parameters
path- Path in whose information is wanted.
attr- Reference to where the inforamation is to be stored.
envP- Pointer to environmental information.
Returns
0 upon success or -errno or -osserr (see XrdOssError.hh).

Reimplemented from XrdOss.

◆ tranmode()

int XrdOssSys::tranmode ( char *  )
protected

◆ Truncate()

int XrdOssSys::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).

Implements XrdOss.

◆ Unlink()

int XrdOssSys::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).

Implements XrdOss.

◆ xalloc()

int XrdOssSys::xalloc ( XrdOucStream Config,
XrdSysError Eroute 
)
protected

◆ xcache()

int XrdOssSys::xcache ( XrdOucStream Config,
XrdSysError Eroute 
)
protected

◆ xcachescan()

int XrdOssSys::xcachescan ( XrdOucStream Config,
XrdSysError Eroute 
)
protected

◆ xdefault()

int XrdOssSys::xdefault ( XrdOucStream Config,
XrdSysError Eroute 
)
protected

◆ xfdlimit()

int XrdOssSys::xfdlimit ( XrdOucStream Config,
XrdSysError Eroute 
)
protected

◆ xmaxsz()

int XrdOssSys::xmaxsz ( XrdOucStream Config,
XrdSysError Eroute 
)
protected

◆ xmemf()

int XrdOssSys::xmemf ( XrdOucStream Config,
XrdSysError Eroute 
)
protected

◆ xnml()

int XrdOssSys::xnml ( XrdOucStream Config,
XrdSysError Eroute 
)
protected

◆ xpath()

int XrdOssSys::xpath ( XrdOucStream Config,
XrdSysError Eroute 
)
protected

◆ xprerd()

int XrdOssSys::xprerd ( XrdOucStream Config,
XrdSysError Eroute 
)
protected

◆ xspace() [1/2]

int XrdOssSys::xspace ( XrdOucStream Config,
XrdSysError Eroute,
const char *  grp,
bool  isAsgn 
)
protected

◆ xspace() [2/2]

int XrdOssSys::xspace ( XrdOucStream Config,
XrdSysError Eroute,
int *  isCD = 0 
)
protected

◆ xspaceBuild()

int XrdOssSys::xspaceBuild ( OssSpaceConfig sInfo,
XrdSysError Eroute 
)
protected

◆ xstg()

int XrdOssSys::xstg ( XrdOucStream Config,
XrdSysError Eroute 
)
protected

◆ xstl()

int XrdOssSys::xstl ( XrdOucStream Config,
XrdSysError Eroute 
)
protected

◆ xtrace()

int XrdOssSys::xtrace ( XrdOucStream Config,
XrdSysError Eroute 
)
protected

◆ xusage()

int XrdOssSys::xusage ( XrdOucStream Config,
XrdSysError Eroute 
)
protected

◆ xxfr()

int XrdOssSys::xxfr ( XrdOucStream Config,
XrdSysError Eroute 
)
protected

Member Data Documentation

◆ [union]

union { ... } XrdOssSys

◆ AioAllOk

int XrdOssSys::AioAllOk
static

◆ badreqs

int XrdOssSys::badreqs
protected

◆ chkMmap

char XrdOssSys::chkMmap
static

◆ ConfigFN

char* XrdOssSys::ConfigFN

◆ cscanint

int XrdOssSys::cscanint
protected

◆ DirFlags

unsigned long long XrdOssSys::DirFlags

◆ DPList

OssDPath* XrdOssSys::DPList

◆ FDFence

int XrdOssSys::FDFence

◆ FDLimit

int XrdOssSys::FDLimit

◆ fuzalloc

int XrdOssSys::fuzalloc
protected

◆ isMSSC

int XrdOssSys::isMSSC

◆ lcl_N2N

XrdOucName2Name* XrdOssSys::lcl_N2N

◆ lenDP

int XrdOssSys::lenDP

◆ LocalRoot

char* XrdOssSys::LocalRoot

◆ MaxArgs

const int XrdOssSys::MaxArgs = 15
static

◆ MaxSize

long long XrdOssSys::MaxSize

◆ MaxTwiddle

int XrdOssSys::MaxTwiddle

◆ minalloc

long long XrdOssSys::minalloc
protected

◆ myVersion

XrdVersionInfo* XrdOssSys::myVersion

◆ N2N_Lib

char* XrdOssSys::N2N_Lib

◆ N2N_Parms

char* XrdOssSys::N2N_Parms

◆ numCG

short XrdOssSys::numCG

◆ numDP

short XrdOssSys::numDP

◆ OptFlags

int XrdOssSys::OptFlags

◆ ovhalloc

int XrdOssSys::ovhalloc
protected

◆ pfcMode

bool XrdOssSys::pfcMode
protected

◆ pndbytes

long long XrdOssSys::pndbytes
protected

◆ prActive

int XrdOssSys::prActive

◆ prBytes

int XrdOssSys::prBytes

◆ prDepth

short XrdOssSys::prDepth

◆ prPBits

long long XrdOssSys::prPBits

◆ prPMask

long long XrdOssSys::prPMask

◆ prPSize

int XrdOssSys::prPSize

◆ prQSize

short XrdOssSys::prQSize

◆ QFile

char* XrdOssSys::QFile
protected

◆ RemoteRoot

char* XrdOssSys::RemoteRoot

◆ rmt_N2N

XrdOucName2Name* XrdOssSys::rmt_N2N

◆ RPList

XrdOucPListAnchor XrdOssSys::RPList

Referenced by IsRemote(), and PathOpts().

◆ RSSCmd

char* XrdOssSys::RSSCmd

◆ RSSProg

XrdOucProg* XrdOssSys::RSSProg
protected

◆ RSSTout

int XrdOssSys::RSSTout

◆ Solitary

int XrdOssSys::Solitary

◆ SPList

XrdOucPListAnchor XrdOssSys::SPList

◆ StageAction

char* XrdOssSys::StageAction

◆ StageActLen

int XrdOssSys::StageActLen

◆ StageAln

int XrdOssSys::StageAln[MaxArgs]

◆ StageAnum

int XrdOssSys::StageAnum

◆ StageArg

char* XrdOssSys::StageArg[MaxArgs]

◆ StageAsync

int XrdOssSys::StageAsync

◆ StageCmd

char* XrdOssSys::StageCmd

◆ StageCreate

int XrdOssSys::StageCreate

◆ StageEvents

char* XrdOssSys::StageEvents

◆ StageEvSize

int XrdOssSys::StageEvSize

◆ StageFormat

int XrdOssSys::StageFormat

◆ StageFrm

XrdFrcProxy* XrdOssSys::StageFrm

◆ StageMsg

char* XrdOssSys::StageMsg

◆ StageProg

XrdOucProg* XrdOssSys::StageProg
protected

◆ StageRealTime

int XrdOssSys::StageRealTime

◆ StageSnd

XrdOucMsubs* XrdOssSys::StageSnd

◆ stgbytes

long long XrdOssSys::stgbytes
protected

◆ STT_DoARE

char XrdOssSys::STT_DoARE

◆ STT_DoN2N

char XrdOssSys::STT_DoN2N

◆ STT_Func

XrdOssStatInfo_t XrdOssSys::STT_Func

◆ STT_Fund

XrdOssStatInfo2_t XrdOssSys::STT_Fund

◆ STT_Lib

char* XrdOssSys::STT_Lib

◆ STT_Parms

char* XrdOssSys::STT_Parms

◆ STT_PreOp

int XrdOssSys::STT_PreOp

◆ STT_V2

char XrdOssSys::STT_V2

◆ the_N2N

XrdOucName2Name* XrdOssSys::the_N2N

◆ totbytes

long long XrdOssSys::totbytes
protected

◆ totreqs

int XrdOssSys::totreqs
protected

◆ Trace

int XrdOssSys::Trace

◆ tryMmap

char XrdOssSys::tryMmap
static

◆ UDir

char* XrdOssSys::UDir
protected

◆ USync

short XrdOssSys::USync
protected

◆ xfrFdir

char* XrdOssSys::xfrFdir
protected

◆ xfrFdln

int XrdOssSys::xfrFdln
protected

◆ xfrhold

int XrdOssSys::xfrhold
protected

◆ xfrkeep

int XrdOssSys::xfrkeep
protected

◆ xfrovhd

int XrdOssSys::xfrovhd
protected

◆ xfrspeed

int XrdOssSys::xfrspeed
protected

◆ xfrtcount

int XrdOssSys::xfrtcount
protected

◆ xfrthreads

int XrdOssSys::xfrthreads
protected

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