Loading...
Searching...
No Matches
XrdThrottleFileSystem.cc
Go to the documentation of this file.
#include "XrdOfs/XrdOfs.hh"
#include "XrdThrottle/XrdThrottle.hh"
using namespace XrdThrottle;
/*
* A whole ton of pass-through functions which chain to the underlying SFS.
*/
XrdSfsDirectory *
FileSystem::newDir(char *user,
int monid)
{
return m_sfs_ptr->newDir(user, monid);
}
XrdSfsFile *
FileSystem::newFile(char *user,
int monid)
{
XrdSfsFile * chain_file = m_sfs_ptr->newFile(user, monid);
if (chain_file)
{
unique_sfs_ptr chain_file_ptr(chain_file);
// We should really be giving out shared_ptrs to m_throttle, but alas, no boost.
#if __cplusplus >= 201103L
return static_cast<XrdSfsFile*>(new File(user, std::move(chain_file_ptr), m_throttle, m_eroute));
#else
return static_cast<XrdSfsFile*>(new File(user, chain_file_ptr, m_throttle, m_eroute));
#endif
}
return NULL;
}
int
FileSystem::chksum( csFunc Func,
const char *csName,
const char *path,
XrdOucErrInfo &eInfo,
const XrdSecEntity *client,
const char *opaque)
{
return m_sfs_ptr->chksum(Func, csName, path, eInfo, client, opaque);
}
int
FileSystem::chmod(const char *Name,
XrdSfsMode Mode,
XrdOucErrInfo &out_error,
const XrdSecEntity *client,
const char *opaque)
{
return m_sfs_ptr->chmod(Name, Mode, out_error, client, opaque);
}
void
FileSystem::Connect(const XrdSecEntity *client)
{
m_sfs_ptr->Connect(client);
}
void
FileSystem::Disc(const XrdSecEntity *client)
{
m_sfs_ptr->Disc(client);
}
void
FileSystem::EnvInfo(XrdOucEnv *envP)
{
m_sfs_ptr->EnvInfo(envP);
}
int
FileSystem::exists(const char *fileName,
XrdSfsFileExistence &exists_flag,
XrdOucErrInfo &out_error,
const XrdSecEntity *client,
const char *opaque)
{
return m_sfs_ptr->exists(fileName, exists_flag, out_error, client, opaque);
}
int
FileSystem::FAttr( XrdSfsFACtl *faReq,
XrdOucErrInfo &eInfo,
const XrdSecEntity *client)
{
return m_sfs_ptr->FAttr(faReq, eInfo, client);
}
int
FileSystem::fsctl(const int cmd,
const char *args,
XrdOucErrInfo &out_error,
const XrdSecEntity *client)
{
return m_sfs_ptr->fsctl(cmd, args, out_error, client);
}
int
FileSystem::getChkPSize()
{
return m_sfs_ptr->getChkPSize();
}
int
FileSystem::getStats(char *buff,
int blen)
{
return m_sfs_ptr->getStats(buff, blen);
}
const char *
FileSystem::getVersion()
{
return XrdVERSION;
}
int
FileSystem::gpFile( gpfFunc &gpAct,
XrdSfsGPFile &gpReq,
XrdOucErrInfo &eInfo,
const XrdSecEntity *client)
{
return m_sfs_ptr->gpFile(gpAct, gpReq, eInfo, client);
}
int
FileSystem::mkdir(const char *dirName,
XrdSfsMode Mode,
XrdOucErrInfo &out_error,
const XrdSecEntity *client,
const char *opaque)
{
return m_sfs_ptr->mkdir(dirName, Mode, out_error, client, opaque);
}
int
FileSystem::prepare( XrdSfsPrep &pargs,
XrdOucErrInfo &out_error,
const XrdSecEntity *client)
{
return m_sfs_ptr->prepare(pargs, out_error, client);
}
int
FileSystem::rem(const char *path,
XrdOucErrInfo &out_error,
const XrdSecEntity *client,
const char *info)
{
return m_sfs_ptr->rem(path, out_error, client, info);
}
int
FileSystem::remdir(const char *dirName,
XrdOucErrInfo &out_error,
const XrdSecEntity *client,
const char *info)
{
return m_sfs_ptr->remdir(dirName, out_error, client, info);
}
int
FileSystem::rename(const char *oldFileName,
const char *newFileName,
XrdOucErrInfo &out_error,
const XrdSecEntity *client,
const char *infoO,
const char *infoN)
{
return m_sfs_ptr->rename(oldFileName, newFileName, out_error, client, infoO, infoN);
}
int
FileSystem::stat(const char *Name,
struct stat *buf,
XrdOucErrInfo &out_error,
const XrdSecEntity *client,
const char *opaque)
{
return m_sfs_ptr->stat(Name, buf, out_error, client, opaque);
}
int
FileSystem::stat(const char *Name,
mode_t &mode,
XrdOucErrInfo &out_error,
const XrdSecEntity *client,
const char *opaque)
{
return m_sfs_ptr->stat(Name, mode, out_error, client, opaque);
}
int
FileSystem::truncate(const char *Name,
XrdSfsFileOffset fileOffset,
XrdOucErrInfo &out_error,
const XrdSecEntity *client,
const char *opaque)
{
return m_sfs_ptr->truncate(Name, fileOffset, out_error, client, opaque);
}
XrdOfs.hh
Mode
int Mode
Definition XrdSecgsiProxy.cc:94
File
XrdOucString File
Definition XrdSecpwdSrvAdmin.cc:159
XrdSfsMode
int XrdSfsMode
Definition XrdSfsInterface.hh:130
XrdSfsFileExistence
XrdSfsFileExistence
Definition XrdSfsInterface.hh:134
XrdSfsFileOffset
long long XrdSfsFileOffset
Definition XrdSfsInterface.hh:128
XrdSfsPrep
< Prepare parameters
Definition XrdSfsInterface.hh:173
XrdThrottle.hh
XrdOucEnv
Definition XrdOucEnv.hh:42
XrdOucErrInfo
Definition XrdOucErrInfo.hh:101
XrdSecEntity
Definition XrdSecEntity.hh:65
XrdSfsDirectory
Definition XrdSfsInterface.hh:244
XrdSfsFileSystem::csFunc
csFunc
Definition XrdSfsInterface.hh:928
XrdSfsFileSystem::gpfFunc
gpfFunc
Definition XrdSfsInterface.hh:1137
XrdSfsFile
Definition XrdSfsInterface.hh:370
XrdSfsGPFile
Definition XrdSfsGPFile.hh:37
XrdThrottle::FileSystem::Connect
virtual void Connect(const XrdSecEntity *client=0) override
Definition XrdThrottleFileSystem.cc:59
XrdThrottle::FileSystem::newFile
virtual XrdSfsFile * newFile(char *user=0, int monid=0) override
Definition XrdThrottleFileSystem.cc:20
XrdThrottle::FileSystem::gpFile
virtual int gpFile(gpfFunc &gpAct, XrdSfsGPFile &gpReq, XrdOucErrInfo &eInfo, const XrdSecEntity *client=0) override
Definition XrdThrottleFileSystem.cc:123
XrdThrottle::FileSystem::rem
virtual int rem(const char *path, XrdOucErrInfo &out_error, const XrdSecEntity *client, const char *info=0) override
Definition XrdThrottleFileSystem.cc:150
XrdThrottle::FileSystem::getStats
virtual int getStats(char *buff, int blen) override
Definition XrdThrottleFileSystem.cc:110
XrdThrottle::FileSystem::EnvInfo
virtual void EnvInfo(XrdOucEnv *envP) override
Definition XrdThrottleFileSystem.cc:71
XrdThrottle::FileSystem::fsctl
virtual int fsctl(const int cmd, const char *args, XrdOucErrInfo &out_error, const XrdSecEntity *client) override
Definition XrdThrottleFileSystem.cc:95
XrdThrottle::FileSystem::mkdir
virtual int mkdir(const char *dirName, XrdSfsMode Mode, XrdOucErrInfo &out_error, const XrdSecEntity *client, const char *opaque=0) override
Definition XrdThrottleFileSystem.cc:132
XrdThrottle::FileSystem::truncate
virtual int truncate(const char *Name, XrdSfsFileOffset fileOffset, XrdOucErrInfo &out_error, const XrdSecEntity *client=0, const char *opaque=0) override
Definition XrdThrottleFileSystem.cc:199
XrdThrottle::FileSystem::Disc
virtual void Disc(const XrdSecEntity *client=0) override
Definition XrdThrottleFileSystem.cc:65
XrdThrottle::FileSystem::getVersion
virtual const char * getVersion() override
Definition XrdThrottleFileSystem.cc:117
XrdThrottle::FileSystem::exists
virtual int exists(const char *fileName, XrdSfsFileExistence &exists_flag, XrdOucErrInfo &out_error, const XrdSecEntity *client, const char *opaque=0) override
Definition XrdThrottleFileSystem.cc:77
XrdThrottle::FileSystem::newDir
virtual XrdSfsDirectory * newDir(char *user=0, int monid=0) override
Definition XrdThrottleFileSystem.cc:13
XrdThrottle::FileSystem::rename
virtual int rename(const char *oldFileName, const char *newFileName, XrdOucErrInfo &out_error, const XrdSecEntity *client, const char *infoO=0, const char *infoN=0) override
Definition XrdThrottleFileSystem.cc:168
XrdThrottle::FileSystem::chmod
virtual int chmod(const char *Name, XrdSfsMode Mode, XrdOucErrInfo &out_error, const XrdSecEntity *client, const char *opaque=0) override
Definition XrdThrottleFileSystem.cc:49
XrdThrottle::FileSystem::prepare
virtual int prepare(XrdSfsPrep &pargs, XrdOucErrInfo &out_error, const XrdSecEntity *client=0) override
Definition XrdThrottleFileSystem.cc:142
XrdThrottle::FileSystem::remdir
virtual int remdir(const char *dirName, XrdOucErrInfo &out_error, const XrdSecEntity *client, const char *info=0) override
Definition XrdThrottleFileSystem.cc:159
XrdThrottle::FileSystem::getChkPSize
virtual int getChkPSize() override
Definition XrdThrottleFileSystem.cc:104
XrdThrottle::FileSystem::stat
virtual int stat(const char *Name, struct stat *buf, XrdOucErrInfo &out_error, const XrdSecEntity *client, const char *opaque=0) override
Definition XrdThrottleFileSystem.cc:179
XrdThrottle::FileSystem::chksum
virtual int chksum(csFunc Func, const char *csName, const char *path, XrdOucErrInfo &eInfo, const XrdSecEntity *client=0, const char *opaque=0) override
Definition XrdThrottleFileSystem.cc:38
XrdThrottle::FileSystem::FAttr
virtual int FAttr(XrdSfsFACtl *faReq, XrdOucErrInfo &eInfo, const XrdSecEntity *client=0) override
Definition XrdThrottleFileSystem.cc:87
XrdThrottle
Definition XrdThrottle.hh:18
XrdThrottle::unique_sfs_ptr
std::auto_ptr< XrdSfsFile > unique_sfs_ptr
Definition XrdThrottle.hh:23
XrdSfsFACtl
Definition XrdSfsFAttr.hh:73