xrootd
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Protected Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | Friends | List of all members
XrdBwm Class Reference

#include <XrdBwm.hh>

Inheritance diagram for XrdBwm:
Inheritance graph
[legend]
Collaboration diagram for XrdBwm:
Collaboration graph
[legend]

Public Member Functions

XrdSfsDirectorynewDir (char *user=0, int monid=0)
 
XrdSfsFilenewFile (char *user=0, int monid=0)
 
int chmod (const char *Name, XrdSfsMode Mode, XrdOucErrInfo &out_error, const XrdSecEntity *client, const char *opaque=0)
 
int exists (const char *fileName, XrdSfsFileExistence &exists_flag, XrdOucErrInfo &out_error, const XrdSecEntity *client, const char *opaque=0)
 
int fsctl (const int cmd, const char *args, XrdOucErrInfo &out_error, const XrdSecEntity *client)
 
int getStats (char *buff, int blen)
 
const char * getVersion ()
 
int mkdir (const char *dirName, XrdSfsMode Mode, XrdOucErrInfo &out_error, const XrdSecEntity *client, const char *opaque=0)
 
int prepare (XrdSfsPrep &pargs, XrdOucErrInfo &out_error, const XrdSecEntity *client=0)
 
int rem (const char *path, XrdOucErrInfo &out_error, const XrdSecEntity *client, const char *info=0)
 
int remdir (const char *dirName, XrdOucErrInfo &out_error, const XrdSecEntity *client, const char *info=0)
 
int rename (const char *oldFileName, const char *newFileName, XrdOucErrInfo &out_error, const XrdSecEntity *client, const char *infoO=0, const char *infoN=0)
 
int stat (const char *Name, struct stat *buf, XrdOucErrInfo &out_error, const XrdSecEntity *client, const char *opaque=0)
 
int stat (const char *Name, mode_t &mode, XrdOucErrInfo &out_error, const XrdSecEntity *client, const char *opaque=0)
 
int truncate (const char *Name, XrdSfsFileOffset fileOffset, XrdOucErrInfo &out_error, const XrdSecEntity *client=0, const char *opaque=0)
 
virtual int Configure (XrdSysError &)
 
 XrdBwm ()
 
virtual ~XrdBwm ()
 
- Public Member Functions inherited from XrdSfsFileSystem
virtual XrdSfsDirectorynewDir (XrdOucErrInfo &eInfo)
 
virtual XrdSfsFilenewFile (XrdOucErrInfo &eInfo)
 
virtual int chksum (csFunc Func, const char *csName, const char *path, XrdOucErrInfo &eInfo, const XrdSecEntity *client=0, const char *opaque=0)
 
virtual void Connect (const XrdSecEntity *client=0)
 
virtual void Disc (const XrdSecEntity *client=0)
 
virtual void EnvInfo (XrdOucEnv *envP)
 
virtual int FAttr (XrdSfsFACtl *faReq, XrdOucErrInfo &eInfo, const XrdSecEntity *client=0)
 
uint64_t Features ()
 
virtual int FSctl (const int cmd, XrdSfsFSctl &args, XrdOucErrInfo &eInfo, const XrdSecEntity *client=0)
 
virtual int getChkPSize ()
 
virtual int gpFile (gpfFunc &gpAct, XrdSfsGPFile &gpReq, XrdOucErrInfo &eInfo, const XrdSecEntity *client=0)
 
 XrdSfsFileSystem ()
 Constructor and Destructor.
 
virtual ~XrdSfsFileSystem ()
 

Public Attributes

XrdVersionInfo * myVersion
 
char * ConfigFN
 
char * HostName
 
char * HostPref
 
char * myDomain
 
int myDomLen
 
char Authorize
 
char Reserved [7]
 

Protected Member Functions

virtual int ConfigXeq (char *var, XrdOucStream &, XrdSysError &)
 
int Emsg (const char *, XrdOucErrInfo &, int, const char *, const char *y="")
 
int Emsg (const char *, XrdOucErrInfo &, const char *, const char *, const char *y="")
 
int Stall (XrdOucErrInfo &, int, const char *)
 

Private Member Functions

int remove (const char type, const char *path, XrdOucErrInfo &out_error, const XrdSecEntity *client, const char *opaque)
 
int setupAuth (XrdSysError &)
 
int setupPolicy (XrdSysError &)
 
int xalib (XrdOucStream &, XrdSysError &)
 
int xlog (XrdOucStream &, XrdSysError &)
 
int xpol (XrdOucStream &, XrdSysError &)
 
int xtrace (XrdOucStream &, XrdSysError &)
 

Private Attributes

XrdAccAuthorizeAuthorization
 
char * AuthLib
 
