1 #ifndef __XRDOFSCPFILE_HH__
2 #define __XRDOFSCPFILE_HH__
53 int Append(
const char *data, off_t offset,
int dlen);
108 bool Reserve(
int dlen,
int nseg);
156 static char *
Target(
const char *ckpfn);
166 int Used(
int nseg=0);
184 static char *genCkpPath();
185 static int getSrcLfn(
const char *cFN,
rInfo &rinfo,
int fd,
int rc);
void trim(std::string &str)
int stat(const char *path, struct stat *buf)
int64_t fSize
Original size of the source file.
const char * srcLFN
Pointer to the source filename.
XrdOucIOVec * DataVec
A vector of data that must be written back.
int DataLen
Number of bytes to write back (may be 0)
int DataNum
Number of elements in DataVec (may be 0)
time_t mTime
Original modification time of the source.
bool Reserve(int dlen, int nseg)
static char * Target(const char *ckpfn)
int Append(const char *data, off_t offset, int dlen)
XrdOfsCPFile(const char *cfn=0)
int RestoreInfo(rInfo &rinfo, const char *&ewhy)
~XrdOfsCPFile()
Destructor.
int Create(const char *lfn, struct stat &Stat)
const char * FName(bool trim=false)