xrootd
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | Protected Attributes
XrdOssSys Class Reference

#include <XrdOssApi.hh>

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

List of all members.

Public Member Functions

virtual XrdOssDFnewDir (const char *tident)
virtual XrdOssDFnewFile (const char *tident)
int Chmod (const char *, mode_t mode)
int Configure (const char *, XrdSysError &)
void Config_Display (XrdSysError &)
virtual int Create (const char *, const char *, mode_t, XrdOucEnv &, int opts=0)
int GenLocalPath (const char *, char *)
int GenRemotePath (const char *, char *)
int Init (XrdSysLogger *, const char *)
int IsRemote (const char *path)
int Lfn2Pfn (const char *Path, char *buff, int blen)
int Mkdir (const char *, mode_t mode, int mkpath=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)
int Rename (const char *, const char *)
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)
int StatFS (const char *path, char *buff, int &blen)
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 StatVS (XrdOssVSInfo *sP, const char *sname=0, int updt=0)
int StatXA (const char *path, char *buff, int &blen)
int StatXP (const char *path, unsigned long long &attr)
int Truncate (const char *, unsigned long long Size)
int Unlink (const char *, int Opts=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 ()

Static Public Member Functions

static int AioInit ()

Public Attributes

char * ConfigFN
int Hard_FD_Limit
int MaxTwiddle
char * LocalRoot
char * RemoteRoot
int StageRealTime
int StageAsync
int StageCreate
int StageFormat
char * StageCmd
char * StageMsg
XrdOucMsubsStageSnd
XrdFrmProxyStageFrm
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
char * CompSuffix
int CompSuflen
int OptFlags
char * N2N_Lib
char * N2N_Parms
XrdOucName2Namelcl_N2N
XrdOucName2Namermt_N2N
XrdOucName2Namethe_N2N
XrdOucPListAnchor RPList
OssDPathDPList
int lenDP
short numDP
short numCG

Static Public Attributes

static int AioAllOk = 0
static int runOld = 0
static char tryMmap = 0
static char chkMmap = 0
static const int MaxArgs = 15

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 ConfigMio (XrdSysError &Eroute)
int ConfigN2N (XrdSysError &Eroute)
int ConfigProc (XrdSysError &Eroute)
void ConfigSpace ()
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)
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 xcompdct (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 xspace (XrdOucStream &Config, XrdSysError &Eroute, int *isCD=0)
int xspaceBuild (char *grp, char *fn, int isxa, XrdSysError &Eroute)
int xstg (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 RenameLink2 (int Llen, char *oLnk, char *old_path, char *nLnk, 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

Constructor & Destructor Documentation

XrdOssSys::XrdOssSys ( )
virtual XrdOssSys::~XrdOssSys ( ) [inline, virtual]

Member Function Documentation

int XrdOssSys::AioInit ( ) [static]
int XrdOssSys::Alloc_Cache ( XrdOssCreateInfo crInfo,
XrdOucEnv env 
) [protected]
int XrdOssSys::Alloc_Local ( XrdOssCreateInfo crInfo,
XrdOucEnv env 
) [protected]
int XrdOssSys::BreakLink ( const char *  local_path,
struct stat &  statbuff 
) [protected]
int XrdOssSys::CalcTime ( ) [protected]

References EINPROGRESS, and StageAsync.

Referenced by Stage_QT(), and Stage_RT().

int XrdOssSys::CalcTime ( XrdOssStage_Req req) [protected]
int XrdOssSys::Chmod ( const char *  path,
mode_t  mode 
) [virtual]

Implements XrdOss.

References lcl_N2N, XrdOucName2Name::lfn2pfn(), and XrdOssOK.

void XrdOssSys::Config_Display ( XrdSysError Eroute)
void XrdOssSys::ConfigMio ( XrdSysError Eroute) [protected]
int XrdOssSys::ConfigN2N ( XrdSysError Eroute) [protected]
int XrdOssSys::ConfigProc ( XrdSysError Eroute) [protected]
void XrdOssSys::ConfigSpace ( ) [protected]
void XrdOssSys::ConfigSpace ( const char *  Lfn) [protected]
void XrdOssSys::ConfigSpath ( XrdSysError Eroute,
const char *  Pn,
unsigned long long &  Fv,
int  noMSS 
) [protected]
int XrdOssSys::ConfigStage ( XrdSysError Eroute) [protected]
int XrdOssSys::ConfigStageC ( XrdSysError Eroute) [protected]
void XrdOssSys::ConfigStats ( XrdSysError Eroute) [protected]
void XrdOssSys::ConfigStats ( dev_t  Devnum,
char *  lP 
) [protected]

References GenLocalPath(), rindex, and stat().

int XrdOssSys::Configure ( const char *  configfn,
XrdSysError Eroute 
)
int XrdOssSys::ConfigXeq ( char *  var,
XrdOucStream Config,
XrdSysError Eroute 
) [protected]
int XrdOssSys::Create ( const char *  tident,
const char *  path,
mode_t  access_mode,
XrdOucEnv env,
int  opts = 0 
) [virtual]
void XrdOssSys::doScrub ( ) [protected]
int XrdOssSys::Find ( XrdOssStage_Req req,
void *  carg 
) [protected]
int XrdOssSys::GenLocalPath ( const char *  oldp,
char *  newp 
)
int XrdOssSys::GenRemotePath ( const char *  oldp,
char *  newp 
)

References XrdOucName2Name::lfn2rfn(), and rmt_N2N.

Referenced by Create(), GetFile(), Rename(), and Unlink().

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

References lcl_N2N, XrdOucName2Name::lfn2pfn(), S_ISDIR, and stat().

Referenced by Reloc(), StatLS(), and StatXA().

int XrdOssSys::GetFile ( XrdOssStage_Req req) [protected]
int XrdOssSys::getID ( const char *  Tid,
XrdOucEnv Env,
char *  buff,
int  bsz 
) [protected]

Referenced by Stage_QT().

int XrdOssSys::getStats ( char *  buff,
int  blen 
) [protected]
time_t XrdOssSys::HasFile ( const char *  fn,
const char *  sfx,
time_t *  mTime = 0 
) [protected]

References GenLocalPath(), and stat().

Referenced by Stage_QT(), and Stage_RT().

int XrdOssSys::Init ( XrdSysLogger lp,
const char *  configfn 
) [virtual]
int XrdOssSys::IsRemote ( const char *  path) [inline]

References XrdOucPListAnchor::Find(), RPList, and XRDEXP_REMOTE.

Referenced by Stat().

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

Reimplemented from XrdOss.

References lcl_N2N, and XrdOucName2Name::lfn2pfn().

void XrdOssSys::List_Path ( const char *  pfx,
const char *  pname,
unsigned long long  flags,
XrdSysError Eroute 
) [protected]
int XrdOssSys::Mkdir ( const char *  path,
mode_t  mode,
int  mkpath = 0 
) [virtual]
int XrdOssSys::Mkpath ( const char *  path,
mode_t  mode 
)

References index(), mkdir(), and XrdOssOK.

Referenced by Mkdir().

int XrdOssSys::MSS_Closedir ( void *  dir_handle)
int XrdOssSys::MSS_Create ( const char *  path,
mode_t  file_mode,
XrdOucEnv env 
)

References XrdSysError::Emsg(), and MSS_Xeq().

Referenced by Create().

void * XrdOssSys::MSS_Opendir ( const char *  dir_path,
int &  rc 
)
int XrdOssSys::MSS_Readdir ( void *  fd,
char *  buff,
int  blen 
)
int XrdOssSys::MSS_Remdir ( const char *  ,
const char *   
) [inline]
int XrdOssSys::MSS_Rename ( const char *  oldname,
const char *  newname 
)

References XrdSysError::Emsg(), and MSS_Xeq().

Referenced by Rename().

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

References XrdSysError::Emsg(), and MSS_Xeq().

Referenced by Unlink().

int XrdOssSys::MSS_Xeq ( XrdOucStream **  xfd,
int  okerr,
const char *  cmd,
const char *  arg1 = 0,
const char *  arg2 = 0 
) [protected]
virtual XrdOssDF* XrdOssSys::newDir ( const char *  tident) [inline, virtual]

Implements XrdOss.

virtual XrdOssDF* XrdOssSys::newFile ( const char *  tident) [inline, virtual]

Implements XrdOss.

unsigned long long XrdOssSys::PathOpts ( const char *  path) [inline]
int XrdOssSys::Reloc ( const char *  tident,
const char *  path,
const char *  cgName,
const char *  anchor = 0 
) [virtual]
int XrdOssSys::Remdir ( const char *  path,
int  Opts = 0 
) [virtual]
int XrdOssSys::Rename ( const char *  oldname,
const char *  newname 
) [virtual]
int XrdOssSys::RenameLink ( char *  old_path,
char *  new_path 
) [protected]
int XrdOssSys::RenameLink2 ( int  Llen,
char *  oLnk,
char *  old_path,
char *  nLnk,
char *  new_path 
) [protected]

References XrdSysError::Emsg(), and unlink().

Referenced by RenameLink().

int XrdOssSys::RenameLink3 ( char *  cPath,
char *  old_path,
char *  new_path 
) [protected]
int XrdOssSys::SetFattr ( XrdOssCreateInfo crInfo,
int  datfd,
time_t  mtime 
) [protected]
int XrdOssSys::Stage ( const char *  Tid,
const char *  fn,
XrdOucEnv env,
int  Oflag,
mode_t  Mode,
unsigned long long  Popts 
) [virtual]

References Stage_QT(), Stage_RT(), and StageRealTime.

Referenced by Create(), and XrdOssFile::Open().

void * XrdOssSys::Stage_In ( void *  carg)
int XrdOssSys::Stage_QT ( const char *  Tid,
const char *  fn,
XrdOucEnv env,
int  Oflag,
mode_t  Mode 
) [protected]
int XrdOssSys::Stage_RT ( const char *  Tid,
const char *  fn,
XrdOucEnv env,
unsigned long long  Popts 
) [protected]
int XrdOssSys::Stat ( const char *  path,
struct stat *  buff,
int  opts = 0 
) [virtual]
int XrdOssSys::StatFS ( const char *  path,
char *  buff,
int &  blen 
) [virtual]

Reimplemented from XrdOss.

References snprintf, XRDEXP_NOTRW, XRDEXP_STAGE, and XrdOssOK.

Referenced by StatLS().

int XrdOssSys::StatFS ( const char *  path,
unsigned long long &  Opt,
long long &  fSize,
long long &  fSpace 
)
int XrdOssSys::StatLS ( XrdOucEnv env,
const char *  path,
char *  buff,
int &  blen 
) [virtual]
int XrdOssSys::Stats ( char *  bp,
int  bl 
) [virtual]

Reimplemented from XrdOss.

References getStats().

int XrdOssSys::StatVS ( XrdOssVSInfo sP,
const char *  sname = 0,
int  updt = 0 
) [virtual]
int XrdOssSys::StatXA ( const char *  path,
char *  buff,
int &  blen 
) [virtual]
int XrdOssSys::StatXP ( const char *  path,
unsigned long long &  attr 
) [virtual]

Reimplemented from XrdOss.

References PathOpts(), and XrdOssOK.

int XrdOssSys::tranmode ( char *  mode) [protected]

References S_IROTH, S_IWOTH, and S_IXOTH.

Referenced by MSS_Stat().

int XrdOssSys::Truncate ( const char *  path,
unsigned long long  Size 
) [virtual]
int XrdOssSys::Unlink ( const char *  path,
int  Opts = 0 
) [virtual]
int XrdOssSys::xalloc ( XrdOucStream Config,
XrdSysError Eroute 
) [protected]
int XrdOssSys::xcache ( XrdOucStream Config,
XrdSysError Eroute 
) [protected]

References XrdSysError::Say(), and xspace().

Referenced by ConfigXeq().

int XrdOssSys::xcachescan ( XrdOucStream Config,
XrdSysError Eroute 
) [protected]
int XrdOssSys::xcompdct ( XrdOucStream Config,
XrdSysError Eroute 
) [protected]
int XrdOssSys::xdefault ( XrdOucStream Config,
XrdSysError Eroute 
) [protected]

References DirFlags, and XrdOucExport::ParseDefs().

Referenced by ConfigXeq().

int XrdOssSys::xfdlimit ( XrdOucStream Config,
XrdSysError Eroute 
) [protected]
int XrdOssSys::xmaxsz ( XrdOucStream Config,
XrdSysError Eroute 
) [protected]
int XrdOssSys::xmemf ( XrdOucStream Config,
XrdSysError Eroute 
) [protected]
int XrdOssSys::xnml ( XrdOucStream Config,
XrdSysError Eroute 
) [protected]
int XrdOssSys::xpath ( XrdOucStream Config,
XrdSysError Eroute 
) [protected]
int XrdOssSys::xspace ( XrdOucStream Config,
XrdSysError Eroute,
int *  isCD = 0 
) [protected]
int XrdOssSys::xspaceBuild ( char *  grp,
char *  fn,
int  isxa,
XrdSysError Eroute 
) [protected]
int XrdOssSys::xstg ( XrdOucStream Config,
XrdSysError Eroute 
) [protected]
int XrdOssSys::xtrace ( XrdOucStream Config,
XrdSysError Eroute 
) [protected]
int XrdOssSys::xusage ( XrdOucStream Config,
XrdSysError Eroute 
) [protected]
int XrdOssSys::xxfr ( XrdOucStream Config,
XrdSysError Eroute 
) [protected]

Member Data Documentation

int XrdOssSys::AioAllOk = 0 [static]
int XrdOssSys::badreqs [protected]

Referenced by Stage_In(), and XrdOssSys().

char XrdOssSys::chkMmap = 0 [static]

Referenced by Config_Display(), xcompdct(), and XrdOssSys().

Referenced by xcompdct(), and XrdOssSys().

int XrdOssSys::cscanint [protected]
unsigned long long XrdOssSys::DirFlags

Referenced by ConfigStats(), getStats(), and XrdOssSys().

int XrdOssSys::fuzalloc [protected]

Referenced by Configure(), and xfdlimit().

Referenced by ConfigXeq(), MSS_Stat(), and XrdOssSys().

Referenced by ConfigStats(), getStats(), and XrdOssSys().

const int XrdOssSys::MaxArgs = 15 [static]
long long XrdOssSys::MaxSize

Referenced by XrdOssSys().

long long XrdOssSys::minalloc [protected]

Referenced by ConfigN2N(), xnml(), and XrdOssSys().

Referenced by ConfigStats(), getStats(), and XrdOssSys().

Referenced by ConfigStats(), getStats(), and XrdOssSys().

int XrdOssSys::ovhalloc [protected]
long long XrdOssSys::pndbytes [protected]

Referenced by Stage_In(), Stage_RT(), and XrdOssSys().

char* XrdOssSys::QFile [protected]

Referenced by Configure(), XrdOssSys(), and xusage().

Referenced by ConfigStage(), and MSS_Xeq().

Referenced by MSS_Xeq(), and XrdOssSys().

int XrdOssSys::runOld = 0 [static]

Referenced by ConfigStage(), Stage_QT(), and XrdOssSys().

Referenced by ConfigStage(), Stage_QT(), and XrdOssSys().

Referenced by ConfigStage(), Stage_QT(), and XrdOssSys().

Referenced by ConfigStage(), Stage_QT(), and XrdOssSys().

Referenced by ConfigStageC(), and Stage_QT().

Referenced by ConfigStage(), Stage_QT(), and XrdOssSys().

Referenced by ConfigStageC(), GetFile(), and Stage_QT().

Referenced by ConfigStageC(), Stage_QT(), and XrdOssSys().

long long XrdOssSys::stgbytes [protected]

Referenced by CalcTime(), Stage_In(), and XrdOssSys().

Referenced by ConfigN2N(), and XrdOssSys().

long long XrdOssSys::totbytes [protected]

Referenced by Stage_In(), and XrdOssSys().

int XrdOssSys::totreqs [protected]

Referenced by Stage_In(), and XrdOssSys().

char XrdOssSys::tryMmap = 0 [static]
char* XrdOssSys::UDir [protected]
int XrdOssSys::xfrhold [protected]
int XrdOssSys::xfrkeep [protected]
int XrdOssSys::xfrovhd [protected]

Referenced by CalcTime(), XrdOssSys(), and xxfr().

int XrdOssSys::xfrspeed [protected]

Referenced by CalcTime(), Stage_In(), XrdOssSys(), and xxfr().

int XrdOssSys::xfrtcount [protected]

Referenced by ConfigStageC(), Stage_In(), and XrdOssSys().

int XrdOssSys::xfrthreads [protected]

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