XRootD
Loading...
Searching...
No Matches
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{
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}
XrdSysError OfsEroute(0)
XrdSysTrace OfsTrace("ofs")
XrdOfs * XrdOfsFS
Definition XrdOfsFS.cc:47

References OfsEroute, OfsTrace, and XrdOfsFS.

Referenced by LoadFS().

Here is the caller graph for this function:

Variable Documentation

◆ XrdOfsFS