#include <XrdOssStatsFileSystem.hh>
Public Member Functions | |
| FileSystem (XrdOss *oss, XrdSysLogger *log, const char *configName, XrdOucEnv *envP) | |
| virtual | ~FileSystem () |
| int | Chmod (const char *path, mode_t mode, XrdOucEnv *env=0) override |
| bool | Config (const char *configfn) |
| bool | InitSuccessful (std::string &errMsg) |
| XrdOssDF * | newDir (const char *user=0) override |
| XrdOssDF * | newFile (const char *user=0) override |
| int | Rename (const char *oPath, const char *nPath, XrdOucEnv *oEnvP=0, XrdOucEnv *nEnvP=0) override |
| int | Stat (const char *path, struct stat *buff, int opts=0, XrdOucEnv *env=0) override |
| int | StatFS (const char *path, char *buff, int &blen, XrdOucEnv *env=0) override |
| int | StatLS (XrdOucEnv &env, const char *path, char *buff, int &blen) override |
| int | StatPF (const char *path, struct stat *buff) override |
| int | StatPF (const char *path, struct stat *buff, int opts) override |
| int | StatVS (XrdOssVSInfo *vsP, const char *sname=0, int updt=0) override |
| int | StatXA (const char *path, char *buff, int &blen, XrdOucEnv *env=0) override |
| int | StatXP (const char *path, unsigned long long &attr, XrdOucEnv *env=0) override |
| int | Truncate (const char *path, unsigned long long fsize, XrdOucEnv *env=0) override |
| int | Unlink (const char *path, int Opts=0, XrdOucEnv *env=0) override |
| Public Member Functions inherited from XrdOssWrapper | |
| XrdOssWrapper (XrdOss &ossRef) | |
| virtual | ~XrdOssWrapper () |
| virtual void | Connect (XrdOucEnv &env) |
| virtual int | Create (const char *tid, const char *path, mode_t mode, XrdOucEnv &env, int opts=0) |
| virtual void | Disc (XrdOucEnv &env) |
| virtual void | EnvInfo (XrdOucEnv *envP) |
| virtual uint64_t | Features () |
| virtual int | FSctl (int cmd, int alen, const char *args, char **resp=0) |
| virtual int | Init (XrdSysLogger *lp, const char *cfn) |
| 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 | Mkdir (const char *path, mode_t mode, int mkpath=0, XrdOucEnv *envP=0) |
| virtual int | Reloc (const char *tident, const char *path, const char *cgName, const char *anchor=0) |
| virtual int | Remdir (const char *path, int Opts=0, XrdOucEnv *envP=0) |
| virtual int | Stats (char *buff, int blen) |
| Public Member Functions inherited from XrdOss | |
| XrdOss () | |
| Constructor and Destructor. | |
| virtual | ~XrdOss () |
Friends | |
| class | Directory |
| class | File |
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 22 of file XrdOssStatsFileSystem.hh.
| FileSystem::FileSystem | ( | XrdOss * | oss, |
| XrdSysLogger * | log, | ||
| const char * | configName, | ||
| XrdOucEnv * | envP ) |
Definition at line 17 of file XrdOssStatsFileSystem.cc.
References XrdOss::XrdOss(), XrdOssWrapper::XrdOssWrapper(), Config(), XrdOucEnv::GetPtr(), and XrdSysThread::Run().
|
virtual |
Definition at line 57 of file XrdOssStatsFileSystem.cc.
|
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 140 of file XrdOssStatsFileSystem.cc.
References XrdOssWrapper::wrapPI.
| bool FileSystem::Config | ( | const char * | configfn | ) |
Definition at line 81 of file XrdOssStatsFileSystem.cc.
References XrdOssStats::detail::All, XrdOssStats::detail::Debug, XrdOssStats::detail::Error, XrdOucGatherConf::Gather(), XrdOucGatherConf::GetLine(), XrdOucGatherConf::GetToken(), XrdOssStats::detail::Info, XrdOssStats::detail::LogMaskToString(), XrdOssStats::detail::ParseDuration(), XrdOucGatherConf::trim_lines, and XrdOssStats::detail::Warning.
Referenced by FileSystem().
| bool FileSystem::InitSuccessful | ( | std::string & | errMsg | ) |
Definition at line 60 of file XrdOssStatsFileSystem.cc.
|
overridevirtual |
Obtain a new director object to be used for future directory requests.
| tident | - The trace identifier. |
Reimplemented from XrdOssWrapper.
Definition at line 126 of file XrdOssStatsFileSystem.cc.
References Directory, and XrdOssWrapper::wrapPI.
|
overridevirtual |
Obtain a new file object to be used for a future file requests.
| tident | - The trace identifier. |
Reimplemented from XrdOssWrapper.
Definition at line 133 of file XrdOssStatsFileSystem.cc.
References File, 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 146 of file XrdOssStatsFileSystem.cc.
References 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 153 of file XrdOssStatsFileSystem.cc.
References opts, stat, and XrdOssWrapper::wrapPI.
|
overridevirtual |
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(). |
| envP | - Pointer to environmental information. |
Reimplemented from XrdOssWrapper.
Definition at line 160 of file XrdOssStatsFileSystem.cc.
References XrdOssWrapper::wrapPI.
|
overridevirtual |
Return filesystem physical space information associated with a space name.
| 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(). |
Reimplemented from XrdOssWrapper.
Definition at line 167 of file XrdOssStatsFileSystem.cc.
References XrdOssWrapper::wrapPI.
|
overridevirtual |
Reimplemented from XrdOssWrapper.
Definition at line 180 of file XrdOssStatsFileSystem.cc.
References stat, and XrdOssWrapper::wrapPI.
|
overridevirtual |
Return state information on a resident physical file or directory.
| path | - Pointer to the path in question. |
| buff | - Pointer to the structure where info it to be returned. |
| opts | - Options: PF_dInfo - provide bdevID in st_rdev and partID in st_dev based on path. If path is nil then the contents of the of buff is used as the input source. PF_dNums - provide number of bdev's in st_rdev and the number of partitions in st_dev. The path argument is ignored. This superceeds PF_dInfo. PF_dStat - provide file state flags in st_rdev as shown below. Path may not be nil. This supercedes PF_dInfo and PF_dNums. PF_isLFN - Do N2N translation on path (default is none). |
Reimplemented from XrdOssWrapper.
Definition at line 174 of file XrdOssStatsFileSystem.cc.
References opts, stat, and XrdOssWrapper::wrapPI.
|
overridevirtual |
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 XrdOssWrapper.
Definition at line 186 of file XrdOssStatsFileSystem.cc.
References XrdOssWrapper::wrapPI.
|
overridevirtual |
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 XrdOssWrapper.
Definition at line 192 of file XrdOssStatsFileSystem.cc.
References XrdOssWrapper::wrapPI.
|
overridevirtual |
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 XrdOssWrapper.
Definition at line 199 of file XrdOssStatsFileSystem.cc.
References XrdOssWrapper::wrapPI.
|
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 206 of file XrdOssStatsFileSystem.cc.
References 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 213 of file XrdOssStatsFileSystem.cc.
References XrdOssWrapper::wrapPI.
|
friend |
Definition at line 24 of file XrdOssStatsFileSystem.hh.
References XrdOss::XrdOss(), Directory, opts, and stat.
|
friend |
Definition at line 23 of file XrdOssStatsFileSystem.hh.
References File.