XrdOssPath Class Reference

#include <XrdOssPath.hh>

List of all members.

Public Types

enum  theSfx

Public Member Functions

 XrdOssPath ()
 ~XrdOssPath ()

Static Public Member Functions

static int Convert (char *dst, int dln, const char *oldP, const char *newP)
static const char * Extract (char *path, char *lbuf, int &lbsz)
static char * genPath (const char *inPath, const char *cgrp, char *sfx)
static char * genPFN (fnInfo &Info, char *buff, int blen, const char *Path=0)
static char * genPFN (char *dst, int dln, const char *src)
static int getCname (const char *path, char *Cache, char *lbuf=0, int lbsz=0)
static int isXA (const char *path)
static theSfx pathType (const char *Path, int chkWhat=chkAll)
static void Trim2Base (char *eP)

Static Public Attributes

static const char xChar = '%'
static const int sfxLen = 4
static const char * Sfx [sfxNum]
static const int chkMem = 0x01
static const int chkMig = 0x02
static const int chkPfn = 0x04
static const int chkAll = 0x07

Static Private Member Functions

static char * bin2hex (char *inbuff, int dlen, char *buff)
static int Init (char *pfnPfx)
static char * posCname (char *lbuf, int lbsz, int &cnsz)

Static Private Attributes

static char h2c [16]

Classes

struct  fnInfo


Detailed Description

Definition at line 17 of file XrdOssPath.hh.


Member Enumeration Documentation

enum XrdOssPath::theSfx

Definition at line 49 of file XrdOssPath.hh.


Constructor & Destructor Documentation

XrdOssPath::XrdOssPath (  )  [inline]

Definition at line 67 of file XrdOssPath.hh.

XrdOssPath::~XrdOssPath (  )  [inline]

Definition at line 68 of file XrdOssPath.hh.


Member Function Documentation

int XrdOssPath::Convert ( char *  dst,
int  dln,
const char *  oldP,
const char *  newP 
) [static]

Definition at line 54 of file XrdOssPath.cc.

References i, xChar, and XrdOssTAMP.

Referenced by XrdOssSys::RenameLink().

const char * XrdOssPath::Extract ( char *  path,
char *  lbuf,
int &  lbsz 
) [static]

Definition at line 76 of file XrdOssPath.cc.

References j, lstat, posCname(), stat, and xChar.

Referenced by XrdCnsLogServer::Massage(), and XrdCnsInventory::Xref().

char * XrdOssPath::genPath ( const char *  inPath,
const char *  cgrp,
char *  sfx 
) [static]

Definition at line 113 of file XrdOssPath.cc.

References h2c, XrdOssSpace::minSNbsz, n, strcat(), strcpy(), and xChar.

Referenced by XrdFrmAdmin::AuditSpaceXA(), XrdFrmAdmin::AuditUsageXA(), and XrdOssCache_FS::XrdOssCache_FS().

char * XrdOssPath::genPFN ( fnInfo Info,
char *  buff,
int  blen,
const char *  Path = 0 
) [static]

Definition at line 151 of file XrdOssPath.cc.

References bin2hex(), h2c, Info, Init(), XrdSysMutex::Lock(), sfxLen, XrdSysMutex::UnLock(), and XrdOssTAMP.

Referenced by XrdOssCache::Alloc(), and XrdFrmAdmin::AuditSpaceAX().

char * XrdOssPath::genPFN ( char *  dst,
int  dln,
const char *  src 
) [static]

Definition at line 200 of file XrdOssPath.cc.

References xChar.

int XrdOssPath::getCname ( const char *  path,
char *  Cache,
char *  lbuf = 0,
int  lbsz = 0 
) [static]

Definition at line 216 of file XrdOssPath.cc.

References j, lstat, posCname(), stat, strcpy(), and xChar.

Referenced by XrdFrmPurge::Add(), XrdOssSys::getCname(), XrdFrmAdmin::QuerySpace(), XrdFrmAdmin::Reloc(), and XrdOssSys::Reloc().

static int XrdOssPath::isXA ( const char *  path  )  [inline, static]

Definition at line 47 of file XrdOssPath.hh.

References xChar.

Referenced by XrdOssSys::Reloc().

XrdOssPath::theSfx XrdOssPath::pathType ( const char *  Path,
int  chkWhat = chkAll 
) [static]

Definition at line 253 of file XrdOssPath.cc.

References chkAll, chkMem, chkMig, Dot(), i, int, isBase, rindex, Sfx, sfxLast, sfxMemF, sfxMemL, and sfxMigL.

Referenced by XrdCnsInventory::Conduct(), XrdFrmFiles::Process(), and XrdFrmAdmin::UnlinkFile().

void XrdOssPath::Trim2Base ( char *  eP  )  [static]

Definition at line 279 of file XrdOssPath.cc.

References xChar.

Referenced by XrdOssCache::Adjust(), XrdOssSys::BreakLink(), XrdOssCache::Find(), and XrdOssSys::RenameLink().

char * XrdOssPath::bin2hex ( char *  inbuff,
int  dlen,
char *  buff 
) [static, private]

Definition at line 297 of file XrdOssPath.cc.

References h2c, and i.

Referenced by genPFN(), and Init().

int XrdOssPath::Init ( char *  pfnPfx  )  [static, private]

Definition at line 312 of file XrdOssPath.cc.

References bin2hex().

Referenced by genPFN().

char * XrdOssPath::posCname ( char *  lbuf,
int  lbsz,
int &  cnsz 
) [static, private]

Definition at line 329 of file XrdOssPath.cc.

References k, XrdOssSpace::maxSNlen, strtol(), and xChar.

Referenced by Extract(), and getCname().


Member Data Documentation

const char XrdOssPath::xChar = '%' [static]

Definition at line 29 of file XrdOssPath.hh.

Referenced by XrdOssSys::BreakLink(), Convert(), Extract(), genPath(), genPFN(), getCname(), XrdFrmAdmin::isXA(), isXA(), posCname(), XrdOssSys::RenameLink(), and Trim2Base().

const int XrdOssPath::sfxLen = 4 [static]

Definition at line 31 of file XrdOssPath.hh.

Referenced by genPFN().

const char * XrdOssPath::Sfx [static]

Definition at line 56 of file XrdOssPath.hh.

Referenced by pathType(), XrdOssSys::Rename(), and XrdOssSys::Unlink().

const int XrdOssPath::chkMem = 0x01 [static]

Definition at line 58 of file XrdOssPath.hh.

Referenced by pathType().

const int XrdOssPath::chkMig = 0x02 [static]

Definition at line 59 of file XrdOssPath.hh.

Referenced by pathType().

const int XrdOssPath::chkPfn = 0x04 [static]

Definition at line 60 of file XrdOssPath.hh.

const int XrdOssPath::chkAll = 0x07 [static]

Definition at line 61 of file XrdOssPath.hh.

Referenced by pathType().

char XrdOssPath::h2c [static, private]

Definition at line 75 of file XrdOssPath.hh.

Referenced by bin2hex(), genPath(), and genPFN().


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:50:37 2011 for ROOT_528-00b_version by  doxygen 1.5.1