#include <XrdPss.hh>
Public Types | |
enum | PolAct { PolPath = 0, PolObj = 1 } |
Public Member Functions | |
virtual XrdOssDF * | newDir (const char *tident) |
virtual XrdOssDF * | newFile (const char *tident) |
virtual void | Connect (XrdOucEnv &) |
virtual void | Disc (XrdOucEnv &) |
int | Chmod (const char *, mode_t mode, XrdOucEnv *eP=0) |
bool | ConfigMapID () |
virtual int | Create (const char *, const char *, mode_t, XrdOucEnv &, int opts=0) |
void | EnvInfo (XrdOucEnv *envP) |
uint64_t | Features () |
int | Init (XrdSysLogger *, const char *) |
int | Lfn2Pfn (const char *Path, char *buff, int blen) |
const char * | Lfn2Pfn (const char *Path, char *buff, int blen, int &rc) |
int | Mkdir (const char *, mode_t mode, int mkpath=0, XrdOucEnv *eP=0) |
int | Remdir (const char *, int Opts=0, XrdOucEnv *eP=0) |
int | Rename (const char *, const char *, XrdOucEnv *eP1=0, XrdOucEnv *eP2=0) |
int | Stat (const char *, struct stat *, int opts=0, XrdOucEnv *eP=0) |
int | Stats (char *bp, int bl) |
int | Truncate (const char *, unsigned long long, XrdOucEnv *eP=0) |
int | Unlink (const char *, int Opts=0, XrdOucEnv *eP=0) |
XrdPssSys () | |
virtual | ~XrdPssSys () |
Static Public Member Functions | |
static int | P2DST (int &retc, char *hBuff, int hBlen, PolAct pType, const char *path) |
static int | P2OUT (char *pbuff, int pblen, XrdPssUrlInfo &uInfo) |
static int | P2URL (char *pbuff, int pblen, XrdPssUrlInfo &uInfo, bool doN2N=true) |
Static Public Attributes | |
static const int | PolNum = 2 |
static const char * | ConfigFN |
static const char * | myHost |
static const char * | myName |
static XrdOucPListAnchor | XPList |
static XrdNetSecurity * | Police [PolNum] |
static XrdOucTList * | ManList |
static const char * | protName |
static const char * | hdrData |
static int | hdrLen |
static int | Streams |
static int | Workers |
static int | Trace |
static int | dcaCTime |
static bool | xLfn2Pfn |
static bool | dcaCheck |
static bool | dcaWorld |
static bool | deferID |
Private Member Functions | |
int | Configure (const char *) |
int | ConfigProc (const char *ConfigFN) |
int | ConfigXeq (char *, XrdOucStream &) |
int | xconf (XrdSysError *Eroute, XrdOucStream &Config) |
int | xdef (XrdSysError *Eroute, XrdOucStream &Config) |
int | xdca (XrdSysError *errp, XrdOucStream &Config) |
int | xexp (XrdSysError *Eroute, XrdOucStream &Config) |
int | xperm (XrdSysError *errp, XrdOucStream &Config) |
int | xpers (XrdSysError *errp, XrdOucStream &Config) |
int | xorig (XrdSysError *errp, XrdOucStream &Config) |
Private Attributes | |
char * | LocalRoot |
XrdOucName2Name * | theN2N |
unsigned long long | DirFlags |
XrdVersionInfo * | myVersion |
XrdSecsssID * | idMapper |
uint64_t | myFeatures |
enum XrdPssSys::PolAct |
XrdPssSys::XrdPssSys | ( | ) |
virtual XrdPssSys::~XrdPssSys | ( | ) | [inline, virtual] |
int XrdPssSys::Chmod | ( | const char * | path, | |
mode_t | mode, | |||
XrdOucEnv * | envP = 0 | |||
) | [virtual] |
Change file mode settings.
path | - Pointer to the path of the file in question. | |
mode | - The new file mode setting. | |
envP | - Pointer to environmental information. |
Implements XrdOss.
bool XrdPssSys::ConfigMapID | ( | ) |
int XrdPssSys::ConfigProc | ( | const char * | ConfigFN | ) | [private] |
int XrdPssSys::Configure | ( | const char * | ) | [private] |
int XrdPssSys::ConfigXeq | ( | char * | , | |
XrdOucStream & | ||||
) | [private] |
virtual void XrdPssSys::Connect | ( | XrdOucEnv & | env | ) | [virtual] |
Notify storage system that a client has connected.
env | - Reference to environmental information. |
Reimplemented from XrdOss.
virtual int XrdPssSys::Create | ( | const char * | , | |
const char * | , | |||
mode_t | , | |||
XrdOucEnv & | , | |||
int | opts = 0 | |||
) | [virtual] |
Create file.
path | - Pointer to the path of the file to create. | |
mode | - The new file mode setting. | |
env | - Reference to environmental information. | |
opts | - Create options: XRDOSS_mkpath - create dir path if it does not exist. XRDOSS_new - the file must not already exist. oflags<<8 - open flags shifted 8 bits to the left/ |
Implements XrdOss.
virtual void XrdPssSys::Disc | ( | XrdOucEnv & | env | ) | [virtual] |
Notify storage system that a client has disconnected.
env | - Reference to environmental information. |
Reimplemented from XrdOss.
void XrdPssSys::EnvInfo | ( | XrdOucEnv * | envP | ) | [virtual] |
Notify storage system of initialization information (deprecated).
envP | - Pointer to environmental information. |
Reimplemented from XrdOss.
uint64_t XrdPssSys::Features | ( | ) | [inline, virtual] |
Return storage system features.
Reimplemented from XrdOss.
References myFeatures.
int XrdPssSys::Init | ( | XrdSysLogger * | lp, | |
const char * | cfn | |||
) | [virtual] |
Initialize the storage system V1 (deprecated).
lp | - Pointer to the message logging object. | |
cfn | - Pointer to the configuration file. |
Implements XrdOss.
const char* XrdPssSys::Lfn2Pfn | ( | const char * | Path, | |
char * | buff, | |||
int | blen, | |||
int & | rc | |||
) | [virtual] |
Translate logical name to physical name V2.
Path | - Path in whose information is wanted. | |
buff | - Pointer to the buffer to hold the new path. | |
blen | - Length of the buffer. | |
rc | - Place where failure return code is to be returned: -errno or -osserr (see XrdOssError.hh). |
Reimplemented from XrdOss.
int XrdPssSys::Lfn2Pfn | ( | const char * | Path, | |
char * | buff, | |||
int | blen | |||
) | [virtual] |
Translate logical name to physical name V1 (deprecated).
Path | - Path in whose information is wanted. | |
buff | - Pointer to the buffer to hold the new path. | |
blen | - Length of the buffer. |
Reimplemented from XrdOss.
int XrdPssSys::Mkdir | ( | const char * | path, | |
mode_t | mode, | |||
int | mkpath = 0 , |
|||
XrdOucEnv * | envP = 0 | |||
) | [virtual] |
Create a directory.
path | - Pointer to the path of the directory to be created. | |
mode | - The directory mode setting. | |
mkpath | - When true the path is created if it does not exist. | |
envP | - Pointer to environmental information. |
Implements XrdOss.
virtual XrdOssDF* XrdPssSys::newDir | ( | const char * | tident | ) | [inline, virtual] |
virtual XrdOssDF* XrdPssSys::newFile | ( | const char * | tident | ) | [inline, virtual] |
static int XrdPssSys::P2DST | ( | int & | retc, | |
char * | hBuff, | |||
int | hBlen, | |||
PolAct | pType, | |||
const char * | path | |||
) | [static] |
static int XrdPssSys::P2OUT | ( | char * | pbuff, | |
int | pblen, | |||
XrdPssUrlInfo & | uInfo | |||
) | [static] |
static int XrdPssSys::P2URL | ( | char * | pbuff, | |
int | pblen, | |||
XrdPssUrlInfo & | uInfo, | |||
bool | doN2N = true | |||
) | [static] |
int XrdPssSys::Remdir | ( | const char * | path, | |
int | Opts = 0 , |
|||
XrdOucEnv * | envP = 0 | |||
) | [virtual] |
Remove a directory.
path | - Pointer to the path of the directory to be removed. | |
opts | - The processing options: XRDOSS_Online - only remove online copy XRDOSS_isPFN - path is already translated. | |
envP | - Pointer to environmental information. |
Implements XrdOss.
int XrdPssSys::Rename | ( | const char * | oPath, | |
const char * | nPath, | |||
XrdOucEnv * | oEnvP = 0 , |
|||
XrdOucEnv * | nEnvP = 0 | |||
) | [virtual] |
Rename a file or directory.
oPath | - Pointer to the path to be renamed. | |
nPath | - Pointer to the path oPath is to have. | |
oEnvP | - Environmental information for oPath. | |
nEnvP | - Environmental information for nPath. |
Implements XrdOss.
int XrdPssSys::Stat | ( | const char * | path, | |
struct stat * | buff, | |||
int | opts = 0 , |
|||
XrdOucEnv * | envP = 0 | |||
) | [virtual] |
Return state information on a file or directory.
path | - Pointer to the path in question. | |
buff | - Pointer to the structure where info it to be returned. | |
opts | - Options: XRDOSS_preop - this is a stat prior to open. XRDOSS_resonly - only look for resident files. XRDOSS_updtatm - update file access time. | |
envP | - Pointer to environmental information. |
Implements XrdOss.
int XrdPssSys::Stats | ( | char * | buff, | |
int | blen | |||
) | [virtual] |
Return statistics.
buff | - Pointer to the buffer to hold statistics. | |
blen | - Length of the buffer. |
Reimplemented from XrdOss.
int XrdPssSys::Truncate | ( | const char * | path, | |
unsigned long | fsize, | |||
XrdOucEnv * | envP = 0 | |||
) | [virtual] |
Truncate a file.
path | - Pointer to the path of the file to be truncated. | |
fsize | - The size that the file is to have. | |
envP | - Pointer to environmental information. |
Implements XrdOss.
int XrdPssSys::Unlink | ( | const char * | path, | |
int | Opts = 0 , |
|||
XrdOucEnv * | envP = 0 | |||
) | [virtual] |
Remove a file.
path | - Pointer to the path of the file to be removed. | |
opts | - Options: XRDOSS_isMIG - this is a migratable path. XRDOSS_isPFN - do not apply name2name to path. XRDOSS_Online - remove only the online copy. | |
envP | - Pointer to environmental information. |
Implements XrdOss.
int XrdPssSys::xconf | ( | XrdSysError * | Eroute, | |
XrdOucStream & | Config | |||
) | [private] |
int XrdPssSys::xdca | ( | XrdSysError * | errp, | |
XrdOucStream & | Config | |||
) | [private] |
int XrdPssSys::xdef | ( | XrdSysError * | Eroute, | |
XrdOucStream & | Config | |||
) | [private] |
int XrdPssSys::xexp | ( | XrdSysError * | Eroute, | |
XrdOucStream & | Config | |||
) | [private] |
int XrdPssSys::xorig | ( | XrdSysError * | errp, | |
XrdOucStream & | Config | |||
) | [private] |
int XrdPssSys::xperm | ( | XrdSysError * | errp, | |
XrdOucStream & | Config | |||
) | [private] |
int XrdPssSys::xpers | ( | XrdSysError * | errp, | |
XrdOucStream & | Config | |||
) | [private] |
const char* XrdPssSys::ConfigFN [static] |
bool XrdPssSys::dcaCheck [static] |
int XrdPssSys::dcaCTime [static] |
bool XrdPssSys::dcaWorld [static] |
bool XrdPssSys::deferID [static] |
unsigned long long XrdPssSys::DirFlags [private] |
const char* XrdPssSys::hdrData [static] |
int XrdPssSys::hdrLen [static] |
XrdSecsssID* XrdPssSys::idMapper [private] |
char* XrdPssSys::LocalRoot [private] |
XrdOucTList* XrdPssSys::ManList [static] |
uint64_t XrdPssSys::myFeatures [private] |
Referenced by Features().
const char* XrdPssSys::myHost [static] |
const char* XrdPssSys::myName [static] |
XrdVersionInfo* XrdPssSys::myVersion [private] |
XrdNetSecurity* XrdPssSys::Police[PolNum] [static] |
const int XrdPssSys::PolNum = 2 [static] |
const char* XrdPssSys::protName [static] |
int XrdPssSys::Streams [static] |
XrdOucName2Name* XrdPssSys::theN2N [private] |
int XrdPssSys::Trace [static] |
int XrdPssSys::Workers [static] |
bool XrdPssSys::xLfn2Pfn [static] |
XrdOucPListAnchor XrdPssSys::XPList [static] |