Changeset 3589
- Timestamp:
- 10/31/2009 04:35:26 PM (3 weeks ago)
- Files:
-
- XrdHdfs/Makefile.am (modified) (1 diff)
- XrdHdfs/XrdHdfs.cc (modified) (3 diffs)
- XrdHdfs/XrdHdfs.hh (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
XrdHdfs/Makefile.am
r3540 r3589 18 18 19 19 libXrdHdfs_la_SOURCES = \ 20 XrdHdfs.cc XrdHdfs .hh20 XrdHdfs.cc XrdHdfsConfig.cc XrdHdfs.hh 21 21 22 22 libXrdHdfs_la_LDFLAGS = -lhdfs XrdHdfs/XrdHdfs.cc
r3588 r3589 103 103 // Set up values for this directory object 104 104 // 105 if (XrdHdfsSS ->the_N2N) {106 char actual_path[Xrd OssMAX_PATH_LEN+1];107 if ((retc = XrdHdfsSS->the_N2N->lfn2pfn(dir_path, actual_path, sizeof(actual_path))))105 if (XrdHdfsSS.the_N2N) { 106 char actual_path[XrdHdfsMAX_PATH_LEN+1]; 107 if ((retc = (XrdHdfsSS.the_N2N)->lfn2pfn(dir_path, actual_path, sizeof(actual_path)))) 108 108 return retc; 109 109 else fname = strdup(actual_path); 110 } else { 111 fname = strdup(dir_path); 110 112 } 111 fname = strdup(dir_path);112 113 dirPos = 0; 113 114 … … 253 254 254 255 int retc; 255 if (XrdHdfsSS ->the_N2N) {256 char actual_path[Xrd OssMAX_PATH_LEN+1];257 if ((retc = XrdHdfsSS->the_N2N->lfn2pfn(dir_path, actual_path, sizeof(actual_path))))256 if (XrdHdfsSS.the_N2N) { 257 char actual_path[XrdHdfsMAX_PATH_LEN+1]; 258 if ((retc = (XrdHdfsSS.the_N2N)->lfn2pfn(path, actual_path, sizeof(actual_path)))) 258 259 return retc; 259 260 else fname = strdup(actual_path); 261 } else { 262 fname = strdup(path); 260 263 } 261 fname = strdup(path);262 264 263 265 // Set the actual open mode … … 505 507 // Do the herald thing 506 508 // 507 eDest.logger(lp); 508 eDest.Say("Copr. 2009, Brian Bockelman, Hdfs Version " XrdHdfsSVNID); 509 eDest = &OssEroute; 510 eDest->logger(lp); 511 eDest->Say("Copr. 2009, Brian Bockelman, Hdfs Version "); 509 512 510 513 // Initialize the subsystems 511 514 // 512 515 tmp = ((NoGo=Configure(configfn)) ? "failed." : "completed."); 513 eDest .Say("------ HDFS storage system initialization ", tmp);516 eDest->Say("------ HDFS storage system initialization ", tmp); 514 517 515 518 // All done. XrdHdfs/XrdHdfs.hh
r3588 r3589 18 18 19 19 #include "XrdOuc/XrdOucErrInfo.hh" 20 #include "XrdOuc/XrdOucName2Name.hh" 20 21 21 22 #include "XrdOss/XrdOssApi.hh" … … 27 28 class XrdSysLogger; 28 29 30 #define XrdHdfsMAX_PATH_LEN 1024 29 31 /******************************************************************************/ 30 32 /* X r d H d f s D i r e c t o r y */ … … 151 153 int Create(const char *, const char *, mode_t, XrdOucEnv &, int opts=0) {return -ENOTSUP;} 152 154 153 int Init(XrdSysLogger *, const char *) {return 0;}155 int Init(XrdSysLogger *, const char *); 154 156 155 157 int getStats(char *buff, int blen) {return 0;} … … 189 191 int xnml(XrdOucStream &Config, XrdSysError &Eroute); 190 192 193 static XrdSysError *eDest; 194 191 195 }; 192 196 #endif
