![]() |
XRootD
|
#include <XrdOssStatsFileSystem.hh>
Public Member Functions | |
StatsFileSystem (XrdOss *oss, XrdSysLogger *log, const char *configName, XrdOucEnv *envP) | |
virtual | ~StatsFileSystem () |
int | Chmod (const char *path, mode_t mode, XrdOucEnv *env=0) override |
bool | Config (const char *configfn) |
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 |
![]() | |
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) |
![]() | |
XrdOss () | |
Constructor and Destructor. More... | |
virtual | ~XrdOss () |
Friends | |
class | StatsDirectory |
class | StatsFile |
Additional Inherited Members | |
![]() | |
static const int | PF_csVer = 0x00000001 |
verified file checksums present More... | |
static const int | PF_csVun = 0x00000002 |
unverified file checksums present More... | |
static const int | PF_dInfo = 0x00000001 |
static const int | PF_dNums = 0x00000002 |
static const int | PF_dStat = 0x00000008 |
static const int | PF_isLFN = 0x00000004 |
![]() | |
XrdOss & | wrapPI |
Definition at line 18 of file XrdOssStatsFileSystem.hh.
StatsFileSystem::StatsFileSystem | ( | XrdOss * | oss, |
XrdSysLogger * | log, | ||
const char * | configName, | ||
XrdOucEnv * | envP | ||
) |
Definition at line 14 of file XrdOssStatsFileSystem.cc.
References Config(), XrdSysError::Emsg(), XrdProxy::envP, XrdOucEnv::GetPtr(), XrdSysThread::Run(), and XrdSysError::Say().
|
virtual |
Definition at line 46 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 118 of file XrdOssStatsFileSystem.cc.
References XrdOss::Chmod(), and XrdOssWrapper::wrapPI.
bool StatsFileSystem::Config | ( | const char * | configfn | ) |
Definition at line 59 of file XrdOssStatsFileSystem.cc.
References Macaroons::All, Macaroons::Debug, XrdSysError::Emsg(), Macaroons::Error, XrdOucGatherConf::Gather(), XrdOucGatherConf::GetLine(), XrdSysError::getMsgMask(), XrdOucGatherConf::GetToken(), Info, LogMaskToString(), ParseDuration(), XrdSysError::setMsgMask(), XrdOucGatherConf::trim_lines, and Warning.
Referenced by StatsFileSystem().
|
overridevirtual |
Obtain a new director object to be used for future directory requests.
tident | - The trace identifier. |
Reimplemented from XrdOssWrapper.
Definition at line 104 of file XrdOssStatsFileSystem.cc.
References XrdOss::newDir(), StatsDirectory, 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 111 of file XrdOssStatsFileSystem.cc.
References XrdOss::newFile(), StatsFile, 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 124 of file XrdOssStatsFileSystem.cc.
References XrdOss::Rename(), 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 131 of file XrdOssStatsFileSystem.cc.
References opts, XrdOss::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 138 of file XrdOssStatsFileSystem.cc.
References XrdOss::StatFS(), and 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 145 of file XrdOssStatsFileSystem.cc.
References XrdOss::StatLS(), and XrdOssWrapper::wrapPI.
|
overridevirtual |
Reimplemented from XrdOssWrapper.
Definition at line 158 of file XrdOssStatsFileSystem.cc.
References XrdOss::StatPF(), 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 152 of file XrdOssStatsFileSystem.cc.
References opts, XrdOss::StatPF(), 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 164 of file XrdOssStatsFileSystem.cc.
References XrdOss::StatVS(), and 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 170 of file XrdOssStatsFileSystem.cc.
References XrdOss::StatXA(), and 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 177 of file XrdOssStatsFileSystem.cc.
References XrdOss::StatXP(), and 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 184 of file XrdOssStatsFileSystem.cc.
References XrdOss::Truncate(), 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 191 of file XrdOssStatsFileSystem.cc.
References XrdMpx::Opts, XrdOss::Unlink(), and XrdOssWrapper::wrapPI.
|
friend |
Definition at line 20 of file XrdOssStatsFileSystem.hh.
Referenced by newDir().
|
friend |
Definition at line 19 of file XrdOssStatsFileSystem.hh.
Referenced by newFile().