XRootD
XrdOfsFS.cc File Reference
+ Include dependency graph for XrdOfsFS.cc:

Go to the source code of this file.

Functions

XrdSfsFileSystemXrdSfsGetDefaultFileSystem (XrdSfsFileSystem *native_fs, XrdSysLogger *lp, const char *configfn, XrdOucEnv *EnvInfo)
 

Variables

XrdOfsXrdOfsFS = NULL
 

Function Documentation

◆ XrdSfsGetDefaultFileSystem()

XrdSfsFileSystem* XrdSfsGetDefaultFileSystem ( XrdSfsFileSystem native_fs,
XrdSysLogger lp,
const char *  configfn,
XrdOucEnv EnvInfo 
)

Definition at line 49 of file XrdOfsFS.cc.

53 {
54  extern XrdSysError OfsEroute;
55  extern XrdSysTrace OfsTrace;
56  static XrdSysMutex XrdDefaultOfsMutex;
57  static XrdOfs XrdDefaultOfsFS;
58 
59 // No need to herald this as it's now the default filesystem
60 //
61  OfsEroute.SetPrefix("ofs_");
62  OfsEroute.logger(lp);
63  OfsTrace.SetLogger(lp);
64 
65 // Initialize the subsystems
66 //
67  {
68  XrdSysMutexHelper sentry(XrdDefaultOfsMutex);
69  if (XrdOfsFS == NULL) {
70  XrdOfsFS = &XrdDefaultOfsFS;
71  XrdOfsFS->ConfigFN = (configfn && *configfn ? strdup(configfn) : 0);
72  if ( XrdOfsFS->Configure(OfsEroute, EnvInfo) ) return 0;
73  }
74  }
75 
76 // All done, we can return the callout vector to these routines.
77 //
78  return XrdOfsFS;
79 }
XrdOfs * XrdOfsFS
Definition: XrdOfsFS.cc:47
XrdSysError OfsEroute(0)
XrdSysTrace OfsTrace("ofs")
char * ConfigFN
Definition: XrdOfs.hh:420
virtual int Configure(XrdSysError &)
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

References XrdOfs::ConfigFN, XrdOfs::Configure(), XrdSysError::logger(), OfsEroute, OfsTrace, XrdSysTrace::SetLogger(), XrdSysError::SetPrefix(), and XrdOfsFS.

Referenced by LoadFS().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ XrdOfsFS