#include <XrdOssArc.hh>
Public Member Functions | |
| XrdOssArc (XrdOss &ossref) | |
| virtual | ~XrdOssArc () |
| virtual int | Chmod (const char *path, mode_t mode, XrdOucEnv *envP=0) override |
| virtual int | Create (const char *tid, const char *path, mode_t mode, XrdOucEnv &env, int opts=0) override |
| virtual uint64_t | Features () override |
| virtual int | FSctl (int cmd, int alen, const char *args, char **resp=0) override |
| virtual bool | getErrMsg (std::string &eText) override |
| int | InitArc (const char *, const char *parms, XrdOucEnv *envP) |
| virtual int | Lfn2Pfn (const char *Path, char *buff, int blen) override |
| virtual const char * | Lfn2Pfn (const char *Path, char *buff, int blen, int &rc) override |
| virtual int | Mkdir (const char *path, mode_t mode, int mkpath=0, XrdOucEnv *envP=0) override |
| virtual XrdOssDF * | newDir (const char *tident) override |
| virtual XrdOssDF * | newFile (const char *tident) override |
| virtual int | Remdir (const char *path, int Opts=0, XrdOucEnv *envP=0) override |
| virtual int | Rename (const char *oPath, const char *nPath, XrdOucEnv *oEnvP=0, XrdOucEnv *nEnvP=0) override |
| virtual int | Stat (const char *path, struct stat *buff, int opts=0, XrdOucEnv *envP=0) override |
| virtual int | Truncate (const char *path, unsigned long long fsize, XrdOucEnv *envP=0) override |
| virtual int | Unlink (const char *path, int Opts=0, XrdOucEnv *envP=0) override |
| Public Member Functions inherited from XrdOssWrapper | |
| XrdOssWrapper (XrdOss &ossRef) | |
| virtual | ~XrdOssWrapper () |
| virtual void | Connect (XrdOucEnv &env) |
| virtual void | Disc (XrdOucEnv &env) |
| virtual void | EnvInfo (XrdOucEnv *envP) |
| virtual int | Init (XrdSysLogger *lp, const char *cfn) |
| virtual int | Init (XrdSysLogger *lp, const char *cfn, XrdOucEnv *envP) |
| virtual int | StatFS (const char *path, char *buff, int &blen, XrdOucEnv *envP=0) |
| virtual int | StatLS (XrdOucEnv &env, const char *path, char *buff, int &blen) |
| virtual int | StatPF (const char *path, struct stat *buff) |
| virtual int | StatPF (const char *path, struct stat *buff, int opts) |
| virtual int | Stats (char *buff, int blen) |
| virtual int | StatVS (XrdOssVSInfo *vsP, const char *sname=0, int updt=0) |
| virtual int | StatXA (const char *path, char *buff, int &blen, XrdOucEnv *envP=0) |
| virtual int | StatXP (const char *path, unsigned long long &attr, XrdOucEnv *envP=0) |
| Public Member Functions inherited from XrdOss | |
| XrdOss () | |
| Constructor and Destructor. | |
| virtual | ~XrdOss () |
Additional Inherited Members | |
| Static Public Attributes inherited from XrdOss | |
| static const int | PF_csVer = 0x00000001 |
| verified file checksums present | |
| static const int | PF_csVun = 0x00000002 |
| unverified file checksums present | |
| static const int | PF_dInfo = 0x00000001 |
| static const int | PF_dNums = 0x00000002 |
| static const int | PF_dStat = 0x00000008 |
| static const int | PF_isLFN = 0x00000004 |
| Protected Attributes inherited from XrdOssWrapper | |
| XrdOss & | wrapPI |
Definition at line 39 of file XrdOssArc.hh.
|
inline |
Definition at line 253 of file XrdOssArc.hh.
References XrdOss::XrdOss(), and XrdOssWrapper::XrdOssWrapper().
|
inlinevirtual |
Definition at line 255 of file XrdOssArc.hh.
|
overridevirtual |
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. |
Reimplemented from XrdOssWrapper.
Definition at line 124 of file XrdOssArc.cc.
References XrdOssArcGlobals::Elog, XrdOssArcCompose::isMine(), and XrdOssWrapper::wrapPI.
|
overridevirtual |
Create file.
| 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/ |
Reimplemented from XrdOssWrapper.
Definition at line 143 of file XrdOssArc.cc.
References XrdOssArcGlobals::Elog, XrdOssArcCompose::isMine(), opts, and XrdOssWrapper::wrapPI.
|
overridevirtual |
Return storage system features.
Reimplemented from XrdOssWrapper.
Definition at line 163 of file XrdOssArc.cc.
References XrdOssWrapper::wrapPI, and XRDOSS_HASXERT.
|
overridevirtual |
Execute a special storage system operation.
| cmd | - The operation to be performed: XRDOSS_FSCTLFA - Perform proxy file attribute operation |
| alen | - Length of data pointed to by args. |
| args | - Data sent with request, zero if alen is zero. |
| resp | - Where the response is to be set, if any. |
Reimplemented from XrdOssWrapper.
Definition at line 172 of file XrdOssArc.cc.
References XrdOssWrapper::wrapPI.
|
overridevirtual |
Obtain detailed error message text for the immediately preceeding error returned by any method in this class.
| eText | - Where the message text is to be returned. |
Reimplemented from XrdOssWrapper.
Definition at line 183 of file XrdOssArc.cc.
References XrdOssArcGlobals::ecMsg.
| int XrdOssArc::InitArc | ( | const char * | configfn, |
| const char * | parms, | ||
| XrdOucEnv * | envP ) |
Definition at line 205 of file XrdOssArc.cc.
References XrdOssArcGlobals::Config, XrdOssArcGlobals::Elog, XrdOucEnv::GetPtr(), XrdOssArcGlobals::schedP, and XrdOssOK.
|
overridevirtual |
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 XrdOssWrapper.
Definition at line 239 of file XrdOssArc.cc.
References Lfn2Pfn(), and Path.
Referenced by Lfn2Pfn().
|
overridevirtual |
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 XrdOssWrapper.
Definition at line 256 of file XrdOssArc.cc.
References XrdOssArcCompose::isMine(), Path, and XrdOssWrapper::wrapPI.
|
overridevirtual |
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. |
Reimplemented from XrdOssWrapper.
Definition at line 277 of file XrdOssArc.cc.
References XrdOssArcGlobals::Elog, XrdOssArcCompose::isMine(), and XrdOssWrapper::wrapPI.
|
inlineoverridevirtual |
Obtain a new director object to be used for future directory requests.
| tident | - The trace identifier. |
Reimplemented from XrdOssWrapper.
Definition at line 52 of file XrdOssArc.hh.
References tident, and XrdOssWrapper::wrapPI.
|
inlineoverridevirtual |
Obtain a new file object to be used for a future file requests.
| tident | - The trace identifier. |
Reimplemented from XrdOssWrapper.
Definition at line 64 of file XrdOssArc.hh.
References tident, and XrdOssWrapper::wrapPI.
|
overridevirtual |
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. |
Reimplemented from XrdOssWrapper.
Definition at line 296 of file XrdOssArc.cc.
References XrdOssArcGlobals::Elog, XrdOssArcCompose::isMine(), and XrdOssWrapper::wrapPI.
|
overridevirtual |
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. |
Reimplemented from XrdOssWrapper.
Definition at line 315 of file XrdOssArc.cc.
References XrdOssArcGlobals::Elog, XrdOssArcCompose::isMine(), and XrdOssWrapper::wrapPI.
|
overridevirtual |
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. |
Reimplemented from XrdOssWrapper.
Definition at line 335 of file XrdOssArc.cc.
References XrdOssArcCompose::ArcPath(), DEBUG, XrdOssArcCompose::didType, XrdOssArcGlobals::Elog, XrdOssArcCompose::flName, XrdOssArcCompose::flScope, XrdOssArcCompose::isARC, opts, Stat(), XrdOssArcCompose::Stat(), stat, TraceInfo, XrdOssWrapper::wrapPI, XrdOssOK, and XrdSysE2T().
Referenced by Stat().
|
overridevirtual |
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. |
Reimplemented from XrdOssWrapper.
Definition at line 383 of file XrdOssArc.cc.
References XrdOssArcGlobals::Elog, XrdOssArcCompose::isMine(), and XrdOssWrapper::wrapPI.
|
overridevirtual |
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. |
Reimplemented from XrdOssWrapper.
Definition at line 403 of file XrdOssArc.cc.
References XrdOssArcGlobals::Elog, XrdOssArcCompose::isMine(), and XrdOssWrapper::wrapPI.