char * AuthParm
 
XrdBwmLoggerLogger
 
XrdBwmPolicyPolicy
 
char * PolLib
 
char * PolParm
 
char * locResp
 
int locRlen
 
int PolSlotsIn
 
int PolSlotsOut
 
XrdSysMutex ocMutex
 

Static Private Attributes

static XrdBwmHandledummyHandle
 

Friends

class XrdBwmDirectory
 
class XrdBwmFile
 

Additional Inherited Members

- Public Types inherited from XrdSfsFileSystem
enum  csFunc { csCalc = 0 , csGet , csSize }
 
enum  gpfFunc { gpfCancel =0 , gpfGet , gpfPut }
 
- Protected Attributes inherited from XrdSfsFileSystem
uint64_t FeatureSet
 Adjust features at initialization.
 

Constructor & Destructor Documentation

◆ XrdBwm()

XrdBwm::XrdBwm ( )

◆ ~XrdBwm()

virtual XrdBwm::~XrdBwm ( )
inlinevirtual

Member Function Documentation

◆ chmod()

int XrdBwm::chmod ( const char *  path,
XrdSfsMode  mode,
XrdOucErrInfo eInfo,
const XrdSecEntity client,
const char *  opaque = 0 
)
virtual

Change file mode settings.

Parameters
path- Pointer to the path of the file in question.
mode- The new file mode setting.
eInfo- The object where error info or results are to be returned.
client- Client's identify (see common description).
opaque- Path's CGI information (see common description).
Returns
One of SFS_OK, SFS_ERROR, SFS_REDIRECT or SFS_STALL

Implements XrdSfsFileSystem.

◆ Configure()

virtual int XrdBwm::Configure ( XrdSysError )
virtual

◆ ConfigXeq()

virtual int XrdBwm::ConfigXeq ( char *  var,
XrdOucStream ,
XrdSysError  
)
protectedvirtual

◆ Emsg() [1/2]

int XrdBwm::Emsg ( const char *  ,
XrdOucErrInfo ,
const char *  ,
const char *  ,
const char *  y = "" 
)
protected

◆ Emsg() [2/2]

int XrdBwm::Emsg ( const char *  ,
XrdOucErrInfo ,
int  ,
const char *  ,
const char *  y = "" 
)
protected

◆ exists()

int XrdBwm::exists ( const char *  path,
XrdSfsFileExistence eFlag,
XrdOucErrInfo eInfo,
const XrdSecEntity client,
const char *  opaque = 0 
)
virtual

Return directory/file existence information (short stat).

Parameters
path- Pointer to the path of the file/directory in question.
eFlag- Where the results are to be returned.
eInfo- The object where error info is to be returned.
client- Client's identify (see common description).
opaque- Path's CGI information (see common description).
Returns
One of SFS_OK, SFS_ERROR, SFS_REDIRECT, SFS_STALL, or SFS_STARTED When SFS_OK is returned, eFlag must be properly set, as follows: XrdSfsFileExistNo - path does not exist XrdSfsFileExistIsFile - path refers to an online file XrdSfsFileExistIsDirectory - path refers to an online directory XrdSfsFileExistIsOffline - path refers to an offline file XrdSfsFileExistIsOther - path is neither a file nor directory

Implements XrdSfsFileSystem.

◆ fsctl()

int XrdBwm::fsctl ( const int  cmd,
const char *  args,
XrdOucErrInfo eInfo,
const XrdSecEntity client 
)
virtual

Perform a filesystem control operation (version 1)

Parameters
cmd- The operation to be performed: SFS_FSCTL_LOCATE Locate a file or file servers SFS_FSCTL_STATCC Return cluster config status SFS_FSCTL_STATFS Return physical filesystem information SFS_FSCTL_STATLS Return logical filesystem information SFS_FSCTL_STATXA Return extended attributes
args- Arguments specific to cmd. SFS_FSCTL_LOCATE args points to the path to be located "" path is the first exported path "*" return all current servers "*&zwj;/" return servers exporting path o/w return servers having the path SFS_FSCTL_STATFS Path in the filesystem in question. SFS_FSCTL_STATLS Path in the filesystem in question. SFS_FSCTL_STATXA Path of the file whose xattr is wanted.
eInfo- The object where error info or results are to be returned.
client- Client's identify (see common description).
Returns
SFS_OK a null response is sent.
SFS_DATA error.code length of the data to be sent. error.message contains the data to be sent.
SFS_STARTED Operation started result will be returned via callback. Valid only for for SFS_FSCTL_LOCATE, SFS_FSCTL_STATFS, and SFS_FSCTL_STATXA o/w one of SFS_ERROR, SFS_REDIRECT, or SFS_STALL.

