#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] |
References XrdOucHash< T >::Add(), AddDir(), XrdOucHash< T >::Del(), XrdCnsSsiDRec::Files, XrdOucHash< T >::Find(), XrdCns::hInv, index(), XrdCnsSsiFRec::Info, XrdCnsSsiDRec::Info, and rindex.
Referenced by ApplyLogRec().
| XrdCnsSsiDRec * XrdCnsSsi::AddDir | ( | char * | dP, | |
| char * | lP | |||
| ) | [static, private] |
References XrdCns::hInv.
Referenced by AddDel(), AddFile(), ApplyLogRec(), and Updt().
| XrdCnsSsiFRec * XrdCnsSsi::AddFile | ( | char * | lfn, | |
| char * | lP | |||
| ) | [static, private] |
References XrdOucHash< T >::Add(), XrdCnsXref::Add(), AddDir(), XrdCnsXref::Default(), XrdCnsSsiDRec::Files, XrdOucHash< T >::Find(), index(), XrdCnsLogRec::Arg::Mount, XrdCns::mountP, nErrs, rindex, Say, XrdCnsLogRec::Arg::Space, XrdCns::spaceP, and XrdCnsSsiFRec::Updt().
Referenced by AddSize(), and ApplyLogRec().
| XrdCnsSsiFRec * XrdCnsSsi::AddFile | ( | char * | dP, | |
| char * | fP, | |||
| char * | lP | |||
| ) | [static, private] |
References XrdOucHash< T >::Add(), AddDir(), XrdCnsSsiDRec::Files, XrdOucHash< T >::Find(), and XrdCnsSsiFRec::Updt().
| void XrdCnsSsi::AddSize | ( | char * | dP, | |
| char * | fP, | |||
| char * | lP | |||
| ) | [static, private] |
References AddFile(), XrdCnsSsiDRec::Files, XrdOucHash< T >::Find(), XrdCns::hInv, XrdCnsSsiFRec::Info, and XrdCnsLogRec::Arg::SorT.
Referenced by ApplyLogRec().
| int XrdCnsSsi::ApplyLog | ( | const char * | Path | ) | [static, private] |
References ApplyLogRec(), XrdOucStream::Attach(), XrdOucUtils::eText(), fstat(), XrdOucStream::GetLine(), XrdCnsLogRec::Arg::lfn, XrdCnsLogRec::lrEOL, XrdCnsLogRec::lrTOD, nErrs, open(), Say, XrdCnsLogRec::Arg::SorT, stat(), XrdCnsLogRec::tBase, and XrdCnsLogRec::Arg::Type.
Referenced by Updt().
| void XrdCnsSsi::ApplyLogRec | ( | char * | Rec | ) | [static, private] |
References AddDel(), AddDir(), AddFile(), AddSize(), XrdOucHash< T >::Del(), XrdCnsSsiDRec::Files, XrdCns::hInv, XrdCnsLogRec::Arg::lfn, XrdCnsLogRec::lrClosew, XrdCnsLogRec::lrCreate, XrdCnsLogRec::lrMkdir, XrdCnsLogRec::lrMv, XrdCnsLogRec::lrRm, XrdCnsLogRec::lrRmdir, nErrs, rindex, Say, and XrdCnsLogRec::Arg::Type.
Referenced by ApplyLog().
| void XrdCnsSsi::FSize | ( | char * | oP, | |
| char * | iP, | |||
| int | bsz | |||
| ) | [static, private] |
| int XrdCnsSsi::List | ( | const char * | Host, | |
| const char * | Path | |||
| ) | [static] |
References XrdCnsXref::Add(), XrdOucStream::Attach(), XrdCms::Config, XrdOucUtils::eText(), FSize(), fstat(), XrdOucStream::GetLine(), XrdCnsLog::invFNz, XrdCnsXref::Key(), XrdCnsSsiCfg::Lfmts, XrdCnsLogRec::Arg::lfn, XrdCnsSsiCfg::Lhost, XrdCnsSsiCfg::Lmode, XrdCnsSsiCfg::Lmount, XrdCnsSsiCfg::Lname, XrdCnsLogRec::lrInvD, XrdCnsLogRec::lrMount, XrdCnsLogRec::lrSpace, XrdCnsLogRec::lrTOD, XrdCnsSsiCfg::Lsize, XrdCnsLogRec::Arg::Mode, XrdCnsLogRec::Arg::Mount, XrdOucNSWalk::NSEnt::Next, open(), Say, XrdCnsLogRec::Arg::SorT, XrdCnsLogRec::Arg::Space, stat(), XrdCnsLogRec::tBase, and XrdCnsLogRec::Arg::Type.
| int XrdCnsSsi::Updt | ( | const char * | Host, | |
| const char * | Path | |||
| ) | [static] |
References XrdCnsXref::Add(), AddDir(), XrdOucHash< T >::Apply(), XrdCnsXref::Apply(), ApplyLog(), XrdOucStream::Attach(), close, XrdOucStream::Close(), XrdOucUtils::eText(), XrdOucNSWalk::NSEnt::File, XrdCnsSsiDRec::Files, fstat(), XrdOucStream::GetLine(), XrdCns::hInv, XrdCnsLog::invFNz, XrdOucSxeq::lastError(), XrdCnsLogRec::Arg::lfn, List(), XrdCnsLogRec::lrInvD, XrdCnsLogRec::lrMount, XrdCnsLogRec::lrSpace, XrdCnsLogRec::lrTOD, XrdCnsLogRec::Arg::Mount, XrdCns::mountP, nDirs, nErrs, XrdOucNSWalk::NSEnt::Next, nFiles, XrdOucSxeq::noWait, open(), XrdOucNSWalk::NSEnt::Path, rename(), XrdOucHash< T >::Rep(), rindex, S_IRGRP, S_IRUSR, S_IWUSR, Say, XrdOucSxeq::Serialize(), XrdCnsLogRec::Arg::Space, XrdCns::spaceP, XrdOucNSWalk::NSEnt::Stat, stat(), XrdCnsLogRec::Arg::Type, unlink(), XrdOucSxeq::Unlink, Write(), XrdCnsSsiApplyD(), XrdCnsSsiApplyM(), and XrdCnsSsiApplyS().
Referenced by main().
| int XrdCnsSsi::Write | ( | int | xFD, | |
| struct iovec * | iov, | |||
| int | n, | |||
| int | Bytes | |||
| ) | [static] |
References XrdOucUtils::eText(), iovec::iov_len, Say, and writev.
Referenced by Updt(), Write(), XrdCnsSsiApplyD(), XrdCnsSsiApplyF(), XrdCnsSsiApplyM(), and XrdCnsSsiApplyS().
| int XrdCnsSsi::Write | ( | int | xFD, | |
| char * | bP, | |||
| int | bL | |||
| ) | [static, private] |
References XrdOucUtils::eText(), Say, and write().
| int XrdCnsSsi::Write | ( | int | xFD, | |
| int | TOD, | |||
| const char * | Host | |||
| ) | [static, private] |
int XrdCnsSsi::nDirs = 0 [static] |
Referenced by Updt(), and XrdCnsSsiApplyD().
int XrdCnsSsi::nErrs = 0 [static] |
Referenced by AddFile(), ApplyLog(), ApplyLogRec(), and Updt().
int XrdCnsSsi::nFiles = 0 [static] |
Referenced by Updt(), and XrdCnsSsiApplyF().
1.7.1