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