XRootD
Loading...
Searching...
No Matches
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

namespace  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
void setFS(XrdSfsFileSystem *fsp)
const char * SetPrefix(const char *prefix)
XrdSysLogger * logger(XrdSysLogger *lp=0)
void SetLogger(XrdSysLogger *logp)
XrdSsiStats Stats
XrdSfsFileSystem * theFS
Definition XrdSsiFile.cc:54
XrdSysTrace Trace
Definition XrdSsiSfs.cc:107
XrdSysLogger * Logger
XrdSysError Log

References XrdSsiSfsConfig::Configure(), 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  )