xrootd
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
XrdOfs.hh
Go to the documentation of this file.
1 #ifndef __OFS_API_H__
2 #define __OFS_API_H__
3 /******************************************************************************/
4 /* */
5 /* X r d O f s . h h */
6 /* */
7 /* (c) 2004 by the Board of Trustees of the Leland Stanford, Jr., University */
8 /* Produced by Andrew Hanushevsky for Stanford University under contract */
9 /* DE-AC02-76-SFO0515 with the Department of Energy */
10 /* */
11 /* This file is part of the XRootD software suite. */
12 /* */
13 /* XRootD is free software: you can redistribute it and/or modify it under */
14 /* the terms of the GNU Lesser General Public License as published by the */
15 /* Free Software Foundation, either version 3 of the License, or (at your */
16 /* option) any later version. */
17 /* */
18 /* XRootD is distributed in the hope that it will be useful, but WITHOUT */
19 /* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or */
20 /* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public */
21 /* License for more details. */
22 /* */
23 /* You should have received a copy of the GNU Lesser General Public License */
24 /* along with XRootD in a file called COPYING.LESSER (LGPL license) and file */
25 /* COPYING (GPL license). If not, see <http://www.gnu.org/licenses/>. */
26 /* */
27 /* The copyright holder's institutional names and contributor's names may not */
28 /* be used to endorse or promote products derived from this software without */
29 /* specific prior written permission of the institution or contributor. */
30 /******************************************************************************/
31 
32 #include <cstring>
33 #include <dirent.h>
34 #include <sys/types.h>
35 
36 #include "XrdOfs/XrdOfsEvr.hh"
37 #include "XrdOfs/XrdOfsHandle.hh"
38 #include "XrdSys/XrdSysPthread.hh"
40 #include "XrdCms/XrdCmsClient.hh"
41 
42 class XrdNetIF;
43 class XrdOfsEvs;
44 class XrdOfsPocq;
45 class XrdOfsPrepare;
46 class XrdOss;
47 class XrdOssDF;
48 class XrdOssDir;
49 class XrdOucEnv;
50 class XrdOucPListAnchor;
51 class XrdSysError;
52 class XrdSysLogger;
53 class XrdOucStream;
54 class XrdSfsAio;
55 
56 struct XrdVersionInfo;
57 
58 /******************************************************************************/
59 /* X r d O f s D i r e c t o r y */
60 /******************************************************************************/
61 
63 {
64 public:
65 
66  int open(const char *dirName,
67  const XrdSecEntity *client,
68  const char *opaque = 0);
69 
70  const char *nextEntry();
71 
72  int close();
73 
74 inline void copyError(XrdOucErrInfo &einfo) {einfo = error;}
75 
76 const char *FName() {return (const char *)fname;}
77 
78  int autoStat(struct stat *buf);
79 
80  XrdOfsDirectory(XrdOucErrInfo &eInfo, const char *user)
81  : XrdSfsDirectory(eInfo), tident(user ? user : ""),
82  fname(0), dp(0), atEOF(0) {}
83 
84 virtual ~XrdOfsDirectory() {if (dp) close();}
85 
86 protected:
87 const char *tident;
88 char *fname;
90 int atEOF;
91 char dname[MAXNAMLEN];
92 };
93 
95 {
96 public:
97  XrdOfsDirFull(const char *user, int MonID)
98  : XrdOfsDirectory(myEInfo, user), myEInfo(user, MonID)
99  {}
100 
101 virtual ~XrdOfsDirFull() {}
102 
103 private:
104 XrdOucErrInfo myEInfo; // Accessible only by reference error
105 };
106 
107 /******************************************************************************/
108 /* X r d O f s F i l e */
109 /******************************************************************************/
110 
111 class XrdOfsTPC;
112 class XrdOucChkPnt;
113 
114 class XrdOfsFile : public XrdSfsFile
115 {
116 public:
117 
118  int open(const char *fileName,
119  XrdSfsFileOpenMode openMode,
120  mode_t createMode,
121  const XrdSecEntity *client,
122  const char *opaque = 0);
123 
125  struct iov *range=0, int n=0);
126 
127  int close();
128 
129  using XrdSfsFile::fctl;
130 
131  int fctl(const int cmd,
132  const char *args,
133  XrdOucErrInfo &out_error);
134 
135  int fctl(const int cmd,
136  int alen,
137  const char *args,
138  const XrdSecEntity *client = 0);
139 
140  const char *FName() {return (oh ? oh->Name() : "?");}
141 
142  int getMmap(void **Addr, off_t &Size);
143 
145  char *buffer,
146  XrdSfsXferSize rdlen,
147  uint32_t *csvec,
148  uint64_t opts=0);
149 
150  int pgRead(XrdSfsAio *aioparm, uint64_t opts=0);
151 
152 
154  char *buffer,
155  XrdSfsXferSize wrlen,
156  uint32_t *csvec,
157  uint64_t opts=0);
158 
159  int pgWrite(XrdSfsAio *aioparm, uint64_t opts=0);
160 
161 
162  int read(XrdSfsFileOffset fileOffset, // Preread only
163  XrdSfsXferSize amount);
164 
166  char *buffer,
167  XrdSfsXferSize buffer_size);
168 
170  int readCount);
171 
172  int read(XrdSfsAio *aioparm);
173 
175  const char *buffer,
176  XrdSfsXferSize buffer_size);
177 
178  int write(XrdSfsAio *aioparm);
179 
180  int sync();
181 
182  int sync(XrdSfsAio *aiop);
183 
184  int stat(struct stat *buf);
185 
186  int truncate(XrdSfsFileOffset fileOffset);
187 
188  int getCXinfo(char cxtype[4], int &cxrsz);
189 
190  XrdOfsFile(XrdOucErrInfo &eInfo, const char *user);
191 
192  ~XrdOfsFile() {viaDel = 1; if (oh) close();}
193 
194 protected:
195 
196 const char *tident;
201 char viaDel;
202 bool ckpBad;
203 
204 private:
205 
206 void GenFWEvent();
207 int CreateCKP();
208 };
209 
211 {
212 public:
213  XrdOfsFileFull(const char *user, int MonID)
214  : XrdOfsFile(myEInfo, user), myEInfo(user, MonID)
215  {}
216 
217 virtual ~XrdOfsFileFull() {}
218 
219 private:
220 XrdOucErrInfo myEInfo; // Accessible only by reference error
221 };
222 
223 /******************************************************************************/
224 /* C l a s s X r d O f s */
225 /******************************************************************************/
226 
227 class XrdAccAuthorize;
228 class XrdCks;
229 class XrdCmsClient;
230 class XrdOfsConfigPI;
231 class XrdOfsFSctl_PI;
232 class XrdOfsPoscq;
233 class XrdSfsFACtl;
234 
235 class XrdOfs : public XrdSfsFileSystem
236 {
237 friend class XrdOfsDirectory;
238 friend class XrdOfsFile;
239 
240 public:
241 
242 // Object allocation
243 //
244  XrdSfsDirectory *newDir(char *user=0, int MonID=0)
245  {return new XrdOfsDirFull(user, MonID);}
246 
248  {return new XrdOfsDirectory(eInfo, eInfo.getErrUser());}
249 
250  XrdSfsFile *newFile(char *user=0,int MonID=0)
251  {return new XrdOfsFileFull(user, MonID);}
252 
254  {return new XrdOfsFile(eInfo, eInfo.getErrUser());}
255 
256 // Other functions
257 //
258  int chksum( csFunc Func,
259  const char *csName,
260  const char *Path,
261  XrdOucErrInfo &out_error,
262  const XrdSecEntity *client = 0,
263  const char *opaque = 0);
264 
265  int chmod(const char *Name,
266  XrdSfsMode Mode,
267  XrdOucErrInfo &out_error,
268  const XrdSecEntity *client,
269  const char *opaque = 0);
270 
271  void Connect(const XrdSecEntity *client = 0);
272 
273  void Disc(const XrdSecEntity *client = 0);
274 
275  int exists(const char *fileName,
276  XrdSfsFileExistence &exists_flag,
277  XrdOucErrInfo &out_error,
278  const XrdSecEntity *client,
279  const char *opaque = 0);
280 
281  int FAttr( XrdSfsFACtl *faReq,
282  XrdOucErrInfo &eInfo,
283  const XrdSecEntity *client = 0);
284 
285  int FSctl(const int cmd,
286  XrdSfsFSctl &args,
287  XrdOucErrInfo &eInfo,
288  const XrdSecEntity *client = 0);
289 
290  int fsctl(const int cmd,
291  const char *args,
292  XrdOucErrInfo &out_error,
293  const XrdSecEntity *client = 0);
294 
295  int getStats(char *buff, int blen);
296 
297 const char *getVersion();
298 
299  int mkdir(const char *dirName,
300  XrdSfsMode Mode,
301  XrdOucErrInfo &out_error,
302  const XrdSecEntity *client,
303  const char *opaque = 0);
304 
305  int prepare( XrdSfsPrep &pargs,
306  XrdOucErrInfo &out_error,
307  const XrdSecEntity *client = 0);
308 
309  int rem(const char *path,
310  XrdOucErrInfo &out_error,
311  const XrdSecEntity *client,
312  const char *info = 0)
313  {return remove('f', path, out_error, client, info);}
314 
315  int remdir(const char *dirName,
316  XrdOucErrInfo &out_error,
317  const XrdSecEntity *client,
318  const char *info = 0)
319  {return remove('d',dirName,out_error,client,info);}
320 
321  int rename(const char *oldFileName,
322  const char *newFileName,
323  XrdOucErrInfo &out_error,
324  const XrdSecEntity *client,
325  const char *infoO = 0,
326  const char *infoN = 0);
327 
328  int stat(const char *Name,
329  struct stat *buf,
330  XrdOucErrInfo &out_error,
331  const XrdSecEntity *client,
332  const char *opaque = 0);
333 
334  int stat(const char *Name,
335  mode_t &mode,
336  XrdOucErrInfo &out_error,
337  const XrdSecEntity *client,
338  const char *opaque = 0);
339 
340  int truncate(const char *Name,
341  XrdSfsFileOffset fileOffset,
342  XrdOucErrInfo &out_error,
343  const XrdSecEntity *client = 0,
344  const char *opaque = 0);
345 // Management functions
346 //
347 virtual int Configure(XrdSysError &); // Backward Compatibility
348 
349 virtual int Configure(XrdSysError &, XrdOucEnv *);
350 
351  void Config_Cluster(XrdOss *);
352 
353  void Config_Display(XrdSysError &);
354 
355  XrdOfs();
356 virtual ~XrdOfs() {} // Too complicate to delete :-)
357 
358 /******************************************************************************/
359 /* C o n f i g u r a t i o n V a l u e s */
360 /******************************************************************************/
361 
362 // Configuration values for this filesystem
363 //
364 enum {Authorize = 0x0001, // Authorization wanted
365  XAttrPlug = 0x0002, // Extended Attribute Plugin
366  isPeer = 0x0050, // Role peer
367  isProxy = 0x0020, // Role proxy
368  isManager = 0x0040, // Role manager
369  isServer = 0x0080, // Role server
370  isSuper = 0x00C0, // Role supervisor
371  isMeta = 0x0100, // Role meta + above
372  haveRole = 0x01F0, // A role is present
373  Forwarding= 0x1000, // Fowarding wanted
374  ThirdPC = 0x2000, // This party copy wanted
375  SubCluster= 0x4000, // all.subcluster directive encountered
376  RdrTPC = 0x8000
377  }; // These are set in Options below
378 
379 int Options; // Various options
380 int myPort; // Port number being used
381 
382 // TPC related things
383 //
384 char *tpcRdrHost[2]; // TPC redirect target or null if none
385 int tpcRdrPort[2]; // TPC redirect target port number
386 
387 // Networking
388 //
390 
391 // Forward options
392 //
393 struct fwdOpt
394  {const char *Cmd;
395  char *Host;
396  int Port;
397  void Reset() {Cmd = 0; Port = 0;
398  if (Host) {free(Host); Host = 0;}
399  }
400  fwdOpt() : Cmd(0), Host(0), Port(0) {}
401  ~fwdOpt() {}
402  };
403 
407 struct fwdOpt fwdMV;
408 struct fwdOpt fwdRM;
411 
412 static int MaxDelay; // Max delay imposed during staging
413 static int OSSDelay; // Delay to impose when oss interface times out
414 
415 char *ConfigFN; // ->Configuration filename
416 
417 /******************************************************************************/
418 /* P r o t e c t e d I t e m s */
419 /******************************************************************************/
420 
421 protected:
422 
423 XrdOfsEvr evrObject; // Event receiver
424 XrdCmsClient *Finder; // ->Cluster Management Service
425 
426 virtual int ConfigXeq(char *var, XrdOucStream &, XrdSysError &);
427 static int Emsg(const char *, XrdOucErrInfo &, int, const char *x,
428  XrdOfsHandle *hP);
429 static int Emsg(const char *, XrdOucErrInfo &, int, const char *x,
430  const char *y="");
431 static int fsError(XrdOucErrInfo &myError, int rc);
432 const char *Split(const char *Args, const char **Opq, char *Path, int Plen);
433  int Stall(XrdOucErrInfo &, int, const char *);
434  void Unpersist(XrdOfsHandle *hP, int xcev=1);
435  char *WaitTime(int, char *, int);
436 
437 /******************************************************************************/
438 /* P r i v a t e C o n f i g u r a t i o n */
439 /******************************************************************************/
440 
441 private:
442 
443 char *myRole;
444 XrdOfsFSctl_PI *FSctl_PI; // ->FSctl plugin
445 XrdAccAuthorize *Authorization; // ->Authorization Service
446 XrdCmsClient *Balancer; // ->Cluster Local Interface
447 XrdOfsEvs *evsObject; // ->Event Notifier
448 XrdOucPListAnchor*ossRPList; // ->Oss exoprt list
449 
450 XrdOfsPoscq *poscQ; // -> poscQ if persist on close enabled
451 char *poscLog; // -> Directory for posc recovery log
452 int poscHold; // Seconds to hold a forced close
453 short poscSync; // Number of requests before sync
454 signed char poscAuto; // 1 -> Automatic persist on close
455 
456 char ossRW; // The oss r/w capability
457 
458 XrdOfsConfigPI *ofsConfig; // Plugin configurator
459 XrdOfsPrepare *prepHandler; // Plugin prepare
460 XrdCks *Cks; // Checksum manager
461 bool CksPfn; // Checksum needs a pfn
462 bool CksRdr; // Checksum may be redirected (i.e. not local)
463 bool prepAuth; // Prepare requires authorization
464 char OssIsProxy; // !0 if we detect the oss plugin is a proxy
465 char myRType[4]; // Role type for consistency with the cms
466 
467 uint64_t ossFeatures; // The oss features
468 
469 int usxMaxNsz; // Maximum length of attribute name
470 int usxMaxVsz; // Maximum length of attribute value
471 
473 XrdSysMutex ocMutex; // Global mutex for open/close
474 
475 bool DirRdr; // Opendir() can be redirected.
476 bool reProxy; // Reproxying required for TPC
477 bool OssHasPGrw; // True: oss implements full rgRead/Write
478 
479 /******************************************************************************/
480 /* O t h e r D a t a */
481 /******************************************************************************/
482 
483 // Internal file attribute methods
484 //
485 int ctlFADel(XrdSfsFACtl &faCtl, XrdOucEnv &faEnv, XrdOucErrInfo &einfo);
486 int ctlFAGet(XrdSfsFACtl &faCtl, XrdOucEnv &faEnv, XrdOucErrInfo &einfo);
487 int ctlFALst(XrdSfsFACtl &faCtl, XrdOucEnv &faEnv, XrdOucErrInfo &einfo);
488 int ctlFASet(XrdSfsFACtl &faCtl, XrdOucEnv &faEnv, XrdOucErrInfo &einfo);
489 
490 // Common functions
491 //
492 int remove(const char type, const char *path, XrdOucErrInfo &out_error,
493  const XrdSecEntity *client, const char *opaque);
494 
495 // Function used during Configuration
496 //
497 int ConfigDispFwd(char *buff, struct fwdOpt &Fwd);
498 int ConfigPosc(XrdSysError &Eroute);
499 int ConfigRedir(XrdSysError &Eroute, XrdOucEnv *EnvInfo);
500 int ConfigTPC(XrdSysError &Eroute, XrdOucEnv *EnvInfo);
501 int ConfigTPC(XrdSysError &Eroute);
502 char *ConfigTPCDir(XrdSysError &Eroute, const char *sfx,
503  const char *xPath=0);
504 const char *Fname(const char *);
505 int Forward(int &Result, XrdOucErrInfo &Resp, struct fwdOpt &Fwd,
506  const char *arg1=0, const char *arg2=0,
507  XrdOucEnv *Env1=0, XrdOucEnv *Env2=0);
508 int FSctl(XrdOfsFile &file, int cmd, int alen, const char *args,
509  const XrdSecEntity *client);
510 int Reformat(XrdOucErrInfo &);
511 const char *theRole(int opts);
512 int xcrds(XrdOucStream &, XrdSysError &);
513 int xdirl(XrdOucStream &, XrdSysError &);
514 int xexp(XrdOucStream &, XrdSysError &, bool);
516 int xmaxd(XrdOucStream &, XrdSysError &);
517 int xnmsg(XrdOucStream &, XrdSysError &);
518 int xnot(XrdOucStream &, XrdSysError &);
519 int xpers(XrdOucStream &, XrdSysError &);
520 int xrole(XrdOucStream &, XrdSysError &);
521 int xtpc(XrdOucStream &, XrdSysError &);
523 int xtpcr(XrdOucStream &, XrdSysError &);
525 int xatr(XrdOucStream &, XrdSysError &);
526 };
527 #endif
int ConfigPosc(XrdSysError &Eroute)
int xtpcr(XrdOucStream &, XrdSysError &)
XrdOfsPoscq * poscQ
Definition: XrdOfs.hh:450
bool reProxy
Definition: XrdOfs.hh:476
bool CksPfn
Definition: XrdOfs.hh:461
int poscHold
Definition: XrdOfs.hh:452
Definition: XrdOfs.hh:374
Definition: XrdOfs.hh:375
void Unpersist(XrdOfsHandle *hP, int xcev=1)
int xforward(XrdOucStream &, XrdSysError &)
XrdSfsFile * newFile(XrdOucErrInfo &eInfo)
Definition: XrdOfs.hh:253
XrdSfsXferSize pgRead(XrdSfsFileOffset offset, char *buffer, XrdSfsXferSize rdlen, uint32_t *csvec, uint64_t opts=0)
Definition: XrdOfs.hh:210
XrdSfsXferSize pgWrite(XrdSfsFileOffset offset, char *buffer, XrdSfsXferSize wrlen, uint32_t *csvec, uint64_t opts=0)
~fwdOpt()
Definition: XrdOfs.hh:401
char * WaitTime(int, char *, int)
int xmaxd(XrdOucStream &, XrdSysError &)
XrdSfsFile * newFile(char *user=0, int MonID=0)
Definition: XrdOfs.hh:250
Definition: XrdOfs.hh:366
Definition: XrdCks.hh:91
struct fwdOpt fwdTRUNC
Definition: XrdOfs.hh:410
int CreateCKP()
Definition: XrdOfsPoscq.hh:41
Definition: XrdOucPList.hh:88
const char * Fname(const char *)
int exists(const char *fileName, XrdSfsFileExistence &exists_flag, XrdOucErrInfo &out_error, const XrdSecEntity *client, const char *opaque=0)
const char * Split(const char *Args, const char **Opq, char *Path, int Plen)
char * poscLog
Definition: XrdOfs.hh:451
static int MaxDelay
Definition: XrdOfs.hh:412
void GenFWEvent()
int read(XrdSfsFileOffset fileOffset, XrdSfsXferSize amount)
int ctlFASet(XrdSfsFACtl &faCtl, XrdOucEnv &faEnv, XrdOucErrInfo &einfo)
int xcrds(XrdOucStream &, XrdSysError &)
int rename(const char *oldFileName, const char *newFileName, XrdOucErrInfo &out_error, const XrdSecEntity *client, const char *infoO=0, const char *infoN=0)
struct fwdOpt fwdCHMOD
Definition: XrdOfs.hh:404
int fctl(const int cmd, const char *args, XrdOucErrInfo &out_error)
XrdSfsXferSize write(XrdSfsFileOffset fileOffset, const char *buffer, XrdSfsXferSize buffer_size)
int dorawio
Definition: XrdOfs.hh:200
char OssIsProxy
Definition: XrdOfs.hh:464
XrdNetIF * myIF
Definition: XrdOfs.hh:389
Definition: XrdOfsEvs.hh:120
Definition: XrdOfs.hh:364
struct fwdOpt fwdMV
Definition: XrdOfs.hh:407
Definition: XrdOucStream.hh:46
XrdOucChkPnt * myCKP
Definition: XrdOfs.hh:199
int XrdSfsXferSize
Definition: XrdSfsInterface.hh:129
const char * theRole(int opts)
XrdOucErrInfo myEInfo
Definition: XrdOfs.hh:220
int usxMaxNsz
Definition: XrdOfs.hh:469
XrdSfsFileExistence
Definition: XrdSfsInterface.hh:131
bool ckpBad
Definition: XrdOfs.hh:202
Definition: XrdOfsEvr.hh:42
virtual ~XrdOfs()
Definition: XrdOfs.hh:356
XrdSfsDirectory * newDir(char *user=0, int MonID=0)
Definition: XrdOfs.hh:244
int stat(struct stat *buf)
XrdOfsFile(XrdOucErrInfo &eInfo, const char *user)
char * Host
Definition: XrdOfs.hh:395
Definition: XrdCmsClient.hh:115
virtual int fctl(const int cmd, const char *args, XrdOucErrInfo &eInfo)=0
int ctlFADel(XrdSfsFACtl &faCtl, XrdOucEnv &faEnv, XrdOucErrInfo &einfo)
Definition: XrdNetIF.hh:48
int xnmsg(XrdOucStream &, XrdSysError &)
int Stall(XrdOucErrInfo &, int, const char *)
Definition: XrdOucChkPnt.hh:40
Definition: XrdAccAuthorize.hh:65
struct fwdOpt fwdRM
Definition: XrdOfs.hh:408
XrdOfsHandle * oh
Definition: XrdOfs.hh:197
static int fsError(XrdOucErrInfo &myError, int rc)
int open(const char *fileName, XrdSfsFileOpenMode openMode, mode_t createMode, const XrdSecEntity *client, const char *opaque=0)
friend class XrdOfsDirectory
Definition: XrdOfs.hh:237
virtual ~XrdOfsDirectory()
Definition: XrdOfs.hh:84
XrdCmsClient * Balancer
Definition: XrdOfs.hh:446
int tpcRdrPort[2]
Definition: XrdOfs.hh:385
char * tpcRdrHost[2]
Definition: XrdOfs.hh:384
Definition: XrdOfs.hh:94
void Connect(const XrdSecEntity *client=0)
int truncate(const char *Name, XrdSfsFileOffset fileOffset, XrdOucErrInfo &out_error, const XrdSecEntity *client=0, const char *opaque=0)
Definition: XrdSfsFAttr.hh:72
Definition: XrdSysError.hh:89
int autoStat(struct stat *buf)
Definition: XrdOfs.hh:371
int stat(const char *Name, struct stat *buf, XrdOucErrInfo &out_error, const XrdSecEntity *client, const char *opaque=0)
const char * Cmd
Definition: XrdOfs.hh:394
XrdOfsFileFull(const char *user, int MonID)
Definition: XrdOfs.hh:213
Definition: XrdOfsTPC.hh:47
int Reformat(XrdOucErrInfo &)
bool prepAuth
Definition: XrdOfs.hh:463
XrdCmsClient * Finder
Definition: XrdOfs.hh:424
char * fname
Definition: XrdOfs.hh:88
virtual int ConfigXeq(char *var, XrdOucStream &, XrdSysError &)
int open(const char *dirName, const XrdSecEntity *client, const char *opaque=0)
Definition: XrdSfsInterface.hh:238
const char * nextEntry()
XrdSysMutex ocMutex
Definition: XrdOfs.hh:473
Definition: XrdOfsHandle.hh:125
int xtpcal(XrdOucStream &, XrdSysError &)
Definition: XrdSysPthread.hh:164
const char * Name()
Definition: XrdOfsHandle.hh:148
Definition: XrdOucIOVec.hh:65
char * ConfigFN
Definition: XrdOfs.hh:415
long long XrdSfsFileOffset
Definition: XrdSfsInterface.hh:126
void Reset()
Definition: XrdOfs.hh:397
virtual ~XrdOfsDirFull()
Definition: XrdOfs.hh:101
int xtpc(XrdOucStream &, XrdSysError &)
Definition: XrdOfs.hh:365
&lt; SFS_FSCTL_PLUGIN/PLUGIO parms
Definition: XrdSfsInterface.hh:159
int mkdir(const char *dirName, XrdSfsMode Mode, XrdOucErrInfo &out_error, const XrdSecEntity *client, const char *opaque=0)
void Disc(const XrdSecEntity *client=0)
const char * tident
Definition: XrdOfs.hh:196
int rem(const char *path, XrdOucErrInfo &out_error, const XrdSecEntity *client, const char *info=0)
Definition: XrdOfs.hh:309
XrdSfsXferSize readv(XrdOucIOVec *readV, int readCount)
char viaDel
Definition: XrdOfs.hh:201
int xnot(XrdOucStream &, XrdSysError &)
Definition: XrdOfs.hh:372
char ossRW
Definition: XrdOfs.hh:456
int truncate(XrdSfsFileOffset fileOffset)
XrdSfsDirectory * newDir(XrdOucErrInfo &eInfo)
Definition: XrdOfs.hh:247
Definition: XrdOucErrInfo.hh:100
int fsctl(const int cmd, const char *args, XrdOucErrInfo &out_error, const XrdSecEntity *client=0)
~XrdOfsFile()
Definition: XrdOfs.hh:192
Definition: XrdOfsConfigPI.hh:60
Definition: XrdOucEnv.hh:41
XrdOfsTPC * myTPC
Definition: XrdOfs.hh:198
const char * getVersion()
Definition: XrdOucIOVec.hh:40
XrdOfsEvr evrObject
Definition: XrdOfs.hh:423
int ctlFAGet(XrdSfsFACtl &faCtl, XrdOucEnv &faEnv, XrdOucErrInfo &einfo)
XrdCks * Cks
Definition: XrdOfs.hh:460
XrdOfsPrepare * prepHandler
Definition: XrdOfs.hh:459
int chksum(csFunc Func, const char *csName, const char *Path, XrdOucErrInfo &out_error, const XrdSecEntity *client=0, const char *opaque=0)
Definition: XrdOfs.hh:370
static int Emsg(const char *, XrdOucErrInfo &, int, const char *x, XrdOfsHandle *hP)
int ConfigDispFwd(char *buff, struct fwdOpt &Fwd)
int xpers(XrdOucStream &, XrdSysError &)
char dname[MAXNAMLEN]
Definition: XrdOfs.hh:91
Definition: XrdOfsFSctl_PI.hh:51
int remdir(const char *dirName, XrdOucErrInfo &out_error, const XrdSecEntity *client, const char *info=0)
Definition: XrdOfs.hh:315
Definition: XrdOfs.hh:235
bool OssHasPGrw
Definition: XrdOfs.hh:477
Definition: XrdOfs.hh:373
char * myRole
Definition: XrdOfs.hh:443
Definition: XrdOssApi.hh:51
int getMmap(void **Addr, off_t &Size)
int getStats(char *buff, int blen)
struct fwdOpt fwdMKPATH
Definition: XrdOfs.hh:406
void copyError(XrdOucErrInfo &einfo)
Definition: XrdOfs.hh:74
cpAct
Definition: XrdSfsInterface.hh:428
int xatr(XrdOucStream &, XrdSysError &)
int checkpoint(XrdSfsFile::cpAct act, struct iov *range=0, int n=0)
short poscSync
Definition: XrdOfs.hh:453
int getCXinfo(char cxtype[4], int &cxrsz)
Definition: XrdSysLogger.hh:52
signed char poscAuto
Definition: XrdOfs.hh:454
int FAttr(XrdSfsFACtl *faReq, XrdOucErrInfo &eInfo, const XrdSecEntity *client=0)
int FSctl(const int cmd, XrdSfsFSctl &args, XrdOucErrInfo &eInfo, const XrdSecEntity *client=0)
static int OSSDelay
Definition: XrdOfs.hh:413
Definition: XrdOfs.hh:376
int chmod(const char *Name, XrdSfsMode Mode, XrdOucErrInfo &out_error, const XrdSecEntity *client, const char *opaque=0)
XrdOfsEvs * evsObject
Definition: XrdOfs.hh:447
int xdirl(XrdOucStream &, XrdSysError &)
bool DirRdr
Definition: XrdOfs.hh:475
#define stat(a, b)
Definition: XrdPosix.hh:96
void Config_Cluster(XrdOss *)
int xexp(XrdOucStream &, XrdSysError &, bool)
Definition: XrdOfs.hh:367
int xtrace(XrdOucStream &, XrdSysError &)
const char * tident
Definition: XrdOfs.hh:87
Definition: XrdOfs.hh:114
int xrole(XrdOucStream &, XrdSysError &)
char myRType[4]
Definition: XrdOfs.hh:465
int ctlFALst(XrdSfsFACtl &faCtl, XrdOucEnv &faEnv, XrdOucErrInfo &einfo)
XrdOucPListAnchor * ossRPList
Definition: XrdOfs.hh:448
Definition: XrdOfs.hh:368
struct fwdOpt fwdMKDIR
Definition: XrdOfs.hh:405
int XrdSfsMode
Definition: XrdSfsInterface.hh:128
const char * getErrUser()
Definition: XrdOucErrInfo.hh:297
XrdOfsFSctl_PI * FSctl_PI
Definition: XrdOfs.hh:444
int prepare(XrdSfsPrep &pargs, XrdOucErrInfo &out_error, const XrdSecEntity *client=0)
virtual int Configure(XrdSysError &)
Definition: XrdOss.hh:497
int usxMaxVsz
Definition: XrdOfs.hh:470
XrdOfsDirFull(const char *user, int MonID)
Definition: XrdOfs.hh:97
Definition: XrdOfs.hh:393
int myPort
Definition: XrdOfs.hh:380
Definition: XrdOss.hh:62
XrdOfsConfigPI * ofsConfig
Definition: XrdOfs.hh:458
Definition: XrdOfs.hh:62
bool CksRdr
Definition: XrdOfs.hh:462
int atEOF
Definition: XrdOfs.hh:90
int Forward(int &Result, XrdOucErrInfo &Resp, struct fwdOpt &Fwd, const char *arg1=0, const char *arg2=0, XrdOucEnv *Env1=0, XrdOucEnv *Env2=0)
int ConfigTPC(XrdSysError &Eroute, XrdOucEnv *EnvInfo)
friend class XrdOfsFile
Definition: XrdOfs.hh:238
int Options
Definition: XrdOfs.hh:379
Definition: XrdSecEntity.hh:63
XrdOssDF * dp
Definition: XrdOfs.hh:89
Definition: XrdOfs.hh:369
Definition: XrdSfsAio.hh:58
XrdAccAuthorize * Authorization
Definition: XrdOfs.hh:445
Definition: XrdSfsInterface.hh:364
&lt; Prepare parameters
Definition: XrdSfsInterface.hh:167
XrdOucErrInfo & error
Definition: XrdSfsInterface.hh:247
Definition: XrdOfsPrepare.hh:46
void Config_Display(XrdSysError &)
char * ConfigTPCDir(XrdSysError &Eroute, const char *sfx, const char *xPath=0)
XrdOucErrInfo myEInfo
Definition: XrdOfs.hh:104
struct fwdOpt fwdRMDIR
Definition: XrdOfs.hh:409
int XrdSfsFileOpenMode
Definition: XrdSfsInterface.hh:127
fwdOpt()
Definition: XrdOfs.hh:400
XrdOfsDirectory(XrdOucErrInfo &eInfo, const char *user)
Definition: XrdOfs.hh:80
const char * FName()
Definition: XrdOfs.hh:140
virtual ~XrdOfsFileFull()
Definition: XrdOfs.hh:217
int Port
Definition: XrdOfs.hh:396
static XrdOfsHandle * dummyHandle
Definition: XrdOfs.hh:472
const char * FName()
Definition: XrdOfs.hh:76
uint64_t ossFeatures
Definition: XrdOfs.hh:467
int ConfigRedir(XrdSysError &Eroute, XrdOucEnv *EnvInfo)