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:67
Base cache-io class that implements XrdOucCacheIO abstract methods.
Definition: XrdPfcIO.hh:18
XrdOssDF * m_info_file
Definition: XrdPfcIOFileBlock.hh:72
Definition: XrdOucCache.hh:104
Attaches/creates and detaches/deletes cache-io objects for disk based cache.
Definition: XrdPfc.hh:263
Status of cached file. Can be read from and written into a binary file.
Definition: XrdPfcInfo.hh:44
XrdSysMutex m_mutex
map mutex
Definition: XrdPfcIOFileBlock.hh:69
struct stat * m_localStat
Definition: XrdPfcIOFileBlock.hh:70
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:164
IOFileBlock(XrdOucCacheIO *io, Cache &cache)
virtual void Update(XrdOucCacheIO &iocp)
Info m_info
Definition: XrdPfcIOFileBlock.hh:71
#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:68
Definition: XrdPfcFile.hh:144
void GetBlockSizeFromPath()
virtual int Read(char *buff, long long offs, int rlen)=0
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...