XRootD
Loading...
Searching...
No Matches
XrdOssArc.cc File Reference
#include <fcntl.h>
#include <sys/stat.h>
#include "XrdVersion.hh"
#include "Xrd/XrdScheduler.hh"
#include "XrdOssArc/XrdOssArc.hh"
#include "XrdOssArc/XrdOssArcCompose.hh"
#include "XrdOssArc/XrdOssArcConfig.hh"
#include "XrdOssArc/XrdOssArcStage.hh"
#include "XrdOssArc/XrdOssArcZipFile.hh"
#include "XrdOssArc/XrdOssArcTrace.hh"
#include "XrdOuc/XrdOucEnv.hh"
#include "XrdOuc/XrdOucECMsg.hh"
#include "XrdSec/XrdSecEntity.hh"
#include "XrdSys/XrdSysE2T.hh"
#include "XrdSys/XrdSysError.hh"
#include "XrdSys/XrdSysPlatform.hh"
Include dependency graph for XrdOssArc.cc:

Go to the source code of this file.

Namespaces

namespace  XrdOssArcGlobals

Macros

#define Neg(x)

Functions

 XrdVERSIONINFO (XrdOssAddStorageSystem2, XrdOssArc) extern "C"

Variables

XrdOssArcXrdOssArcGlobals::ArcSS = 0
XrdSysTrace XrdOssArcGlobals::ArcTrace ("OssArc")
XrdOssArcConfig XrdOssArcGlobals::Config
XrdOucECMsg XrdOssArcGlobals::ecMsg
XrdSysError XrdOssArcGlobals::Elog (0, "OssArc_")
XrdOssXrdOssArcGlobals::ossP = 0
XrdSchedulerXrdOssArcGlobals::schedP = 0

Macro Definition Documentation

◆ Neg

#define Neg ( x)
Value:
(x > 0 ? -x : x)

Definition at line 78 of file XrdOssArc.cc.

Referenced by XrdOssArcFile::Open(), and XrdOssArcDir::Opendir().

Function Documentation

◆ XrdVERSIONINFO()

XrdVERSIONINFO ( XrdOssAddStorageSystem2 ,
XrdOssArc  )

Definition at line 88 of file XrdOssArc.cc.

91{
94 const char *config_fn,
95 const char *parms,
96 XrdOucEnv *envP)
97{
98// Activate our error message object
99//
100 Elog.logger(Logger);
101
102// Allocate an instance of the OssArc object
103//
104 ArcSS = new XrdOssArc(*curr_oss);
105 ossP = curr_oss;
106
107// Initialize it
108//
109 if (ArcSS->InitArc(config_fn, parms, envP) != XrdOssOK)
110 {delete ArcSS;
111 return NULL;
112 }
113
114// Upon success, return it.
115//
116 return (XrdOss*)ArcSS;
117}
118}
static XrdSysLogger Logger
XrdOss * XrdOssAddStorageSystem2(XrdOss *curr_oss, XrdSysLogger *Logger, const char *config_fn, const char *parms, XrdOucEnv *envP)
Definition XrdOssCsi.cc:455
#define XrdOssOK
Definition XrdOss.hh:54
XrdOssArc * ArcSS
Definition XrdOssArc.cc:62
XrdSysError Elog(0, "OssArc_")

References XrdOssArcGlobals::ArcSS, XrdOssArcGlobals::Elog, Logger, XrdOssArcGlobals::ossP, XrdOssAddStorageSystem2(), and XrdOssOK.

Here is the call graph for this function: