|
xrootd
|
#include <XrdCnsSsi.hh>
Public Member Functions | |
| XrdCnsSsi () | |
| ~XrdCnsSsi () | |
Static Public Member Functions | |
| static int | List (const char *Host, const char *Path) |
| static int | Updt (const char *Host, const char *Path) |
| static int | Write (int xFD, struct iovec *iov, int n, int Bytes) |
Static Public Attributes | |
| static int | nErrs = 0 |
| static int | nDirs = 0 |
| static int | nFiles = 0 |
Static Private Member Functions | |
| static XrdCnsSsiDRec * | AddDir (char *dP, char *lP) |
| static int | AddDel (char *pPo, char *lP) |
| static XrdCnsSsiFRec * | AddFile (char *lfn, char *lP) |
| static XrdCnsSsiFRec * | AddFile (char *dP, char *fP, char *lP) |
| static void | AddSize (char *dP, char *fP, char *lP) |
| static int | ApplyLog (const char *Path) |
| static void | ApplyLogRec (char *Rec) |
| static void | FSize (char *oP, char *iP, int bsz) |
| static int | Write (int xFD, char *bP, int bL) |
| static int | Write (int xFD, int TOD, const char *Host) |
| XrdCnsSsi::XrdCnsSsi | ( | ) | [inline] |
| XrdCnsSsi::~XrdCnsSsi | ( | ) | [inline] |
| int XrdCnsSsi::AddDel | ( | char * | pPo, |
| char * | lP | ||
| ) | [static, private] |
| XrdCnsSsiDRec * XrdCnsSsi::AddDir | ( | char * | dP, |
| char * | lP | ||
| ) | [static, private] |
References XrdCns::hInv.
| XrdCnsSsiFRec * XrdCnsSsi::AddFile | ( | char * | lfn, |
| char * | lP | ||
| ) | [static, private] |
| XrdCnsSsiFRec * XrdCnsSsi::AddFile | ( | char * | dP, |
| char * | fP, | ||
| char * | lP | ||
| ) | [static, private] |
References XrdCnsSsiDRec::Files, XrdOucHash::Find(), XrdCnsSsiFRec::Updt(), and XrdOucHash::Add().
| void XrdCnsSsi::AddSize | ( | char * | dP, |
| char * | fP, | ||
| char * | lP | ||
| ) | [static, private] |
References XrdCns::hInv, XrdCnsSsiDRec::Files, XrdOucHash::Find(), XrdCnsSsiFRec::Info, and XrdCnsLogRec::Arg::SorT.
| int XrdCnsSsi::ApplyLog | ( | const char * | Path | ) | [static, private] |
| void XrdCnsSsi::ApplyLogRec | ( | char * | Rec | ) | [static, private] |
| void XrdCnsSsi::FSize | ( | char * | oP, |
| char * | iP, | ||
| int | bsz | ||
| ) | [static, private] |
References strtoll.
| int XrdCnsSsi::List | ( | const char * | Host, |
| const char * | Path | ||
| ) | [static] |
References stat(), XrdCns::Config, XrdCnsLog::List(), XrdOucNSWalk::NSEnt::Next, XrdCns::Say, XrdCnsSsiSay::M(), XrdCnsLog::invFNz, open(), XrdOucUtils::eText(), XrdOucStream::Attach(), XrdCnsSsiCfg::Lhost, XrdCnsSsiCfg::Lmode, XrdCnsLogRec::Arg::Mode, XrdCnsSsiCfg::Lsize, XrdCnsSsiCfg::Lfmts, XrdCnsLogRec::Arg::SorT, XrdOucStream::GetLine(), XrdCnsLogRec::Arg::Type, XrdCnsLogRec::lrTOD, fstat(), XrdCnsLogRec::tBase, XrdCnsLogRec::Arg::lfn, XrdCnsLogRec::lrMount, XrdCnsLogRec::Arg::Mount, XrdCnsLogRec::lrSpace, XrdCnsXref::Add(), XrdCnsLogRec::Arg::Space, XrdCnsLogRec::lrInvD, and XrdCnsXref::Key().
Referenced by main().
| int XrdCnsSsi::Updt | ( | const char * | Host, |
| const char * | Path | ||
| ) | [static] |
References S_IRUSR, S_IWUSR, S_IRGRP, S_IROTH, XrdOucNSWalk::NSEnt::Next, stat(), XrdOucSxeq::Serialize(), XrdOucSxeq::noWait, XrdOucSxeq::Unlink, XrdOucSxeq::lastError(), XrdCns::Say, XrdCnsSsiSay::M(), XrdOucUtils::eText(), XrdCnsLog::List(), XrdCnsSsiSay::V(), XrdCns::hInv, XrdCns::mountP, XrdCns::spaceP, XrdCnsLog::invFNz, open(), XrdOucStream::Attach(), XrdOucStream::GetLine(), XrdCnsLogRec::Arg::Type, XrdCnsLogRec::lrTOD, XrdCnsLogRec::lrMount, XrdCnsLogRec::Arg::lfn, XrdCnsLogRec::Arg::Mount, XrdCnsLogRec::lrSpace, XrdCnsXref::Add(), XrdCnsLogRec::Arg::Space, XrdCnsLogRec::lrInvD, XrdCnsSsiDRec::Files, XrdOucHash::Rep(), fstat(), XrdOucStream::Close(), XrdOucNSWalk::NSEnt::Stat, XrdOucNSWalk::NSEnt::File, XrdOucNSWalk::NSEnt::Path, rindex, XrdCnsSsiApplyM(), XrdCnsXref::Apply(), XrdCnsSsiApplyS(), XrdOucHash::Apply(), XrdCnsSsiApplyD(), close, rename(), and unlink().
Referenced by main().
| int XrdCnsSsi::Write | ( | int | xFD, |
| struct iovec * | iov, | ||
| int | n, | ||
| int | Bytes | ||
| ) | [static] |
References writev, XrdCns::Say, XrdCnsSsiSay::M(), XrdOucUtils::eText(), and iovec::iov_len.
Referenced by XrdCnsSsiApplyF(), XrdCnsSsiApplyD(), XrdCnsSsiApplyM(), and XrdCnsSsiApplyS().
| int XrdCnsSsi::Write | ( | int | xFD, |
| char * | bP, | ||
| int | bL | ||
| ) | [static, private] |
References write(), XrdCns::Say, XrdCnsSsiSay::M(), and XrdOucUtils::eText().
| int XrdCnsSsi::Write | ( | int | xFD, |
| int | TOD, | ||
| const char * | Host | ||
| ) | [static, private] |
int XrdCnsSsi::nDirs = 0 [static] |
int XrdCnsSsi::nErrs = 0 [static] |
int XrdCnsSsi::nFiles = 0 [static] |
1.7.5