1 #ifndef __XRDPFC_IO_FILE_BLOCK_HH__
2 #define __XRDPFC_IO_FILE_BLOCK_HH__
57 int Read(
char *Buffer,
long long Offset,
int Length)
override;
61 long long FSize()
override;
66 long long m_blocksize;
67 std::map<int, File*> m_blocks;
69 struct stat *m_localStat;
73 void GetBlockSizeFromPath();
75 File* newBlockFile(
long long off,
int blocksize);
int stat(const char *path, struct stat *buf)
virtual int Read(char *buff, long long offs, int rlen)=0
Attaches/creates and detaches/deletes cache-io objects for disk based cache.
Downloads original file into multiple files, chunked into blocks. Only blocks that are asked for are ...
void Update(XrdOucCacheIO &iocp) override
long long FSize() override
virtual int Read(char *buff, long long offs, int rlen)=0
Pass Read request to the corresponding File object.
int Fstat(struct stat &sbuff) override
IOFileBlock(XrdOucCacheIO *io, Cache &cache)
bool ioActive() override
Abstract virtual method of XrdPfc::IO Called to check if destruction needs to be done in a separate t...
void DetachFinalize() override
Abstract virtual method of XrdPfc::IO Called to destruct the IO object after it is no longer used.
Base cache-io class that implements some XrdOucCacheIO abstract methods.
Status of cached file. Can be read from and written into a binary file.