|
xrootd
|
#include <XrdOucNSWalk.hh>

Classes | |
| class | CallBack |
| struct | NSEnt |
Public Member Functions | |
| NSEnt * | Index (int &rc, const char **dPath=0) |
| void | setCallBack (CallBack *cbP=0) |
| XrdOucNSWalk (XrdSysError *erp, const char *dname, const char *LKfn=0, int opts=retAll, XrdOucTList *xP=0) | |
| ~XrdOucNSWalk () | |
Static Public Attributes | |
| static const int | retDir = 0x0001 |
| static const int | retFile = 0x0002 |
| static const int | retLink = 0x0004 |
| static const int | retMisc = 0x0008 |
| static const int | retAll = 0x000f |
| static const int | retStat = 0x0010 |
| static const int | retIDLO = 0x0020 |
| static const int | retIILO = 0x0040 |
| static const int | Recurse = 0x0080 |
| static const int | noPath = 0x0100 |
| static const int | skpErrs = 0x8000 |
Private Member Functions | |
| void | addEnt (XrdOucNSWalk::NSEnt *eP) |
| int | Build () |
| int | getLink (XrdOucNSWalk::NSEnt *eP) |
| int | getStat (XrdOucNSWalk::NSEnt *eP, int doLstat=0) |
| int | getStat () |
| int | inXList (const char *dName) |
| int | isSymlink () |
| int | LockFile () |
| void | setPath (char *newpath) |
Private Attributes | |
| XrdSysError * | eDest |
| XrdOucTList * | DList |
| XrdOucTList * | XList |
| struct NSEnt * | DEnts |
| struct stat | dStat |
| CallBack * | edCB |
| char | DPath [1032] |
| char * | File |
| char * | LKFn |
| int | LKfd |
| int | DPfd |
| int | Opts |
| int | errOK |
| int | isEmpty |
| XrdOucNSWalk::XrdOucNSWalk | ( | XrdSysError * | erp, |
| const char * | dname, | ||
| const char * | LKfn = 0, |
||
| int | opts = retAll, |
||
| XrdOucTList * | xP = 0 |
||
| ) |
References eDest, DList, LKFn, Opts, opts, DPfd, LKfd, errOK, skpErrs, DEnts, edCB, XList, XrdOucTList::text, XrdOucTList::ival, and XrdOucTList::next.
| XrdOucNSWalk::~XrdOucNSWalk | ( | ) |
References LKFn, DList, XrdOucTList::next, and XList.
| void XrdOucNSWalk::addEnt | ( | XrdOucNSWalk::NSEnt * | eP | ) | [private] |
References retIDLO, retIILO, Opts, noPath, XrdOucNSWalk::NSEnt::Path, File, XrdOucNSWalk::NSEnt::File, DPath, XrdOucNSWalk::NSEnt::Plen, XrdOucNSWalk::NSEnt::Next, and DEnts.
Referenced by Build().
| int XrdOucNSWalk::Build | ( | ) | [private] |
References closedir(), close, Opts, retLink, edCB, LKFn, isEmpty, DPfd, open(), DPath, opendir(), eDest, XrdSysError::Emsg(), readdir(), File, getStat(), Recurse, isSymlink(), XList, inXList(), DList, retDir, retFile, getLink(), stat(), retStat, retMisc, errOK, addEnt(), DEnts, dStat, and fstat().
Referenced by Index().
| int XrdOucNSWalk::getLink | ( | XrdOucNSWalk::NSEnt * | eP | ) | [private] |
References DPath, eDest, XrdSysError::Emsg(), XrdOucNSWalk::NSEnt::Lksz, and XrdOucNSWalk::NSEnt::Link.
Referenced by Build().
| int XrdOucNSWalk::getStat | ( | XrdOucNSWalk::NSEnt * | eP, |
| int | doLstat = 0 |
||
| ) | [private] |
References DPfd, File, XrdOucNSWalk::NSEnt::Stat, lstat(), DPath, stat(), eDest, XrdSysError::Emsg(), and XrdOucNSWalk::NSEnt::Type.
| int XrdOucNSWalk::getStat | ( | ) | [private] |
Referenced by Build().
| XrdOucNSWalk::NSEnt * XrdOucNSWalk::Index | ( | int & | rc, |
| const char ** | dPath = 0 |
||
| ) |
References DPath, DList, setPath(), XrdOucTList::text, XrdOucTList::next, LKFn, LockFile(), Build(), LKfd, close, DEnts, errOK, edCB, isEmpty, XrdOucNSWalk::CallBack::isEmpty(), and dStat.
Referenced by XrdCnsInventory::Conduct(), XrdCnsLog::Dirs(), XrdCnsLog::List(), XrdFrmAdmin::AuditSpaceAX(), XrdFrmAdmin::AuditUsageAX(), XrdFrmAdmin::FindFail(), XrdFrmAdmin::Unlink(), XrdFrmAdmin::UnlinkDir(), and XrdFrmFiles::Get().
| int XrdOucNSWalk::inXList | ( | const char * | dName | ) | [private] |
References XList, DPath, XrdOucTList::text, and XrdOucTList::next.
Referenced by Build().
| int XrdOucNSWalk::isSymlink | ( | ) | [private] |
| int XrdOucNSWalk::LockFile | ( | ) | [private] |
| void XrdOucNSWalk::setCallBack | ( | CallBack * | cbP = 0 | ) | [inline] |
References edCB.
Referenced by XrdFrmFiles::XrdFrmFiles().
| void XrdOucNSWalk::setPath | ( | char * | newpath | ) | [private] |
struct NSEnt* XrdOucNSWalk::DEnts [private] |
Referenced by XrdOucNSWalk(), Index(), addEnt(), and Build().
XrdOucTList* XrdOucNSWalk::DList [private] |
Referenced by XrdOucNSWalk(), ~XrdOucNSWalk(), Index(), and Build().
char XrdOucNSWalk::DPath[1032] [private] |
Referenced by Index(), addEnt(), Build(), getLink(), getStat(), inXList(), isSymlink(), LockFile(), and setPath().
int XrdOucNSWalk::DPfd [private] |
Referenced by XrdOucNSWalk(), Build(), getStat(), and isSymlink().
struct stat XrdOucNSWalk::dStat [private] |
CallBack* XrdOucNSWalk::edCB [private] |
Referenced by XrdOucNSWalk(), Index(), Build(), and setCallBack().
XrdSysError* XrdOucNSWalk::eDest [private] |
Referenced by XrdOucNSWalk(), Build(), getLink(), getStat(), and LockFile().
int XrdOucNSWalk::errOK [private] |
Referenced by XrdOucNSWalk(), Index(), and Build().
char* XrdOucNSWalk::File [private] |
Referenced by addEnt(), Build(), getStat(), isSymlink(), LockFile(), and setPath().
int XrdOucNSWalk::isEmpty [private] |
int XrdOucNSWalk::LKfd [private] |
Referenced by XrdOucNSWalk(), Index(), and LockFile().
char* XrdOucNSWalk::LKFn [private] |
Referenced by XrdOucNSWalk(), ~XrdOucNSWalk(), Index(), Build(), and LockFile().
const int XrdOucNSWalk::noPath = 0x0100 [static] |
Referenced by addEnt().
int XrdOucNSWalk::Opts [private] |
Referenced by XrdOucNSWalk(), addEnt(), and Build().
const int XrdOucNSWalk::Recurse = 0x0080 [static] |
Referenced by XrdCnsLog::Dirs(), XrdFrmAdmin::Unlink(), and Build().
const int XrdOucNSWalk::retAll = 0x000f [static] |
Referenced by XrdFrmAdmin::Unlink(), and XrdFrmAdmin::UnlinkDir().
const int XrdOucNSWalk::retDir = 0x0001 [static] |
Referenced by XrdCnsLog::Dirs(), and Build().
const int XrdOucNSWalk::retFile = 0x0002 [static] |
Referenced by XrdCnsLog::List(), XrdFrmAdmin::AuditSpaceAX(), XrdFrmAdmin::AuditUsageAX(), and Build().
const int XrdOucNSWalk::retIDLO = 0x0020 [static] |
Referenced by addEnt().
const int XrdOucNSWalk::retIILO = 0x0040 [static] |
Referenced by addEnt().
const int XrdOucNSWalk::retLink = 0x0004 [static] |
Referenced by Build().
const int XrdOucNSWalk::retMisc = 0x0008 [static] |
Referenced by Build().
const int XrdOucNSWalk::retStat = 0x0010 [static] |
const int XrdOucNSWalk::skpErrs = 0x8000 [static] |
Referenced by XrdFrmAdmin::AuditSpaceAX(), XrdFrmAdmin::AuditUsageAX(), and XrdOucNSWalk().
XrdOucTList* XrdOucNSWalk::XList [private] |
Referenced by XrdOucNSWalk(), ~XrdOucNSWalk(), Build(), and inXList().
1.7.5