92 snprintf(Buff,
sizeof(Buff),
"Unable to copy %s; %s",
Lfn,
eMsg);
112 const char *xLfn,
const char *xDst)
114 if (cKey) {
if (!
Key || strcmp(
Key, cKey))
return 0;}
115 else if (
Key)
return 0;
117 if (cOrg) {
if (!
Org || strcmp(
Org, cOrg))
return 0;}
118 else if (
Org)
return 0;
120 if (xLfn) {
if (!
Lfn || strcmp(
Lfn, xLfn))
return 0;}
121 else if (
Lfn)
return 0;
123 if (xDst) {
if (!
Dst || strcmp(
Dst, xDst))
return 0;}
124 else if (
Dst)
return 0;
148 }
else if (mP) mP->
UnLock();
157 const char *xLfn,
const char *xDst,
165 Key = (cKey ? strdup(cKey) : 0);
170 Org = (cOrg ? strdup(cOrg) : 0);
175 Lfn = (xLfn ? strdup(xLfn) : 0);
182 if (!(etext = dAddr.
Set(xDst,0)))
183 Dst = strdup(dAddr.
Name(
"0.0.0.0",&etext));
184 if (etext)
return etext;
190 Cks = (xCks ? strdup(xCks) : 0);
205 if ((
cbP->
Init(eRR)))
return 0;
207 return Fail(eRR,
"tpc callback logic error", EPROTO);
const char * Name(const char *eName=0, const char **eText=0)
const char * Set(const char *hSpec, int pNum=PortInSpec)
struct XrdOfsStats::StatsData Data
int Match(const char *cKey, const char *cOrg, const char *xLfn, const char *xDst)
int SetCB(XrdOucErrInfo *eRR)
const char * Set(const char *cKey, const char *cOrg, const char *xLfn, const char *xDst, const char *xCks=0)
void Reply(int rC, int eC, const char *eMsg, XrdSysMutex *mP=0)
int Fail(XrdOucErrInfo *eRR, const char *eMsg, int eCode)
virtual int Unlink(const char *path, int Opts=0, XrdOucEnv *envP=0)=0
int Reply(int retVal, int eValue, const char *eText, const char *Path=0)
int Init(XrdOucErrInfo *eInfo)
int setErrInfo(int code, const char *emsg)
int Emsg(const char *esfx, int ecode, const char *text1, const char *text2=0)