XRootD
XrdSsiSfs.cc File Reference
#include <unistd.h>
#include <dirent.h>
#include <cerrno>
#include <fcntl.h>
#include <memory.h>
#include <cstring>
#include <cstdio>
#include <ctime>
#include <netdb.h>
#include <cstdlib>
#include <sys/param.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <sys/types.h>
#include "XrdNet/XrdNetAddr.hh"
#include "XrdNet/XrdNetIF.hh"
#include "XrdSsi/XrdSsiDir.hh"
#include "XrdSsi/XrdSsiFile.hh"
#include "XrdSsi/XrdSsiProvider.hh"
#include "XrdSsi/XrdSsiSfs.hh"
#include "XrdSsi/XrdSsiSfsConfig.hh"
#include "XrdSsi/XrdSsiStats.hh"
#include "XrdSsi/XrdSsiTrace.hh"
#include "XrdCms/XrdCmsClient.hh"
#include "XrdSys/XrdSysError.hh"
#include "XrdSys/XrdSysHeaders.hh"
#include "XrdSys/XrdSysLogger.hh"
#include "XrdSys/XrdSysPlatform.hh"
#include "XrdSys/XrdSysPthread.hh"
#include "XrdSys/XrdSysTrace.hh"
#include "XrdOuc/XrdOucEnv.hh"
#include "XrdOuc/XrdOucERoute.hh"
#include "XrdOuc/XrdOucLock.hh"
#include "XrdOuc/XrdOucPList.hh"
#include "XrdOuc/XrdOucTList.hh"
#include "XrdSec/XrdSecEntity.hh"
#include "XrdSfs/XrdSfsAio.hh"
#include "XrdSfs/XrdSfsInterface.hh"
#include "XrdSfs/XrdSfsFlags.hh"
#include "XrdVersion.hh"
+ Include dependency graph for XrdSsiSfs.cc:

Go to the source code of this file.

Namespaces

 XrdSsi
 

Functions

XrdSfsFileSystemXrdSfsGetFileSystem2 (XrdSfsFileSystem *nativeFS, XrdSysLogger *logger, const char *configFn, XrdOucEnv *envP)
 
 XrdVERSIONINFO (XrdSfsGetFileSystem2, ssi)
 

Variables

XrdNetIFXrdSsi::myIF = 0
 

Function Documentation

◆ XrdSfsGetFileSystem2()

XrdSfsFileSystem* XrdSfsGetFileSystem2 ( XrdSfsFileSystem nativeFS,
XrdSysLogger logger,
const char *  configFn,
XrdOucEnv envP 
)

Definition at line 126 of file XrdSsiSfs.cc.

130 {
131  static XrdSsiSfs mySfs;
132  static XrdSsiSfsConfig myConfig;
133 
134 // Set pointer to the config and file system
135 //
136  theFS = nativeFS;
137  Stats.setFS(nativeFS);
138 
139 // No need to herald this as it's now the default filesystem
140 //
141  Log.SetPrefix("ssi_");
142  Log.logger(logger);
143  Logger = logger;
144  Trace.SetLogger(logger);
145 
146 // Initialize the subsystems
147 //
148  if (!myConfig.Configure(configFn, envP)) return 0;
149 
150 // All done, we can return the callout vector to these routines.
151 //
152  mySfs.setFeatures(nativeFS);
153  return &mySfs;
154 }
bool Configure(const char *cFN, XrdOucEnv *envP)
void setFeatures(XrdSfsFileSystem *prevFS)
Definition: XrdSsiSfs.cc:440
XrdSysLogger * logger(XrdSysLogger *lp=0)
Definition: XrdSysError.hh:141
const char * SetPrefix(const char *prefix)
Definition: XrdSysError.hh:160
void SetLogger(XrdSysLogger *logp)
Definition: XrdSysTrace.cc:65
XrdSysTrace Trace("cms")
XrdSysError Log
Definition: XrdConfig.cc:112
XrdSysLogger Logger
Definition: XrdGlobals.cc:47
XrdPosixStats Stats
Definition: XrdPosixFile.cc:64
XrdOucEnv * envP
Definition: XrdPss.cc:109
XrdSfsFileSystem * theFS
Definition: XrdSsiFile.cc:54

References XrdSsiSfsConfig::Configure(), XrdProxy::envP, XrdSsi::Log, XrdSsi::Logger, XrdSysError::logger(), XrdSsiSfs::setFeatures(), XrdSsiStats::setFS(), XrdSysTrace::SetLogger(), XrdSysError::SetPrefix(), XrdSsi::Stats, XrdSsi::theFS, and XrdSsi::Trace.

+ Here is the call graph for this function:

◆ XrdVERSIONINFO()

XrdVERSIONINFO ( XrdSfsGetFileSystem2  ,
ssi   
)