xrootd
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes | List of all members
XrdPssSys Class Reference

#include <XrdPss.hh>

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

Public Types

enum  PolAct { PolPath = 0 , PolObj = 1 }
 

Public Member Functions

virtual XrdOssDFnewDir (const char *tident) override
 
virtual XrdOssDFnewFile (const char *tident) override
 
virtual void Connect (XrdOucEnv &) override
 
virtual void Disc (XrdOucEnv &) override
 
int Chmod (const char *, mode_t mode, XrdOucEnv *eP=0) override
 
bool ConfigMapID ()
 
virtual int Create (const char *, const char *, mode_t, XrdOucEnv &, int opts=0) override
 
void EnvInfo (XrdOucEnv *envP) override
 
uint64_t Features () override
 
int Init (XrdSysLogger *, const char *) override
 
int Init (XrdSysLogger *, const char *, XrdOucEnv *envP) override
 
int Lfn2Pfn (const char *Path, char *buff, int blen) override
 
const char * Lfn2Pfn (const char *Path, char *buff, int blen, int &rc) override
 
int Mkdir (const char *, mode_t mode, int mkpath=0, XrdOucEnv *eP=0) override
 
int Remdir (const char *, int Opts=0, XrdOucEnv *eP=0) override
 
int Rename (const char *, const char *, XrdOucEnv *eP1=0, XrdOucEnv *eP2=0) override
 
int Stat (const char *, struct stat *, int opts=0, XrdOucEnv *eP=0) override
 
int Stats (char *bp, int bl) override
 
int Truncate (const char *, unsigned long long, XrdOucEnv *eP=0) override
 
int Unlink (const char *, int Opts=0, XrdOucEnv *eP=0) override
 
 XrdPssSys ()
 
virtual ~XrdPssSys ()
 
- Public Member Functions inherited from XrdOss
virtual int FSctl (int cmd, int alen, const char *args, char **resp=0)
 
virtual int Reloc (const char *tident, const char *path, const char *cgName, const char *anchor=0)
 
virtual int StatFS (const char *path, char *buff, int &blen, XrdOucEnv *envP=0)
 
virtual int StatLS (XrdOucEnv &env, const char *path, char *buff, int &blen)
 
virtual int StatPF (const char *path, struct stat *buff, int opts)
 
virtual int StatPF (const char *path, struct stat *buff)
 
virtual int StatVS (XrdOssVSInfo *vsP, const char *sname=0, int updt=0)
 
virtual int StatXA (const char *path, char *buff, int &blen, XrdOucEnv *envP=0)
 
virtual int StatXP (const char *path, unsigned long long &attr, XrdOucEnv *envP=0)
 
 XrdOss ()
 Constructor and Destructor.
 
virtual ~XrdOss ()
 

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 XrdNetSecurityPolice [PolNum]
 
static XrdOucTListManList
 
static char * fileOrgn
 
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
 
static bool reProxy
 
- Static Public Attributes inherited from XrdOss
static const int PF_dInfo = 0x00000001
 
static const int PF_dNums = 0x00000002
 
static const int PF_isLFN = 0x00000004
 
static const int PF_dStat = 0x00000008
 
static const int PF_csVer = 0x00000001
 verified file checksums present
 
static const int PF_csVun = 0x00000002
 unverified file checksums present
 

Private Member Functions

int Configure (const char *, XrdOucEnv *)
 
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
 
XrdOucName2NametheN2N
 
unsigned long long DirFlags
 
XrdVersionInfo * myVersion
 
XrdSecsssIDidMapper
 
uint64_t myFeatures
 

Member Enumeration Documentation

◆ PolAct

Enumerator
PolPath 
PolObj 

Constructor & Destructor Documentation

◆ XrdPssSys()

XrdPssSys::XrdPssSys ( )

◆ ~XrdPssSys()

virtual XrdPssSys::~XrdPssSys ( )
inlinevirtual

Member Function Documentation

◆ Chmod()

int XrdPssSys::Chmod ( const char *  path,
mode_t  mode,
XrdOucEnv envP = 0 
)
overridevirtual

Change file mode settings.

Parameters
path- Pointer to the path of the file in question.
mode- The new file mode setting.
envP- Pointer to environmental information.
Returns
0 upon success or -errno or -osserr (see XrdOssError.hh).

Implements XrdOss.

◆ ConfigMapID()

bool XrdPssSys::ConfigMapID ( )

◆ ConfigProc()

int XrdPssSys::ConfigProc ( const char *  ConfigFN)
private

◆ Configure()

int XrdPssSys::Configure ( const char *  ,
XrdOucEnv  
)
private

