54extern XrdSysError
Elog;
58extern thread_local XrdOucECMsg
ecMsg;
62#define Neg(x) (x > 0 ? -x : x)
70 if (zFile)
delete zFile;
86 if (retsz) *retsz = 0;
89 }
else rc = ossDF->Close(retsz);
106 if (ossDF->getErrMsg(xMsg))
108 ecMsg.Msg(
"oss", xMsg.c_str());
113 return ossDF->getErrMsg(eText);
131 if (rc == EDOM)
return ossDF->Opendir(path, env);
140 char arcPath[MAXPATHLEN];
141 if ((rc = dsInfo.
ArcPath(arcPath,
sizeof(arcPath),
true)))
142 {
Elog.Emsg(
"opendir", rc,
"instantiate path", arcPath);
148 DEBUG(
"Dir="<<arcPath);
149 if ((arcFD = XrdSysFD_Open(arcPath, O_RDONLY)) < 0)
151 Elog.Emsg(
"opendir", rc,
"open directory", arcPath);
161 {
Elog.Emsg(
"opendir", rc,
"promote open of", arcPath);
int ArcPath(char *buff, int blen, bool addafn=false)
int Close(long long *retsz=0) override
bool getErrMsg(std::string &eText) override
int Opendir(const char *path, XrdOucEnv &env) override
static const int Fctl_setFD
XrdSysTrace ArcTrace("OssArc")
XrdSysError Elog(0, "OssArc_")