Implements XrdSfsFileSystem.

◆ getStats()

int XrdBwm::getStats ( char *  buff,
int  blen 
)
inlinevirtual

Return statistical information.

Parameters
buff- Pointer to the buffer where results are to be returned. Statistics should be in standard XML format. If buff is nil then only maximum size information is wanted.
blen- The length available in buff.
Returns
Number of bytes placed in buff. When buff is nil, the maximum number of bytes that could have been placed in buff.

Implements XrdSfsFileSystem.

◆ getVersion()

const char * XrdBwm::getVersion ( )
virtual

Get version string.

Returns
The version string. Normally this is the XrdVERSION value.

Implements XrdSfsFileSystem.

◆ mkdir()

int XrdBwm::mkdir ( const char *  path,
XrdSfsMode  mode,
XrdOucErrInfo eInfo,
const XrdSecEntity client,
const char *  opaque = 0 
)
virtual

Create a directory.

Parameters
path- Pointer to the path of the directory to be created.
mode- The directory mode setting.
eInfo- The object where error info is to be returned.
client- Client's identify (see common description).
opaque- Path's CGI information (see common description).
Returns
One of SFS_OK, SFS_ERROR, SFS_REDIRECT, or SFS_STALL

Implements XrdSfsFileSystem.

◆ newDir()

XrdSfsDirectory * XrdBwm::newDir ( char *  user = 0,
int  MonID = 0 
)
inlinevirtual

Obtain a new director object to be used for future directory requests.

Parameters
user- Text identifying the client responsible for this call. The pointer may be null if identification is missing.
MonID- The monitoring identifier assigned to this and all future requests using the returned object.
Returns
pointer- Pointer to an XrdSfsDirectory object.
nil - Insufficient memory to allocate an object.

Implements XrdSfsFileSystem.

References XrdBwmDirectory.

◆ newFile()

XrdSfsFile * XrdBwm::newFile ( char *  user = 0,
int  MonID = 0 
)
inlinevirtual

Obtain a new file object to be used for a future file requests.

Parameters
user- Text identifying the client responsible for this call. The pointer may be null if identification is missing.
MonID- The monitoring identifier assigned to this and all future requests using the returned object.
Returns
pointer- Pointer to an XrdSfsFile object.
nil - Insufficient memory to allocate an object.

Implements XrdSfsFileSystem.

References XrdBwmFile.

◆ prepare()

int XrdBwm::prepare ( XrdSfsPrep pargs,
XrdOucErrInfo eInfo,
const XrdSecEntity client = 0 
)
virtual

Prepare a file for future processing.

Parameters
pargs- The preapre arguments.
eInfo- The object where error info is to be returned.
client- Client's identify (see common description).
Returns
One of SFS_OK, SFS_ERROR, SFS_REDIRECT, or SFS_STALL

Implements XrdSfsFileSystem.

◆ rem()

int XrdBwm::rem ( const char *  path,
XrdOucErrInfo eInfo,
const XrdSecEntity client,
const char *  opaque = 0 
)
inlinevirtual

Remove a file.

Parameters
path- Pointer to the path of the file to be removed.
eInfo- The object where error info is to be returned.
client- Client's identify (see common description).
opaque- Path's CGI information (see common description).
Returns
One of SFS_OK, SFS_ERROR, SFS_REDIRECT, or SFS_STALL

Implements XrdSfsFileSystem.

References remove().

◆ remdir()

int XrdBwm::remdir ( const char *  path,
XrdOucErrInfo eInfo,
const XrdSecEntity client,
const char *  opaque = 0 
)
inlinevirtual

Remove a directory.

Parameters
path- Pointer to the path of the directory to be removed.
eInfo- The object where error info is to be returned.
client- Client's identify (see common description).
opaque- Path's CGI information (see common description).
Returns
One of SFS_OK, SFS_ERROR, SFS_REDIRECT, or SFS_STALL

Implements XrdSfsFileSystem.

References remove().

◆ remove()

int XrdBwm::remove ( const char  type,
const char *  path,
XrdOucErrInfo out_error,
const XrdSecEntity client,
const char *  opaque 
)
private

Referenced by rem(), and remdir().

◆ rename()

int XrdBwm::rename ( const char *  oPath,
const char *  nPath,
XrdOucErrInfo eInfo,
const XrdSecEntity client,
const char *  opaqueO = 0,
const char *  opaqueN = 0 
)
virtual

Rename a file or directory.

Parameters
oPath- Pointer to the path to be renamed.
nPath- Pointer to the path oPath is to have.
eInfo- The object where error info is to be returned.
client- Client's identify (see common description).
opaqueO- oPath's CGI information (see common description).
opaqueN- nPath's CGI information (see common description).
Returns
One of SFS_OK, SFS_ERROR, SFS_REDIRECT, or SFS_STALL

