|
xrootd
|
#include <XrdOssApi.hh>


Public Member Functions | |
| virtual XrdOssDF * | newDir (const char *tident) |
| virtual XrdOssDF * | newFile (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) |
| 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 uint64_t | Features () |
| virtual int | FSctl (int cms, int alen, const char *args, char **resp=0) |
| virtual int | StatPF (const char *path, struct stat *buff) |
| XrdOss () | |
| Constructor and Destructor. More... | |
| 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 |
| XrdOucMsubs * | StageSnd |
| XrdFrcProxy * | StageFrm |
| 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 |
| XrdOucName2Name * | lcl_N2N |
| XrdOucName2Name * | rmt_N2N |
| XrdOucName2Name * | the_N2N |
| XrdOucPListAnchor | RPList |
| OssDPath * | DPList |
| 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 |
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 (char *grp, char *fn, int isxa, 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 |
| XrdOucProg * | StageProg |
| XrdOucProg * | RSSProg |
| char * | UDir |
| char * | QFile |
| char * | xfrFdir |
| int | xfrFdln |
| short | USync |
| bool | pfcMode |
| XrdOssSys::XrdOssSys | ( | ) |
|
inlinevirtual |
|
static |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
virtual |
Change file mode settings.
| path | - Pointer to the path of the file in question. |
| mode | - The new file mode setting. |
| envP | - Pointer to environmental information. |
Implements XrdOss.
| void XrdOssSys::Config_Display | ( | XrdSysError & | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
| int XrdOssSys::Configure | ( | const char * | , |
| XrdSysError & | , | ||
| XrdOucEnv * | envP | ||
| ) |
|
protected |
|
virtual |
Create file.
| 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/ |
Implements XrdOss.
|
protected |
|
protected |
| int XrdOssSys::GenLocalPath | ( | const char * | , |
| char * | |||
| ) |
| int XrdOssSys::GenRemotePath | ( | const char * | , |
| char * | |||
| ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
virtual |
Initialize the storage system V2.
| lp | - Pointer to the message logging object. |
| cfn | - Pointer to the configuration file. |
| envP | - Pointer to environmental information. |
Reimplemented from XrdOss.
|
inlinevirtual |
Initialize the storage system V1 (deprecated).
| lp | - Pointer to the message logging object. |
| cfn | - Pointer to the configuration file. |
Implements XrdOss.
References Init().
Referenced by Init().
|
inline |
References XrdOucPListAnchor::Find(), RPList, and XRDEXP_REMOTE.
|
virtual |
Translate logical name to physical name V1 (deprecated).
| Path | - Path in whose information is wanted. |
| buff | - Pointer to the buffer to hold the new path. |
| blen | - Length of the buffer. |
Reimplemented from XrdOss.
|
virtual |
Translate logical name to physical name V2.
| 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). |
Reimplemented from XrdOss.
|
protected |
|
virtual |
Create a directory.
| 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. |
Implements XrdOss.
| int XrdOssSys::Mkpath | ( | const char * | , |
| mode_t | mode | ||
| ) |
| int XrdOssSys::MSS_Closedir | ( | void * | ) |
| int XrdOssSys::MSS_Create | ( | const char * | path, |
| mode_t | , | ||
| XrdOucEnv & | |||
| ) |
| void* XrdOssSys::MSS_Opendir | ( | const char * | , |
| int & | rc | ||
| ) |
| int XrdOssSys::MSS_Readdir | ( | void * | fd, |
| char * | buff, | ||
| int | blen | ||
| ) |
|
inline |
| int XrdOssSys::MSS_Rename | ( | const char * | , |
| const char * | |||
| ) |
| int XrdOssSys::MSS_Stat | ( | const char * | , |
| struct stat * | buff = 0 |
||
| ) |
| int XrdOssSys::MSS_Unlink | ( | const char * | ) |
|
protected |
|
inlinevirtual |
|
inlinevirtual |
|
inline |
References XrdOucPListAnchor::Find(), and RPList.
|
virtual |
Relocate/Copy the file at ‘path’ to a new location.
| 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). |
Reimplemented from XrdOss.
|
virtual |
Remove a directory.
| 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. |
Implements XrdOss.
|
virtual |
Rename a file or directory.
| 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. |
Implements XrdOss.
|
protected |
|
protected |
|
protected |
|
virtual |
| void* XrdOssSys::Stage_In | ( | void * | carg | ) |
|
protected |
|
protected |
|
virtual |
Return state information on a file or directory.
| 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. |
Implements XrdOss.
|
virtual |
Return filesystem physical space information associated with a path.
| 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(). |
| opts | - Options: XRDEXP_STAGE - info for stageable space wanted. XRDEXP_NOTRW - info for Read/Only space wanted. |
| envP | - Pointer to environmental information. |
Reimplemented from XrdOss.
| int XrdOssSys::StatFS | ( | const char * | path, |
| unsigned long long & | Opt, | ||
| long long & | fSize, | ||
| long long & | fSpace | ||
| ) |
|
virtual |
Return filesystem physical space information associated with a space name.
| 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(). |
| opts | - Options (see StatFS()) apply only when there are no spaces defined. |
| envP | - 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. |
Reimplemented from XrdOss.
|
virtual |
Return statistics.
| buff | - Pointer to the buffer to hold statistics. |
| blen | - Length of the buffer. |
Reimplemented from XrdOss.
|
virtual |
Return space information for a space name.
| 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. |
Reimplemented from XrdOss.
|
virtual |
Return logical extended attributes associated with a path.
| 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. |
Reimplemented from XrdOss.
|
virtual |
Return export attributes associated with a path.
| path | - Path in whose information is wanted. |
| attr | - Reference to where the inforamation is to be stored. |
| envP | - Pointer to environmental information. |
Reimplemented from XrdOss.
|
protected |
|
virtual |
Truncate a file.
| 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. |
Implements XrdOss.
|
virtual |
Remove a file.
| 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. |
Implements XrdOss.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
| union { ... } |
|
static |
|
protected |
|
static |
| char* XrdOssSys::ConfigFN |
|
protected |
| unsigned long long XrdOssSys::DirFlags |
| OssDPath* XrdOssSys::DPList |
| int XrdOssSys::FDFence |
| int XrdOssSys::FDLimit |
|
protected |
| int XrdOssSys::isMSSC |
| XrdOucName2Name* XrdOssSys::lcl_N2N |
| int XrdOssSys::lenDP |
| char* XrdOssSys::LocalRoot |
|
static |
| long long XrdOssSys::MaxSize |
| int XrdOssSys::MaxTwiddle |
|
protected |
| XrdVersionInfo* XrdOssSys::myVersion |
| char* XrdOssSys::N2N_Lib |
| char* XrdOssSys::N2N_Parms |
| short XrdOssSys::numCG |
| short XrdOssSys::numDP |
| int XrdOssSys::OptFlags |
|
protected |
|
protected |
|
protected |
| int XrdOssSys::prActive |
| int XrdOssSys::prBytes |
| short XrdOssSys::prDepth |
| long long XrdOssSys::prPBits |
| long long XrdOssSys::prPMask |
| int XrdOssSys::prPSize |
| short XrdOssSys::prQSize |
|
protected |
| char* XrdOssSys::RemoteRoot |
| XrdOucName2Name* XrdOssSys::rmt_N2N |
| XrdOucPListAnchor XrdOssSys::RPList |
Referenced by IsRemote(), and PathOpts().
| char* XrdOssSys::RSSCmd |
|
protected |
| int XrdOssSys::RSSTout |
| int XrdOssSys::Solitary |
| XrdOucPListAnchor XrdOssSys::SPList |
| char* XrdOssSys::StageAction |
| int XrdOssSys::StageActLen |
| int XrdOssSys::StageAln[MaxArgs] |
| int XrdOssSys::StageAnum |
| char* XrdOssSys::StageArg[MaxArgs] |
| int XrdOssSys::StageAsync |
| char* XrdOssSys::StageCmd |
| int XrdOssSys::StageCreate |
| char* XrdOssSys::StageEvents |
| int XrdOssSys::StageEvSize |
| int XrdOssSys::StageFormat |
| XrdFrcProxy* XrdOssSys::StageFrm |
| char* XrdOssSys::StageMsg |
|
protected |
| int XrdOssSys::StageRealTime |
| XrdOucMsubs* XrdOssSys::StageSnd |
|
protected |
| char XrdOssSys::STT_DoARE |
| char XrdOssSys::STT_DoN2N |
| XrdOssStatInfo_t XrdOssSys::STT_Func |
| XrdOssStatInfo2_t XrdOssSys::STT_Fund |
| char* XrdOssSys::STT_Lib |
| char* XrdOssSys::STT_Parms |
| int XrdOssSys::STT_PreOp |
| char XrdOssSys::STT_V2 |
| XrdOucName2Name* XrdOssSys::the_N2N |
|
protected |
|
protected |
| int XrdOssSys::Trace |
|
static |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |