xrootd
Functions | Variables
XrdOssApi.cc File Reference
#include <unistd.h>
#include <errno.h>
#include <fcntl.h>
#include <signal.h>
#include <strings.h>
#include <stdio.h>
#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/XrdOucXAttr.hh"
#include "XrdSys/XrdSysError.hh"
#include "XrdSys/XrdSysHeaders.hh"
#include "XrdSys/XrdSysPlatform.hh"
#include "XrdSys/XrdSysPlugin.hh"
Include dependency graph for XrdOssApi.cc:

Functions

XrdOssXrdOssGetSS (XrdSysLogger *Logger, const char *config_fn, const char *OssLib, const char *OssParms, XrdVersionInfo &urVer)
 
XrdOssXrdOssDefaultSS (XrdSysLogger *logger, const char *cfg_fn, XrdVersionInfo &urVer)
 

Variables

XrdOssSysXrdOssSS = 0
 
XrdSysError OssEroute (0,"oss_")
 

Function Documentation

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.

Parameters
loggerthe address of the logging object to direct messages.
cfg_fnthe address of the configuration file path.
urVerthe 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.
Returns
XrdOss pointer to a default configured storage system object. 0 a storage system object could not be created because of configration problems or your version is incompatible.

References XrdOssGetSS().

XrdOss* XrdOssGetSS ( XrdSysLogger Logger,
const char *  config_fn,
const char *  OssLib,
const char *  OssParms,
XrdVersionInfo urVer 
)

Variable Documentation

XrdOucTrace OssTrace& OssEroute
XrdOssSys* XrdOssSS = 0