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);
virtual int Read(char *buff, long long offs, int rlen)=0
XrdOucCacheIO()
Construct and Destructor.
Attaches/creates and detaches/deletes cache-io objects for disk based cache.
void Update(XrdOucCacheIO &iocp) override
long long FSize() override
int Fstat(struct stat &sbuff) override
int Read(char *Buffer, long long Offset, int Length) 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.
IO(XrdOucCacheIO *io, Cache &cache)
Status of cached file. Can be read from and written into a binary file.