#include <XrdOssMirage.hh>
Public Member Functions | |
| XrdOssMirage ()=default | |
| virtual | ~XrdOssMirage ()=default |
| 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 |
| std::optional< XrdOssMirageEntry > | get_entry_read (const char *path) |
| std::optional< XrdOssMirageEntryPtr > | get_entry_write (const char *path) |
| virtual int | Init (XrdSysLogger *lp, const char *cfn) 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 XrdOss | |
| XrdOss () | |
| Constructor and Destructor. | |
| virtual | ~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 bool | getErrMsg (std::string &eText) |
| virtual int | Init (XrdSysLogger *lp, const char *cfn, XrdOucEnv *envP) |
| virtual int | Lfn2Pfn (const char *Path, char *buff, int blen) |
| virtual const char * | Lfn2Pfn (const char *Path, char *buff, int blen, int &rc) |
| 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) |
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 |
Definition at line 12 of file XrdOssMirage.hh.
|
default |
|
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. |
Implements XrdOss.
Definition at line 29 of file XrdOssMirage.cc.
|
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_coloc - Colocate file using the URL encoded path in env "oss.coloc" 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.
Definition at line 34 of file XrdOssMirage.cc.
References opts, XrdSysFAttr::Xat, XRDOSS_new, and XrdOssOK.
|
overridevirtual |
Return storage system features.
Reimplemented from XrdOss.
Definition at line 61 of file XrdOssMirage.cc.
References XRDOSS_HASNAIO.
| std::optional< XrdOssMirageEntry > XrdOssMirage::get_entry_read | ( | const char * | path | ) |
Definition at line 137 of file XrdOssMirage.cc.
| std::optional< XrdOssMirageEntryPtr > XrdOssMirage::get_entry_write | ( | const char * | path | ) |
Definition at line 147 of file XrdOssMirage.cc.
|
overridevirtual |
Initialize the storage system V1 (deprecated).
| lp | - Pointer to the message logging object. |
| cfn | - Pointer to the configuration file. |
Implements XrdOss.
Definition at line 66 of file XrdOssMirage.cc.
References XrdOssOK.
|
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. |
Implements XrdOss.
Definition at line 71 of file XrdOssMirage.cc.
|
overridevirtual |
Obtain a new director object to be used for future directory requests.
| tident | - The trace identifier. |
Implements XrdOss.
Definition at line 19 of file XrdOssMirage.cc.
References tident.
|
overridevirtual |
Obtain a new file object to be used for a future file requests.
| tident | - The trace identifier. |
Implements XrdOss.
Definition at line 24 of file XrdOssMirage.cc.
References tident.
|
overridevirtual |
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). |
virtual int Reloc(const char *tident, const char *path, */ const char *cgName, const char *anchor=0);
/*! 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.
Definition at line 76 of file XrdOssMirage.cc.
|
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. |
Implements XrdOss.
Definition at line 81 of file XrdOssMirage.cc.
References XrdOssOK.
|
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. |
Implements XrdOss.
Definition at line 97 of file XrdOssMirage.cc.
|
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. |
Implements XrdOss.
Definition at line 110 of file XrdOssMirage.cc.
References XrdOssOK.
|
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. |
Implements XrdOss.
Definition at line 125 of file XrdOssMirage.cc.
References XrdOssOK.