![]() |
CernVM-FS
2.13.0
|
#include <file_chunk.h>
Classes | |
struct | OpenChunks |
Public Member Functions | |
SimpleChunkTables () | |
~SimpleChunkTables () | |
int | Add (FileChunkReflist chunks) |
OpenChunks | Get (int fd) |
void | Release (int fd) |
Private Member Functions | |
void | Lock () |
void | Unlock () |
![]() | |
SingleCopy () | |
Private Attributes | |
std::vector< OpenChunks > | fd_table_ |
pthread_mutex_t * | lock_ |
Connects virtual file descriptors to FileChunkLists. Used by libcvmfs. Tries to keep the file descriptors small because they need to fit within 29bit. This class takes the ownership of the FileChunkList objects pointed to by the elements of fd_table_.
Definition at line 131 of file file_chunk.h.
SimpleChunkTables::SimpleChunkTables | ( | ) |
SimpleChunkTables::~SimpleChunkTables | ( | ) |
Definition at line 158 of file file_chunk.cc.
int SimpleChunkTables::Add | ( | FileChunkReflist | chunks | ) |
Definition at line 167 of file file_chunk.cc.
Referenced by LibContext::Open().
SimpleChunkTables::OpenChunks SimpleChunkTables::Get | ( | int | fd | ) |
Definition at line 187 of file file_chunk.cc.
Referenced by LibContext::Close(), and LibContext::Pread().
|
inlineprivate |
void SimpleChunkTables::Release | ( | int | fd | ) |
Definition at line 201 of file file_chunk.cc.
Referenced by LibContext::Close().
|
inlineprivate |
|
private |
Definition at line 160 of file file_chunk.h.
|
private |
Definition at line 161 of file file_chunk.h.