1 #ifndef __XRDPFC_IO_FILE_BLOCK_HH__ 2 #define __XRDPFC_IO_FILE_BLOCK_HH__ 58 virtual int Read(
char *Buffer,
long long Offset,
int Length);
62 virtual long long FSize();
long long m_blocksize
size of file-block
Definition: XrdPfcIOFileBlock.hh:65
Base cache-io class that implements XrdOucCacheIO abstract methods.
Definition: XrdPfcIO.hh:16
XrdOssDF * m_info_file
Definition: XrdPfcIOFileBlock.hh:70
Definition: XrdOucCache.hh:102
Attaches/creates and detaches/deletes cache-io objects for disk based cache.
Definition: XrdPfc.hh:280
Status of cached file. Can be read from and written into a binary file.
Definition: XrdPfcInfo.hh:48
XrdSysMutex m_mutex
map mutex
Definition: XrdPfcIOFileBlock.hh:67
struct stat * m_localStat
Definition: XrdPfcIOFileBlock.hh:68
Downloads original file into multiple files, chunked into blocks. Only blocks that are asked for are ...
Definition: XrdPfcIOFileBlock.hh:38
Definition: XrdSysError.hh:89
Definition: XrdSysPthread.hh:165
Info m_info
Definition: XrdPfcIOFileBlock.hh:69
#define stat(a, b)
Definition: XrdPosix.hh:96
void DetachFinalize()
Abstract virtual method of XrdPfcIO Called to destruct the IO object after it is no longer used...
std::map< int, File * > m_blocks
map of created blocks
Definition: XrdPfcIOFileBlock.hh:66
Definition: XrdPfcFile.hh:133
Definition: XrdOucCacheStats.hh:43
void GetBlockSizeFromPath()
virtual int Read(char *buff, long long offs, int rlen)=0
IOFileBlock(XrdOucCacheIO *io, XrdOucCacheStats &stats, Cache &cache)
virtual int Fstat(struct stat &sbuff)
virtual long long FSize()
File * newBlockFile(long long off, int blocksize)
virtual int Read(char *Buffer, long long Offset, int Length)
bool ioActive()
Abstract virtual method of XrdPfcIO Called to check if destruction needs to be done in a separate tas...