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);
#define stat(a, b)
Definition: XrdPosix.hh:96
Definition: XrdOucCache.hh:105
virtual int Read(char *buff, long long offs, int rlen)=0
Attaches/creates and detaches/deletes cache-io objects for disk based cache.
Definition: XrdPfc.hh:264
Definition: XrdPfcFile.hh:139
Downloads original file into multiple files, chunked into blocks. Only blocks that are asked for are ...
Definition: XrdPfcIOFileBlock.hh:39
bool ioActive()
Abstract virtual method of XrdPfcIO Called to check if destruction needs to be done in a separate tas...
XrdSysMutex m_mutex
map mutex
Definition: XrdPfcIOFileBlock.hh:69
std::map< int, File * > m_blocks
map of created blocks
Definition: XrdPfcIOFileBlock.hh:68
File * newBlockFile(long long off, int blocksize)
virtual void Update(XrdOucCacheIO &iocp)
Info m_info
Definition: XrdPfcIOFileBlock.hh:71
IOFileBlock(XrdOucCacheIO *io, Cache &cache)
long long m_blocksize
size of file-block
Definition: XrdPfcIOFileBlock.hh:67
void DetachFinalize()
Abstract virtual method of XrdPfcIO Called to destruct the IO object after it is no longer used.
struct stat * m_localStat
Definition: XrdPfcIOFileBlock.hh:70
XrdOssDF * m_info_file
Definition: XrdPfcIOFileBlock.hh:72
virtual int Read(char *Buffer, long long Offset, int Length)
virtual int Fstat(struct stat &sbuff)
void GetBlockSizeFromPath()
virtual long long FSize()
Base cache-io class that implements XrdOucCacheIO abstract methods.
Definition: XrdPfcIO.hh:17
Status of cached file. Can be read from and written into a binary file.
Definition: XrdPfcInfo.hh:45
Definition: XrdSysError.hh:90
Definition: XrdSysPthread.hh:166