![]() |
XRootD
|
#include <unistd.h>
#include <cerrno>
#include <fcntl.h>
#include <signal.h>
#include <strings.h>
#include <cstdio>
#include <sys/file.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/param.h>
#include "XrdVersion.hh"
#include "XrdFrc/XrdFrcXAttr.hh"
#include "XrdOss/XrdOssApi.hh"
#include "XrdOss/XrdOssCache.hh"
#include "XrdOss/XrdOssConfig.hh"
#include "XrdOss/XrdOssError.hh"
#include "XrdOss/XrdOssMio.hh"
#include "XrdOss/XrdOssTrace.hh"
#include "XrdOuc/XrdOucEnv.hh"
#include "XrdOuc/XrdOucName2Name.hh"
#include "XrdOuc/XrdOucPinLoader.hh"
#include "XrdOuc/XrdOucXAttr.hh"
#include "XrdSfs/XrdSfsFlags.hh"
#include "XrdSys/XrdSysAtomics.hh"
#include "XrdSys/XrdSysError.hh"
#include "XrdSys/XrdSysFD.hh"
#include "XrdSys/XrdSysHeaders.hh"
#include "XrdSys/XrdSysPlatform.hh"
#include "XrdSys/XrdSysPlugin.hh"
Go to the source code of this file.
Functions | |
XrdOss * | XrdOssDefaultSS (XrdSysLogger *logger, const char *cfg_fn, XrdVersionInfo &urVer) |
XrdOss * | XrdOssGetSS (XrdSysLogger *Logger, const char *config_fn, const char *OssLib, const char *OssParms, XrdOucEnv *envP, XrdVersionInfo &urVer) |
Variables | |
XrdSysError | OssEroute (0, "oss_") |
XrdSysTrace | OssTrace ("oss") |
XrdOssSys * | XrdOssSS = 0 |
XrdOss* XrdOssDefaultSS | ( | XrdSysLogger * | logger, |
const char * | cfg_fn, | ||
XrdVersionInfo & | urVer | ||
) |
Get the default Storage System object.
Include this file in your code to declare the external function that obtains a default version of the XrdOss object; then simply invoke it.
logger | the address of the logging object to direct messages. |
cfg_fn | the address of the configuration file path. |
urVer | the version string associated with your code. This is generated by the XrdVERSIONINFODEF macro and can be found in XrdVersion.hh include file. You must supply a compatible version identification string. |
Definition at line 165 of file XrdOssApi.cc.
References XrdOssGetSS().
XrdOss* XrdOssGetSS | ( | XrdSysLogger * | Logger, |
const char * | config_fn, | ||
const char * | OssLib, | ||
const char * | OssParms, | ||
XrdOucEnv * | envP, | ||
XrdVersionInfo & | urVer | ||
) |
Definition at line 98 of file XrdOssApi.cc.
References XrdOss::EnvInfo(), XrdProxy::envP, XrdOssSys::Init(), XrdGlobal::Logger, XrdSysError::logger(), XrdOssSys::myVersion, OssEroute, XrdOfsPrepGPIReal::ossP, OssTrace, XrdOucPinLoader::Path(), XrdOucEnv::Put(), XrdOucPinLoader::Resolve(), XrdSysTrace::SetLogger(), and XrdSysPlugin::VerCmp().
Referenced by XrdFrmConfig::Configure(), XrdOfsConfigPI::Load(), and XrdOssDefaultSS().
XrdSysError OssEroute(0, "oss_") | ( | 0 | , |
"oss_" | |||
) |
Referenced by XrdOssSys::Init(), XrdOssFile::Open(), and XrdOssGetSS().
XrdSysTrace OssTrace("oss") | ( | "oss" | ) |
Referenced by XrdOssGetSS().
XrdOssSys* XrdOssSS = 0 |
Definition at line 77 of file XrdOssApi.cc.
Referenced by XrdOssDir::Close(), XrdOssSys::Create(), XrdOssSys::Init(), XrdOssFile::Open(), XrdOssDir::Opendir(), XrdOssFile::Read(), XrdOssDir::Readdir(), XrdOssFile::ReadV(), XrdOssFile::Write(), and XrdOssxfr().