CernVM-FS
2.12.0
|
#include <file_chunk.h>
Public Member Functions | |
ChunkTables () | |
~ChunkTables () | |
ChunkTables (const ChunkTables &other) | |
ChunkTables & | operator= (const ChunkTables &other) |
void | CopyFrom (const ChunkTables &other) |
void | InitLocks () |
void | InitHashmaps () |
pthread_mutex_t * | Handle2Lock (const uint64_t handle) const |
void | Lock () |
void | Unlock () |
Public Attributes | |
int | version |
SmallHashDynamic< uint64_t, uint64_t > | handle2uniqino |
SmallHashDynamic< uint64_t, ChunkFd > | handle2fd |
BigVector< pthread_mutex_t * > | handle_locks |
SmallHashDynamic< uint64_t, FileChunkReflist > | inode2chunks |
SmallHashDynamic< uint64_t, uint32_t > | inode2references |
uint64_t | next_handle |
pthread_mutex_t * | lock |
Static Public Attributes | |
static const unsigned | kVersion = 4 |
static const unsigned | kNumHandleLocks = 128 |
All chunk related data structures in the Fuse module.
Definition at line 90 of file file_chunk.h.
ChunkTables::ChunkTables | ( | ) |
Definition at line 92 of file file_chunk.cc.
ChunkTables::~ChunkTables | ( | ) |
Definition at line 100 of file file_chunk.cc.
Referenced by RestoreState().
ChunkTables::ChunkTables | ( | const ChunkTables & | other | ) |
Definition at line 110 of file file_chunk.cc.
void ChunkTables::CopyFrom | ( | const ChunkTables & | other | ) |
pthread_mutex_t * ChunkTables::Handle2Lock | ( | const uint64_t | handle | ) | const |
Definition at line 141 of file file_chunk.cc.
Referenced by cvmfs::cvmfs_read().
void ChunkTables::InitHashmaps | ( | ) |
void ChunkTables::InitLocks | ( | ) |
|
inline |
Definition at line 101 of file file_chunk.h.
Referenced by cvmfs::cvmfs_open(), cvmfs::cvmfs_read(), and cvmfs::cvmfs_release().
ChunkTables & ChunkTables::operator= | ( | const ChunkTables & | other | ) |
Definition at line 118 of file file_chunk.cc.
|
inline |
Definition at line 106 of file file_chunk.h.
Referenced by cvmfs::cvmfs_open(), cvmfs::cvmfs_read(), and cvmfs::cvmfs_release().
SmallHashDynamic<uint64_t, ChunkFd> ChunkTables::handle2fd |
Definition at line 120 of file file_chunk.h.
Referenced by CopyFrom(), cvmfs::cvmfs_open(), cvmfs::cvmfs_read(), cvmfs::cvmfs_release(), and RestoreState().
SmallHashDynamic<uint64_t, uint64_t> ChunkTables::handle2uniqino |
Definition at line 119 of file file_chunk.h.
Referenced by CopyFrom(), cvmfs::cvmfs_open(), cvmfs::cvmfs_read(), and cvmfs::cvmfs_release().
BigVector<pthread_mutex_t *> ChunkTables::handle_locks |
Definition at line 123 of file file_chunk.h.
SmallHashDynamic<uint64_t, FileChunkReflist> ChunkTables::inode2chunks |
Definition at line 124 of file file_chunk.h.
Referenced by CopyFrom(), cvmfs::cvmfs_open(), cvmfs::cvmfs_read(), and cvmfs::cvmfs_release().
SmallHashDynamic<uint64_t, uint32_t> ChunkTables::inode2references |
Definition at line 125 of file file_chunk.h.
Referenced by CopyFrom(), cvmfs::cvmfs_open(), and cvmfs::cvmfs_release().
|
static |
Definition at line 115 of file file_chunk.h.
|
static |
Definition at line 112 of file file_chunk.h.
pthread_mutex_t* ChunkTables::lock |
Definition at line 127 of file file_chunk.h.
uint64_t ChunkTables::next_handle |
Definition at line 126 of file file_chunk.h.
Referenced by CopyFrom(), and cvmfs::cvmfs_open().
int ChunkTables::version |
Definition at line 114 of file file_chunk.h.
Referenced by CopyFrom().