◆ ConfigXeq()

int XrdPssSys::ConfigXeq ( char *  ,
XrdOucStream  
)
private

◆ Connect()

virtual void XrdPssSys::Connect ( XrdOucEnv env)
overridevirtual

Notify storage system that a client has connected.

Parameters
env- Reference to environmental information.

Reimplemented from XrdOss.

◆ Create()

virtual int XrdPssSys::Create ( const char *  tid,
const char *  path,
mode_t  mode,
XrdOucEnv env,
int  opts = 0 
)
overridevirtual

Create file.

Parameters
tid- Pointer to the trace identifier.
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/
Returns
0 upon success or -errno or -osserr (see XrdOssError.hh).

Implements XrdOss.

◆ Disc()

virtual void XrdPssSys::Disc ( XrdOucEnv env)
overridevirtual

Notify storage system that a client has disconnected.

Parameters
env- Reference to environmental information.

Reimplemented from XrdOss.

◆ EnvInfo()

void XrdPssSys::EnvInfo ( XrdOucEnv envP)
overridevirtual

Notify storage system of initialization information (deprecated).

Parameters
envP- Pointer to environmental information.

Reimplemented from XrdOss.

◆ Features()

uint64_t XrdPssSys::Features ( )
inlineoverridevirtual

Return storage system features.

Returns
Storage system features (see XRDOSS_HASxxx flags).

Reimplemented from XrdOss.

References myFeatures.

◆ Init() [1/2]

int XrdPssSys::Init ( XrdSysLogger lp,
const char *  cfn 
)
inlineoverridevirtual

Initialize the storage system V1 (deprecated).

Parameters
lp- Pointer to the message logging object.
cfn- Pointer to the configuration file.
Returns
0 upon success or -errno or -osserr (see XrdOssError.hh).

Implements XrdOss.

◆ Init() [2/2]

int XrdPssSys::Init ( XrdSysLogger lp,
const char *  cfn,
XrdOucEnv envP 
)
overridevirtual

Initialize the storage system V2.

Parameters
lp- Pointer to the message logging object.
cfn- Pointer to the configuration file.
envP- Pointer to environmental information.
Returns
0 upon success or -errno or -osserr (see XrdOssError.hh).

Reimplemented from XrdOss.

◆ Lfn2Pfn() [1/2]

int XrdPssSys::Lfn2Pfn ( const char *  Path,
char *  buff,
int  blen 
)
overridevirtual

Translate logical name to physical name V1 (deprecated).

Parameters
Path- Path in whose information is wanted.
buff- Pointer to the buffer to hold the new path.
blen- Length of the buffer.
Returns
0 upon success or -errno or -osserr (see XrdOssError.hh).

Reimplemented from XrdOss.

◆ Lfn2Pfn() [2/2]

const char * XrdPssSys::Lfn2Pfn ( const char *  Path,
char *  buff,
int  blen,
int &  rc 
)
overridevirtual

Translate logical name to physical name V2.

Parameters
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).
Returns
Pointer to the translated path upon success or nil on failure.

Reimplemented from XrdOss.

◆ Mkdir()

int XrdPssSys::Mkdir ( const char *  path,
mode_t  mode,
int  mkpath = 0,
XrdOucEnv envP = 0 
)
overridevirtual

Create a directory.

Parameters
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.
Returns
0 upon success or -errno or -osserr (see XrdOssError.hh).

Implements XrdOss.

◆ newDir()

virtual XrdOssDF * XrdPssSys::newDir ( const char *  tident)
inlineoverridevirtual

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

Parameters
tident- The trace identifier.
Returns
pointer- Pointer to an XrdOssDF object.
nil - Insufficient memory to allocate an object.

Implements XrdOss.

◆ newFile()

virtual XrdOssDF * XrdPssSys::newFile ( const char *  tident)
inlineoverridevirtual

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

Parameters
tident- The trace identifier.
Returns
pointer- Pointer to an XrdOssDF object.
nil - Insufficient memory to allocate an object.

Implements XrdOss.

◆ P2DST()

static int XrdPssSys::P2DST ( int &  retc,
char *  hBuff,
int  hBlen,
PolAct  pType,
const char *  path 
)
static

◆ P2OUT()

static int XrdPssSys::P2OUT ( char *  pbuff,
int  pblen,
XrdPssUrlInfo uInfo 
)
static

◆ P2URL()

static int XrdPssSys::P2URL ( char *  pbuff,
int  pblen,
XrdPssUrlInfo uInfo,
bool  doN2N = true 
)
static

◆ Remdir()

