1 #ifndef __XRDPFC_IO_ENTIRE_FILE_HH__
2 #define __XRDPFC_IO_ENTIRE_FILE_HH__
54 int Read(
char *buff,
long long off,
int size)
override;
57 std::vector<uint32_t> &csvec, uint64_t opts=0,
int *csfix=0)
override;
78 long long FSize()
override;
File * m_file
Definition: XrdPfcIOFile.hh:81
bool ioActive() override
Abstract virtual method of XrdPfc::IO Called to check if destruction needs to be done in a separate t...
int initCachedStat(const char *path)
Base cache-io class that implements some XrdOucCacheIO abstract methods.
Definition: XrdPfcIO.hh:17
Definition: XrdOucCache.hh:104
Attaches/creates and detaches/deletes cache-io objects for disk based cache.
Definition: XrdPfc.hh:263
IOFile(XrdOucCacheIO *io, Cache &cache)
Downloads original file into a single file on local disk. Handles read requests as they come along...
Definition: XrdPfcIOFile.hh:39
int ReadV(const XrdOucIOVec *readV, int n) override
Pass ReadV request to the corresponding File object.
Definition: XrdSysError.hh:89
int ReadBegin(char *buff, long long off, int size, ReadReqRH *rh)
Definition: XrdPfcFile.hh:60
int Fstat(struct stat &sbuff) override
void pgRead(XrdOucCacheIOCB &iocb, char *buff, long long off, int size, std::vector< uint32_t > &csvec, uint64_t opts=0, int *csfix=0) override
bool HasFile() const
Check if File was opened successfully.
Definition: XrdPfcIOFile.hh:49
long long FSize() override
Definition: XrdOucIOVec.hh:40
Definition: XrdOucCache.hh:52
virtual int pgRead(char *buff, long long offs, int rdlen, std::vector< uint32_t > &csvec, uint64_t opts=0, int *csfix=0)
#define stat(a, b)
Definition: XrdPosix.hh:96
Definition: XrdPfcFile.hh:212
int ReadEnd(int retval, ReadReqRH *rh)
struct stat * m_localStat
Definition: XrdPfcIOFile.hh:89
int ReadVBegin(const XrdOucIOVec *readV, int n, ReadReqRH *rh)
int ReadVEnd(int retval, ReadReqRH *rh)
void DetachFinalize() override
Abstract virtual method of XrdPfc::IO Called to destruct the IO object after it is no longer used...
void Update(XrdOucCacheIO &iocp) override
int Read(char *buff, long long off, int size) override
Pass Read request to the corresponding File object.