CernVM-FS
2.12.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 () |
Private Member Functions inherited from SingleCopy | |
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 137 of file file_chunk.h.
SimpleChunkTables::SimpleChunkTables | ( | ) |
SimpleChunkTables::~SimpleChunkTables | ( | ) |
Definition at line 161 of file file_chunk.cc.
int SimpleChunkTables::Add | ( | FileChunkReflist | chunks | ) |
Definition at line 170 of file file_chunk.cc.
Referenced by LibContext::Open().
SimpleChunkTables::OpenChunks SimpleChunkTables::Get | ( | int | fd | ) |
Definition at line 190 of file file_chunk.cc.
Referenced by LibContext::Close(), and LibContext::Pread().
|
inlineprivate |
void SimpleChunkTables::Release | ( | int | fd | ) |
Definition at line 204 of file file_chunk.cc.
Referenced by LibContext::Close().
|
inlineprivate |
|
private |
Definition at line 166 of file file_chunk.h.
|
private |
Definition at line 167 of file file_chunk.h.