|
xrootd
|
#include <XrdFrmCns.hh>
Public Member Functions | |
| XrdFrmCns () | |
| ~XrdFrmCns () | |
Static Public Member Functions | |
| static void | Add (const char *tID, const char *Path, long long Size, mode_t Mode) |
| static int | Init (const char *aPath, int Opts) |
| static int | Init (const char *myID, const char *aPath, const char *iName) |
| static void | Rm (const char *Path, int islfn=0) |
| static void | Rmd (const char *Path, int islfn=0) |
Static Public Attributes | |
| static const int | cnsAuto = -1 |
| static const int | cnsIgnore = 0 |
| static const int | cnsRequire = 1 |
Static Private Member Functions | |
| static void | Del (const char *Path, int HdrType, int islfn=0) |
| static int | Init () |
| static int | Retry (int eNum, int &pMsg) |
| static int | Send2Cnsd (struct iovec *iov, int iovn) |
| static int | setPath (const char *aPath, const char *iName) |
Static Private Attributes | |
| static const int | HdrRmd = 0 |
| static const int | HdrRmf = 1 |
| static char * | cnsPath = 0 |
| static char * | cnsHdr [2] = {0, 0} |
| static int | cnsHdrLen = 0 |
| static int | cnsInit = 1 |
| static int | cnsFD = -1 |
| static int | cnsMode = XrdFrmCns::cnsIgnore |
| XrdFrmCns::XrdFrmCns | ( | ) | [inline] |
| XrdFrmCns::~XrdFrmCns | ( | ) | [inline] |
| void XrdFrmCns::Add | ( | const char * | tID, |
| const char * | Path, | ||
| long long | Size, | ||
| mode_t | Mode | ||
| ) | [static] |
References XrdSysError::Emsg(), iovec::iov_base, iovec::iov_len, S_IRWXG, S_IRWXU, and XrdFrc::Say.
Referenced by XrdFrmTransfer::FetchDone().
| void XrdFrmCns::Del | ( | const char * | Path, |
| int | HdrType, | ||
| int | islfn = 0 |
||
| ) | [static, private] |
References XrdCms::Config, XrdSysError::Emsg(), iovec::iov_base, iovec::iov_len, and XrdFrc::Say.
| int XrdFrmCns::Init | ( | const char * | aPath, |
| int | Opts | ||
| ) | [static] |
References XrdMpx::Opts.
| int XrdFrmCns::Init | ( | const char * | myID, |
| const char * | aPath, | ||
| const char * | iName | ||
| ) | [static] |
| int XrdFrmCns::Init | ( | ) | [static, private] |
References XrdSysMutex::Lock(), O_NDELAY, O_NONBLOCK, open(), and XrdSysMutex::UnLock().
Referenced by XrdFrmConfig::ConfigPaths(), and XrdFrmConfig::xcnsd().
| int XrdFrmCns::Retry | ( | int | eNum, |
| int & | pMsg | ||
| ) | [static, private] |
References XrdSysError::Emsg(), XrdFrc::Say, and XrdSysTimer::Snooze().
| static void XrdFrmCns::Rm | ( | const char * | Path, |
| int | islfn = 0 |
||
| ) | [inline, static] |
References cnsMode, Del(), and HdrRmf.
Referenced by XrdFrmPurge::PurgeFile(), and XrdFrmAdmin::UnlinkFile().
| static void XrdFrmCns::Rmd | ( | const char * | Path, |
| int | islfn = 0 |
||
| ) | [inline, static] |
References cnsMode, Del(), and HdrRmd.
Referenced by XrdFrmPurgeDir::isEmpty(), XrdFrmAdmin::Unlink(), and XrdFrmAdmin::UnlinkDir().
| int XrdFrmCns::Send2Cnsd | ( | struct iovec * | iov, |
| int | iovn | ||
| ) | [static, private] |
References XrdOucSxeq::Release(), XrdOucSxeq::Serialize(), and writev.
| int XrdFrmCns::setPath | ( | const char * | aPath, |
| const char * | iName | ||
| ) | [static, private] |
References XrdSysError::Emsg(), XrdOucUtils::genPath(), XrdFrc::Say, and stat().
const int XrdFrmCns::cnsAuto = -1 [static] |
Referenced by XrdFrmConfig::xcnsd().
int XrdFrmCns::cnsFD = -1 [static, private] |
char * XrdFrmCns::cnsHdr = {0, 0} [static, private] |
int XrdFrmCns::cnsHdrLen = 0 [static, private] |
const int XrdFrmCns::cnsIgnore = 0 [static] |
Referenced by XrdFrmConfig::xcnsd().
int XrdFrmCns::cnsInit = 1 [static, private] |
int XrdFrmCns::cnsMode = XrdFrmCns::cnsIgnore [static, private] |
char * XrdFrmCns::cnsPath = 0 [static, private] |
const int XrdFrmCns::cnsRequire = 1 [static] |
Referenced by XrdFrmConfig::xcnsd().
const int XrdFrmCns::HdrRmd = 0 [static, private] |
Referenced by Rmd().
const int XrdFrmCns::HdrRmf = 1 [static, private] |
Referenced by Rm().
1.8.0