|
xrootd
|
#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"
Functions | |
| XrdOss * | XrdOssGetSS (XrdSysLogger *Logger, const char *config_fn, const char *OssLib, const char *OssParms, XrdVersionInfo &urVer) |
| XrdOss * | XrdOssDefaultSS (XrdSysLogger *logger, const char *cfg_fn, XrdVersionInfo &urVer) |
Variables | |
| XrdOssSys * | XrdOssSS = 0 |
| XrdSysError | OssEroute (0,"oss_") |
| 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. |
References XrdOssGetSS().
| XrdOss* XrdOssGetSS | ( | XrdSysLogger * | Logger, |
| const char * | config_fn, | ||
| const char * | OssLib, | ||
| const char * | OssParms, | ||
| XrdVersionInfo & | urVer | ||
| ) |
References Debug, XrdSysPlugin::getPlugin(), XrdOssSys::Init(), XrdSysError::logger(), XrdOssSys::myVersion, OssEroute, XrdSysPlugin::Persist(), XrdSysPlugin::VerCmp(), and XrdVersionInfo::vNum.
Referenced by XrdCmsConfig::ConfigOSS(), XrdFrmConfig::Configure(), XrdOfs::Configure(), and XrdOssDefaultSS().
| XrdOucTrace OssTrace& OssEroute |
Referenced by XrdOssSys::Init(), XrdOssFile::Open(), XrdOssFile::Open_ufs(), and XrdOssGetSS().
| XrdOssSys* XrdOssSS = 0 |
1.8.3.1