XRootD
XrdBwm.cc File Reference
#include <unistd.h>
#include <cerrno>
#include <cstring>
#include <cstdio>
#include <cstdlib>
#include <sys/param.h>
#include <sys/stat.h>
#include <sys/types.h>
#include "XrdVersion.hh"
#include "XrdBwm/XrdBwm.hh"
#include "XrdBwm/XrdBwmTrace.hh"
#include "XrdAcc/XrdAccAuthorize.hh"
#include "XrdNet/XrdNetAddr.hh"
#include "XrdOuc/XrdOucEnv.hh"
#include "XrdOuc/XrdOucUtils.hh"
#include "XrdOuc/XrdOucTrace.hh"
#include "XrdSec/XrdSecEntity.hh"
#include "XrdSfs/XrdSfsAio.hh"
#include "XrdSfs/XrdSfsInterface.hh"
#include "XrdSys/XrdSysError.hh"
#include "XrdSys/XrdSysHeaders.hh"
#include "XrdSys/XrdSysLogger.hh"
#include "XrdSys/XrdSysPlatform.hh"
#include "XrdSys/XrdSysPthread.hh"
+ Include dependency graph for XrdBwm.cc:

Go to the source code of this file.

Functions

XrdSfsFileSystemXrdSfsGetFileSystem (XrdSfsFileSystem *native_fs, XrdSysLogger *lp, const char *configfn)
 
 XrdVERSIONINFO (XrdSfsGetFileSystem, XrdBwm)
 

Variables

XrdSysError BwmEroute (0)
 
XrdBwm XrdBwmFS
 

Function Documentation

◆ XrdSfsGetFileSystem()

XrdSfsFileSystem* XrdSfsGetFileSystem ( XrdSfsFileSystem native_fs,
XrdSysLogger lp,
const char *  configfn 
)

Definition at line 147 of file XrdBwm.cc.

150 {
151 // Do the herald thing
152 //
153  BwmEroute.SetPrefix("bwm_");
154  BwmEroute.logger(lp);
155  BwmEroute.Say("Copr. 2008 Stanford University, Bwm Version " XrdVSTRING);
156 
157 // Initialize the subsystems
158 //
159  XrdBwmFS.ConfigFN = (configfn && *configfn ? strdup(configfn) : 0);
160  if ( XrdBwmFS.Configure(BwmEroute) ) return 0;
161 
162 // All done, we can return the callout vector to these routines.
163 //
164  return &XrdBwmFS;
165 }
XrdBwm XrdBwmFS
Definition: XrdBwm.cc:83
XrdSysError BwmEroute(0)
Definition: XrdBwm.cc:69
char * ConfigFN
Definition: XrdBwm.hh:246
virtual int Configure(XrdSysError &)
Definition: XrdBwmConfig.cc:77
void Say(const char *text1, const char *text2=0, const char *txt3=0, const char *text4=0, const char *text5=0, const char *txt6=0)
Definition: XrdSysError.cc:141
XrdSysLogger * logger(XrdSysLogger *lp=0)
Definition: XrdSysError.hh:141
const char * SetPrefix(const char *prefix)
Definition: XrdSysError.hh:160

References BwmEroute, XrdBwm::ConfigFN, XrdBwm::Configure(), XrdSysError::logger(), XrdSysError::Say(), XrdSysError::SetPrefix(), and XrdBwmFS.

Referenced by XrdBwm::XrdBwm().

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

◆ XrdVERSIONINFO()

XrdVERSIONINFO ( XrdSfsGetFileSystem  ,
XrdBwm   
)

Variable Documentation

◆ BwmEroute

XrdOucTrace BwmTrace & BwmEroute ( )

Definition at line 69 of file XrdBwm.cc.

Referenced by XrdBwm::Emsg(), and XrdSfsGetFileSystem().

◆ XrdBwmFS