int XrdPssSys::Remdir ( const char *  path,
int  Opts = 0,
XrdOucEnv envP = 0 
)
overridevirtual

Remove a directory.

Parameters
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.
Returns
0 upon success or -errno or -osserr (see XrdOssError.hh).

Implements XrdOss.

◆ Rename()

int XrdPssSys::Rename ( const char *  oPath,
const char *  nPath,
XrdOucEnv oEnvP = 0,
XrdOucEnv nEnvP = 0 
)
overridevirtual

Rename a file or directory.

Parameters
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.
Returns
0 upon success or -errno or -osserr (see XrdOssError.hh).

Implements XrdOss.

◆ Stat()

int XrdPssSys::Stat ( const char *  path,
struct stat buff,
int  opts = 0,
XrdOucEnv envP = 0 
)
overridevirtual

Return state information on a file or directory.

Parameters
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.
Returns
0 upon success or -errno or -osserr (see XrdOssError.hh).

Implements XrdOss.

◆ Stats()

int XrdPssSys::Stats ( char *  buff,
int  blen 
)
overridevirtual

Return statistics.

Parameters
buff- Pointer to the buffer to hold statistics.
blen- Length of the buffer.
Returns
The number of bytes placed in the buffer excluding null byte.

Reimplemented from XrdOss.

◆ Truncate()

int XrdPssSys::Truncate ( const char *  path,
unsigned long long  fsize,
XrdOucEnv envP = 0 
)
overridevirtual

Truncate a file.

Parameters
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.
Returns
0 upon success or -errno or -osserr (see XrdOssError.hh).

Implements XrdOss.

◆ Unlink()

int XrdPssSys::Unlink ( const char *  path,
int  Opts = 0,
XrdOucEnv envP = 0 
)
overridevirtual

Remove a file.

Parameters
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.
Returns
0 upon success or -errno or -osserr (see XrdOssError.hh).

Implements XrdOss.

◆ xconf()

int XrdPssSys::xconf ( XrdSysError Eroute,
XrdOucStream Config 
)
private

◆ xdca()

int XrdPssSys::xdca ( XrdSysError errp,
XrdOucStream Config 
)
private

◆ xdef()

int XrdPssSys::xdef ( XrdSysError Eroute,
XrdOucStream Config 
)
private

◆ xexp()

int XrdPssSys::xexp ( XrdSysError Eroute,
XrdOucStream Config 
)
private

◆ xorig()

int XrdPssSys::xorig ( XrdSysError errp,
XrdOucStream Config 
)
private

◆ xperm()

int XrdPssSys::xperm ( XrdSysError errp,
XrdOucStream Config 
)
private

◆ xpers()

int XrdPssSys::xpers ( XrdSysError errp,
XrdOucStream Config 
)
private

Member Data Documentation

◆ ConfigFN

const char* XrdPssSys::ConfigFN
static

◆ dcaCheck

bool XrdPssSys::dcaCheck
static

◆ dcaCTime

int XrdPssSys::dcaCTime
static

◆ dcaWorld

bool XrdPssSys::dcaWorld
static

◆ deferID

bool XrdPssSys::deferID
static

◆ DirFlags

unsigned long long XrdPssSys::DirFlags
private

◆ fileOrgn

char* XrdPssSys::fileOrgn
static

◆ hdrData

const char* XrdPssSys::hdrData
static

◆ hdrLen

int XrdPssSys::hdrLen
static

◆ idMapper

XrdSecsssID* XrdPssSys::idMapper
private

◆ LocalRoot

char* XrdPssSys::LocalRoot
private

◆ ManList

XrdOucTList* XrdPssSys::ManList
static

◆ myFeatures

uint64_t XrdPssSys::myFeatures
private

Referenced by Features().

◆ myHost

const char* XrdPssSys::myHost
static

◆ myName

const char* XrdPssSys::myName
static

◆ myVersion

XrdVersionInfo* XrdPssSys::myVersion
private

◆ Police

XrdNetSecurity* XrdPssSys::Police[PolNum]
static

◆ PolNum

const int XrdPssSys::PolNum = 2
static

◆ protName

const char* XrdPssSys::protName
static

◆ reProxy

bool XrdPssSys::reProxy
static

◆ Streams

int XrdPssSys::Streams
static

◆ theN2N

XrdOucName2Name* XrdPssSys::theN2N
private

◆ Trace

int XrdPssSys::Trace
static

◆ Workers

int XrdPssSys::Workers
static

◆ xLfn2Pfn

bool XrdPssSys::xLfn2Pfn
static

◆ XPList

XrdOucPListAnchor XrdPssSys::XPList
static

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