Implements XrdSfsFileSystem.

◆ setupAuth()

int XrdBwm::setupAuth ( XrdSysError )
private

◆ setupPolicy()

int XrdBwm::setupPolicy ( XrdSysError )
private

◆ Stall()

int XrdBwm::Stall ( XrdOucErrInfo ,
int  ,
const char *   
)
protected

◆ stat() [1/2]

int XrdBwm::stat ( const char *  path,
mode_t &  mode,
XrdOucErrInfo eInfo,
const XrdSecEntity client,
const char *  opaque = 0 
)
virtual

Return mode information on a file or directory.

Parameters
path- Pointer to the path in question.
mode- Where full mode information is to be returned.
eInfo- The object where error info is to be returned.
client- Client's identify (see common description).
opaque- path's CGI information (see common description).
Returns
One of SFS_OK, SFS_ERROR, SFS_REDIRECT, SFS_STALL, or SFS_STARTED When SFS_OK is returned, mode must contain mode information. If teh mode is -1 then it is taken as an offline file.

Implements XrdSfsFileSystem.

◆ stat() [2/2]

int XrdBwm::stat ( const char *  Name,
struct stat *  buf,
XrdOucErrInfo eInfo,
const XrdSecEntity client,
const char *  opaque = 0 
)
virtual

Return state information on a file or directory.

Parameters
Name- Pointer to the path in question.
buf- Pointer to the structure where info it to be returned.
eInfo- The object where error info is to be returned.
client- Client's identify (see common description).
opaque- path's CGI information (see common description).
Returns
One of SFS_OK, SFS_ERROR, SFS_REDIRECT, SFS_STALL, or SFS_STARTED When SFS_OK is returned, buf must contain stat information.

Implements XrdSfsFileSystem.

◆ truncate()

int XrdBwm::truncate ( const char *  path,
XrdSfsFileOffset  fsize,
XrdOucErrInfo eInfo,
const XrdSecEntity client = 0,
const char *  opaque = 0 
)
virtual

Truncate a file.

Parameters
path- Pointer to the path of the file to be truncated.
fsize- The size that the file is to have.
eInfo- The object where error info is to be returned.
client- Client's identify (see common description).
opaque- path's CGI information (see common description).
Returns
One of SFS_OK, SFS_ERROR, SFS_REDIRECT, or SFS_STALL

Implements XrdSfsFileSystem.

◆ xalib()

int XrdBwm::xalib ( XrdOucStream ,
XrdSysError  
)
private

◆ xlog()

int XrdBwm::xlog ( XrdOucStream ,
XrdSysError  
)
private

◆ xpol()

int XrdBwm::xpol ( XrdOucStream ,
XrdSysError  
)
private

◆ xtrace()

int XrdBwm::xtrace ( XrdOucStream ,
XrdSysError  
)
private

Friends And Related Symbol Documentation

◆ XrdBwmDirectory

friend class XrdBwmDirectory
friend

Referenced by newDir().

◆ XrdBwmFile

friend class XrdBwmFile
friend

Referenced by newFile().

Member Data Documentation

◆ AuthLib

char* XrdBwm::AuthLib
private

◆ Authorization

XrdAccAuthorize* XrdBwm::Authorization
private

◆ Authorize

char XrdBwm::Authorize

◆ AuthParm

char* XrdBwm::AuthParm
private

◆ ConfigFN

char* XrdBwm::ConfigFN

◆ dummyHandle

XrdBwmHandle* XrdBwm::dummyHandle
staticprivate

◆ HostName

char* XrdBwm::HostName

◆ HostPref

char* XrdBwm::HostPref

◆ locResp

char* XrdBwm::locResp
private

◆ locRlen

int XrdBwm::locRlen
private

◆ Logger

XrdBwmLogger* XrdBwm::Logger
private

◆ myDomain

char* XrdBwm::myDomain

◆ myDomLen

int XrdBwm::myDomLen

◆ myVersion

XrdVersionInfo* XrdBwm::myVersion

◆ ocMutex

XrdSysMutex XrdBwm::ocMutex
private

◆ Policy

XrdBwmPolicy* XrdBwm::Policy
private

◆ PolLib

char* XrdBwm::PolLib
private

◆ PolParm

char* XrdBwm::PolParm
private

◆ PolSlotsIn

int XrdBwm::PolSlotsIn
private

◆ PolSlotsOut

int XrdBwm::PolSlotsOut
private

◆ Reserved

char XrdBwm::Reserved[7]

The documentation for this class was generated from the following file: