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 XrdOucHash< T >::Add(), XrdCnsSsiDRec::Files, XrdOucHash< T >::Find(), and XrdCnsSsiFRec::Updt().
void XrdCnsSsi::AddSize | ( | char * | dP, |
char * | fP, | ||
char * | lP | ||
) | [static, private] |
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 XrdCnsXref::Add(), XrdOucStream::Attach(), XrdCns::Config, XrdOucUtils::eText(), fstat(), XrdOucStream::GetLine(), XrdCnsLog::invFNz, XrdCnsXref::Key(), 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, XrdCnsSsiSay::M(), XrdCnsLogRec::Arg::Mode, XrdCnsLogRec::Arg::Mount, XrdOucNSWalk::NSEnt::Next, open(), XrdCns::Say, XrdCnsLogRec::Arg::SorT, XrdCnsLogRec::Arg::Space, stat(), XrdCnsLogRec::tBase, and XrdCnsLogRec::Arg::Type.
Referenced by main().
int XrdCnsSsi::Updt | ( | const char * | Host, |
const char * | Path | ||
) | [static] |
References XrdCnsXref::Add(), XrdOucHash< T >::Apply(), XrdCnsXref::Apply(), 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, XrdCnsSsiSay::M(), XrdCnsLogRec::Arg::Mount, XrdCns::mountP, XrdOucNSWalk::NSEnt::Next, XrdOucSxeq::noWait, open(), XrdOucNSWalk::NSEnt::Path, rename(), XrdOucHash< T >::Rep(), rindex, S_IRGRP, S_IROTH, S_IRUSR, S_IWUSR, XrdCns::Say, XrdOucSxeq::Serialize(), XrdCnsLogRec::Arg::Space, XrdCns::spaceP, XrdOucNSWalk::NSEnt::Stat, stat(), XrdCnsLogRec::Arg::Type, unlink(), XrdOucSxeq::Unlink, XrdCnsSsiSay::V(), 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, XrdCnsSsiSay::M(), XrdCns::Say, and writev.
Referenced by XrdCnsSsiApplyD(), XrdCnsSsiApplyF(), XrdCnsSsiApplyM(), and XrdCnsSsiApplyS().
int XrdCnsSsi::Write | ( | int | xFD, |
char * | bP, | ||
int | bL | ||
) | [static, private] |
References XrdOucUtils::eText(), XrdCnsSsiSay::M(), XrdCns::Say, and write().
int XrdCnsSsi::Write | ( | int | xFD, |
int | TOD, | ||
const char * | Host | ||
) | [static, private] |
int XrdCnsSsi::nDirs = 0 [static] |
Referenced by XrdCnsSsiApplyD().
int XrdCnsSsi::nErrs = 0 [static] |
int XrdCnsSsi::nFiles = 0 [static] |
Referenced by XrdCnsSsiApplyF().