#include <XrdPss.hh>


Public Member Functions | |
| virtual XrdOssDF * | newDir (const char *tident) |
| virtual XrdOssDF * | newFile (const char *tident) |
| int | Chmod (const char *, mode_t mode) |
| virtual int | Create (const char *, const char *, mode_t, XrdOucEnv &, int opts=0) |
| int | Init (XrdSysLogger *, const char *) |
| int | Mkdir (const char *, mode_t mode, int mkpath=0) |
| int | Remdir (const char *, int Opts=0) |
| int | Rename (const char *, const char *) |
| int | Stat (const char *, struct stat *, int resonly=0) |
| int | Truncate (const char *, unsigned long long) |
| int | Unlink (const char *, int Opts=0) |
| XrdPssSys () | |
| virtual | ~XrdPssSys () |
Static Public Member Functions | |
| static char * | P2URL (char *pbuff, int pblen, const char *path, int Split=0, const char *Cgi=0, int CgiLn=0, const char *tIdent=0) |
| static int | T2UID (const char *Ident) |
Static Public Attributes | |
| static const char * | ConfigFN |
| static const char * | myHost |
| static const char * | myName |
| static uid_t | myUid = geteuid() |
| static gid_t | myGid = getegid() |
| static XrdOucTList * | ManList = 0 |
| static const char * | urlPlain = 0 |
| static int | urlPlen = 0 |
| static int | hdrLen = 0 |
| static const char * | hdrData = 0 |
| static int | Workers = 16 |
| static char | allChmod = 0 |
| static char | allMkdir = 0 |
| static char | allMv = 0 |
| static char | allRmdir = 0 |
| static char | allRm = 0 |
| static char | allTrunc = 0 |
Private Member Functions | |
| int | buildHdr () |
| int | Configure (const char *) |
| int | ConfigProc (const char *ConfigFN) |
| int | ConfigXeq (char *, XrdOucStream &) |
| int | ConfigN2N () |
| int | xconf (XrdSysError *Eroute, XrdOucStream &Config) |
| int | xorig (XrdSysError *errp, XrdOucStream &Config) |
| int | xsopt (XrdSysError *Eroute, XrdOucStream &Config) |
| int | xtrac (XrdSysError *Eroute, XrdOucStream &Config) |
| int | xnml (XrdSysError *Eroute, XrdOucStream &Config) |
Private Attributes | |
| char * | N2NLib |
| char * | N2NParms |
| XrdOucName2Name * | theN2N |
| XrdPssSys::XrdPssSys | ( | ) | [inline] |
| virtual XrdPssSys::~XrdPssSys | ( | ) | [inline, virtual] |
| int XrdPssSys::buildHdr | ( | ) | [private] |
References eDest, XrdSysError::Emsg(), hdrData, hdrLen, ManList, XrdProxy::maxHLen, XrdOucTList::next, snprintf, XrdOucTList::text, and XrdOucTList::val.
Referenced by Configure().
| int XrdPssSys::ConfigN2N | ( | void | ) | [private] |
References ConfigFN, eDest, XrdSysPlugin::getPlugin(), N2NLib, N2NParms, theN2N, and XrdOucgetName2NameArgs.
Referenced by Configure().
| int XrdPssSys::ConfigProc | ( | const char * | ConfigFN | ) | [private] |
References XrdOucStream::Attach(), XrdOucStream::Close(), XrdCms::Config, ConfigXeq(), XrdOucStream::Echo(), eDest, XrdSysError::Emsg(), XrdOucStream::GetMyFirstWord(), XrdOucStream::LastError(), and open.
Referenced by Configure().
| int XrdPssSys::Configure | ( | const char * | cfn | ) | [private] |
References allChmod, allMkdir, allMv, allRm, allRmdir, allTrunc, buildHdr(), ConfigN2N(), ConfigProc(), eDest, XrdSysError::Emsg(), hdrData, XrdOucUtils::InstName(), ManList, XrdProxy::maxHLen, myHost, myName, N2NLib, rindex, XrdPosixXrootd::setDebug(), XrdPosixXrootd::setEnv(), theN2N, urlPlain, urlPlen, Workers, XrdFfsDent_cache_init(), XrdFfsMisc_refresh_url_cache(), XrdFfsQueue_create_workers(), XrdFfsWcache_init(), and Xroot.
Referenced by Init().
| int XrdPssSys::ConfigXeq | ( | char * | var, | |
| XrdOucStream & | Config | |||
| ) | [private] |
References XrdOucStream::Echo(), eDest, XrdSysError::Say(), TS_Xeq, xconf(), xnml(), xorig(), xsopt(), and xtrac().
Referenced by ConfigProc().
| int XrdPssSys::Create | ( | const char * | tident, | |
| const char * | path, | |||
| mode_t | Mode, | |||
| XrdOucEnv & | env, | |||
| int | opts = 0 | |||
| ) | [virtual] |
Implements XrdOss.
| int XrdPssSys::Init | ( | XrdSysLogger * | lp, | |
| const char * | configfn | |||
| ) | [virtual] |
Implements XrdOss.
References Configure(), eDest, XrdSysError::logger(), XrdSysError::Say(), and XrdVSTRING.
Referenced by XrdOssGetStorageSystem().
| int XrdPssSys::Mkdir | ( | const char * | path, | |
| mode_t | mode, | |||
| int | mkpath = 0 | |||
| ) | [virtual] |
Implements XrdOss.
References XrdPosixXrootd::Mkdir(), P2URL(), and XrdProxy::PBsz.
| char * XrdPssSys::P2URL | ( | char * | pbuff, | |
| int | pblen, | |||
| const char * | path, | |||
| int | Split = 0, |
|||
| const char * | Cgi = 0, |
|||
| int | CgiLn = 0, |
|||
| const char * | tIdent = 0 | |||
| ) | [static] |
References hdrData, index(), XrdOucName2Name::lfn2pfn(), rindex, snprintf, theN2N, urlPlain, urlPlen, and XrdProxy::XrdProxySS.
Referenced by Mkdir(), XrdPssFile::Open(), XrdPssDir::Opendir(), Remdir(), Rename(), Stat(), Truncate(), and Unlink().
| int XrdPssSys::Remdir | ( | const char * | path, | |
| int | Opts = 0 | |||
| ) | [virtual] |
Implements XrdOss.
References allRm, allRmdir, myUid, P2URL(), XrdProxy::PBsz, XrdPosixXrootd::Rmdir(), XrdFfsPosix_rmdirall(), and XRDOSS_Online.
| int XrdPssSys::Rename | ( | const char * | oldname, | |
| const char * | newname | |||
| ) | [virtual] |
Implements XrdOss.
References allMv, myUid, P2URL(), XrdProxy::PBsz, XrdPosixXrootd::Rename(), urlPlain, and XrdFfsPosix_renameall().
| int XrdPssSys::Stat | ( | const char * | path, | |
| struct stat * | buff, | |||
| int | resonly = 0 | |||
| ) | [virtual] |
Implements XrdOss.
References P2URL(), XrdProxy::PBsz, and XrdPosixXrootd::Stat().
| int XrdPssSys::T2UID | ( | const char * | Ident | ) | [static] |
References index(), and myUid.
Referenced by XrdPssDir::Opendir().
| int XrdPssSys::Truncate | ( | const char * | path, | |
| unsigned long long | flen | |||
| ) | [virtual] |
Implements XrdOss.
References P2URL(), XrdProxy::PBsz, and XrdPosixXrootd::Truncate().
| int XrdPssSys::Unlink | ( | const char * | path, | |
| int | Opts = 0 | |||
| ) | [virtual] |
Implements XrdOss.
References allRm, myUid, P2URL(), XrdProxy::PBsz, XrdFfsPosix_unlinkall(), and XRDOSS_Online.
| int XrdPssSys::xconf | ( | XrdSysError * | Eroute, | |
| XrdOucStream & | Config | |||
| ) | [private] |
References XrdSysError::Emsg(), XrdOucStream::GetWord(), XrdSysError::Say(), and Workers.
Referenced by ConfigXeq().
| int XrdPssSys::xnml | ( | XrdSysError * | Eroute, | |
| XrdOucStream & | Config | |||
| ) | [private] |
References XrdSysError::Emsg(), XrdOucStream::GetRest(), XrdOucStream::GetWord(), N2NLib, and N2NParms.
Referenced by ConfigXeq().
| int XrdPssSys::xorig | ( | XrdSysError * | errp, | |
| XrdOucStream & | Config | |||
| ) | [private] |
References XrdOuca2x::a2i(), XrdSysError::Emsg(), XrdNetDNS::getPort(), XrdOucStream::GetWord(), index(), ManList, XrdOucTList::next, XrdMonCtrCollector::port, XrdOucTList::text, and XrdOucTList::val.
Referenced by ConfigXeq().
| int XrdPssSys::xsopt | ( | XrdSysError * | Eroute, | |
| XrdOucStream & | Config | |||
| ) | [private] |
References XrdSysError::Emsg(), XrdOucStream::GetWord(), XrdSysError::Say(), XrdPosixXrootd::setEnv(), and strlcpy().
Referenced by ConfigXeq().
| int XrdPssSys::xtrac | ( | XrdSysError * | Eroute, | |
| XrdOucStream & | Config | |||
| ) | [private] |
References XrdSysError::Emsg(), XrdOucStream::GetWord(), XrdSysError::Say(), and XrdPosixXrootd::setDebug().
Referenced by ConfigXeq().
char XrdPssSys::allChmod = 0 [static] |
Referenced by Configure().
char XrdPssSys::allMkdir = 0 [static] |
Referenced by Configure().
char XrdPssSys::allMv = 0 [static] |
Referenced by Configure(), and Rename().
char XrdPssSys::allRm = 0 [static] |
Referenced by Configure(), Remdir(), and Unlink().
char XrdPssSys::allRmdir = 0 [static] |
Referenced by Configure(), and Remdir().
char XrdPssSys::allTrunc = 0 [static] |
Referenced by Configure().
const char * XrdPssSys::ConfigFN [static] |
Referenced by ConfigN2N().
const char * XrdPssSys::hdrData = 0 [static] |
Referenced by buildHdr(), Configure(), and P2URL().
int XrdPssSys::hdrLen = 0 [static] |
Referenced by buildHdr().
XrdOucTList * XrdPssSys::ManList = 0 [static] |
Referenced by buildHdr(), Configure(), and xorig().
gid_t XrdPssSys::myGid = getegid() [static] |
const char * XrdPssSys::myHost [static] |
Referenced by Configure().
const char * XrdPssSys::myName [static] |
Referenced by Configure().
uid_t XrdPssSys::myUid = geteuid() [static] |
char* XrdPssSys::N2NLib [private] |
Referenced by ConfigN2N(), Configure(), and xnml().
char* XrdPssSys::N2NParms [private] |
Referenced by ConfigN2N(), and xnml().
XrdOucName2Name* XrdPssSys::theN2N [private] |
Referenced by ConfigN2N(), Configure(), and P2URL().
const char * XrdPssSys::urlPlain = 0 [static] |
Referenced by Configure(), P2URL(), and Rename().
int XrdPssSys::urlPlen = 0 [static] |
Referenced by Configure(), and P2URL().
int XrdPssSys::Workers = 16 [static] |
Referenced by Configure(), and xconf().
1.6.2-20100208