#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 | 
| static int | nDirs | 
| static int | nFiles | 
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) | 
Definition at line 19 of file XrdCnsSsi.hh.
| XrdCnsSsi::XrdCnsSsi | ( | ) |  [inline] | 
        
Definition at line 33 of file XrdCnsSsi.hh.
| XrdCnsSsi::~XrdCnsSsi | ( | ) |  [inline] | 
        
Definition at line 34 of file XrdCnsSsi.hh.
| int XrdCnsSsi::List | ( | const char * | Host, | |
| const char * | Path | |||
| ) |  [static] | 
        
Definition at line 186 of file XrdCnsSsi.cc.
References XrdOucStream::Attach(), XrdFrm::Config(), XrdOucUtils::eText(), FSize(), fstat, XrdOucStream::GetLine(), XrdCnsLog::invFNz, XrdCnsSsiCfg::Lfmts, XrdCnsLogRec::Arg::lfn, XrdCnsSsiCfg::Lhost, XrdCnsLog::List(), 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, XrdFrm::Say(), XrdCnsLogRec::Arg::SorT, XrdCnsLogRec::Arg::Space, stat, strcat(), strcpy(), strtol(), XrdCnsLogRec::tBase, and XrdCnsLogRec::Arg::Type.
Referenced by main().
| int XrdCnsSsi::Updt | ( | const char * | Host, | |
| const char * | Path | |||
| ) |  [static] | 
        
Definition at line 291 of file XrdCnsSsi.cc.
References AddDir(), XrdOucHash< T >::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, XrdCnsLog::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_IROTH, S_IRUSR, S_IWUSR, XrdFrm::Say(), XrdOucSxeq::Serialize(), XrdCnsLogRec::Arg::Space, XrdCns::spaceP, sprintf(), XrdOucNSWalk::NSEnt::Stat, stat, strcat(), strcpy(), XrdCnsLogRec::Arg::Type, XrdOucSxeq::Unlink, unlink, Write(), XrdCnsSsiApplyD(), XrdCnsSsiApplyM(), and XrdCnsSsiApplyS().
Referenced by main().
| int XrdCnsSsi::Write | ( | int | xFD, | |
| struct iovec * | iov, | |||
| int | n, | |||
| int | Bytes | |||
| ) |  [static] | 
        
Definition at line 733 of file XrdCnsSsi.cc.
References XrdOucUtils::eText(), i, iovec::iov_len, XrdFrm::Say(), and writev.
Referenced by Updt(), Write(), XrdCnsSsiApplyD(), XrdCnsSsiApplyF(), XrdCnsSsiApplyM(), and XrdCnsSsiApplyS().
| XrdCnsSsiDRec * XrdCnsSsi::AddDir | ( | char * | dP, | |
| char * | lP | |||
| ) |  [static, private] | 
        
Definition at line 540 of file XrdCnsSsi.cc.
References XrdCns::hInv.
Referenced by AddDel(), AddFile(), ApplyLogRec(), and Updt().
| int XrdCnsSsi::AddDel | ( | char * | pPo, | |
| char * | lP | |||
| ) |  [static, private] | 
        
Definition at line 557 of file XrdCnsSsi.cc.
References XrdOucHash< T >::Add(), AddDir(), XrdOucHash< T >::Del(), XrdCnsSsiDRec::Files, XrdOucHash< T >::Find(), XrdCns::hInv, XrdCnsSsiDRec::Info, XrdCnsSsiFRec::Info, newFile, and rindex.
Referenced by ApplyLogRec().
| XrdCnsSsiFRec * XrdCnsSsi::AddFile | ( | char * | lfn, | |
| char * | lP | |||
| ) |  [static, private] | 
        
Definition at line 607 of file XrdCnsSsi.cc.
References XrdCnsXref::Add(), XrdOucHash< T >::Add(), AddDir(), XrdCnsXref::Default(), XrdCnsSsiDRec::Files, XrdOucHash< T >::Find(), XrdCnsLogRec::Arg::Mount, XrdCns::mountP, nErrs, rindex, XrdFrm::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] | 
        
Definition at line 645 of file XrdCnsSsi.cc.
References XrdOucHash< T >::Add(), AddDir(), XrdCnsSsiDRec::Files, XrdOucHash< T >::Find(), and XrdCnsSsiFRec::Updt().
| void XrdCnsSsi::AddSize | ( | char * | dP, | |
| char * | fP, | |||
| char * | lP | |||
| ) |  [static, private] | 
        
Definition at line 663 of file XrdCnsSsi.cc.
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] | 
        
Definition at line 455 of file XrdCnsSsi.cc.
References ApplyLogRec(), XrdOucStream::Attach(), XrdOucUtils::eText(), fstat, XrdOucStream::GetLine(), XrdCnsLogRec::Arg::lfn, XrdCnsLogRec::lrEOL, XrdCnsLogRec::lrTOD, nErrs, open, XrdFrm::Say(), XrdCnsLogRec::Arg::SorT, stat, XrdCnsLogRec::tBase, and XrdCnsLogRec::Arg::Type.
Referenced by Updt().
| void XrdCnsSsi::ApplyLogRec | ( | char * | Rec | ) |  [static, private] | 
        
Definition at line 503 of file XrdCnsSsi.cc.
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, XrdFrm::Say(), XrdCnsLogRec::Arg::Type, and Reflex::Dummy::Type().
Referenced by ApplyLog().
| void XrdCnsSsi::FSize | ( | char * | oP, | |
| char * | iP, | |||
| int | bsz | |||
| ) |  [static, private] | 
        
| int XrdCnsSsi::Write | ( | int | xFD, | |
| char * | bP, | |||
| int | bL | |||
| ) |  [static, private] | 
        
Definition at line 715 of file XrdCnsSsi.cc.
References XrdOucUtils::eText(), XrdFrm::Say(), and write.
| int XrdCnsSsi::Write | ( | int | xFD, | |
| int | TOD, | |||
| const char * | Host | |||
| ) |  [static, private] | 
        
Definition at line 760 of file XrdCnsSsi.cc.
References XrdCnsLogRec::FixDLen, XrdCnsLogRec::Arg::lfn, XrdCnsLogRec::lrTOD, XrdCnsLogRec::Arg::Mode, n, XrdCnsLogRec::Arg::SorT, sprintf(), strcpy(), XrdCnsLogRec::Arg::Type, and Write().
int XrdCnsSsi::nErrs [static]           | 
        
Definition at line 29 of file XrdCnsSsi.hh.
Referenced by AddFile(), ApplyLog(), ApplyLogRec(), and Updt().
int XrdCnsSsi::nDirs [static]           | 
        
int XrdCnsSsi::nFiles [static]           | 
        
 1.5.1