XRootD
Loading...
Searching...
No Matches
XrdOssStatsConfig.cc File Reference
#include "XrdVersion.hh"
#include "XrdOssStatsConfig.hh"
#include "XrdOssStatsFileSystem.hh"
#include "XrdSys/XrdSysError.hh"
#include <sstream>
Include dependency graph for XrdOssStatsConfig.cc:

Go to the source code of this file.

Functions

XrdEXPORT XrdOss * XrdOssAddStorageSystem2 (XrdOss *curr_oss, XrdSysLogger *logger, const char *config_fn, const char *parms, XrdOucEnv *envP)
 XrdVERSIONINFO (XrdOssAddStorageSystem2, fsstats)

Function Documentation

◆ XrdOssAddStorageSystem2()

XrdEXPORT XrdOss * XrdOssAddStorageSystem2 ( XrdOss * curr_oss,
XrdSysLogger * logger,
const char * config_fn,
const char * parms,
XrdOucEnv * envP )

Definition at line 108 of file XrdOssStatsConfig.cc.

113{
114
115 XrdSysError log(logger, "fsstats_");
116 std::unique_ptr<XrdOssStats::FileSystem> new_oss(new XrdOssStats::FileSystem(curr_oss, logger, config_fn, envP));
117 if (!new_oss) {
118 return nullptr;
119 }
120 std::string errMsg;
121 if (!new_oss->InitSuccessful(errMsg)) {
122 if (errMsg.empty()) { // Initialization failure was non-fatal; just bypass this module.
123 return curr_oss;
124 } else {
125 log.Emsg("Initialize", "Encountered a fatal XrdOssStats initialization failure:", errMsg.c_str());
126 return nullptr;
127 }
128 }
129 return new_oss.release();
130}

References XrdSysError::Emsg(), and XrdOssAddStorageSystem2().

Here is the call graph for this function:

◆ XrdVERSIONINFO()

XrdVERSIONINFO ( XrdOssAddStorageSystem2 ,
fsstats  )

References XrdOssAddStorageSystem2(), and XrdVERSIONINFO().

Here is the call graph for this function: