CernVM-FS  2.9.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
compat::chunk_tables::ChunkTables Struct Reference

#include <compat.h>

Collaboration diagram for compat::chunk_tables::ChunkTables:

Public Member Functions

 ChunkTables ()
 
 ~ChunkTables ()
 
 ChunkTables (const ChunkTables &other)
 
ChunkTablesoperator= (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,::ChunkFdhandle2fd
 
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 kNumHandleLocks = 128
 

Detailed Description

Definition at line 865 of file compat.h.

Constructor & Destructor Documentation

compat::chunk_tables::ChunkTables::ChunkTables ( )
inline

Definition at line 866 of file compat.h.

Here is the call graph for this function:

ChunkTables::~ChunkTables ( )

Definition at line 173 of file compat.cc.

compat::chunk_tables::ChunkTables::ChunkTables ( const ChunkTables other)
inline

Definition at line 868 of file compat.h.

Here is the call graph for this function:

Member Function Documentation

void compat::chunk_tables::ChunkTables::CopyFrom ( const ChunkTables other)
inline

Definition at line 870 of file compat.h.

Here is the call graph for this function:

pthread_mutex_t* compat::chunk_tables::ChunkTables::Handle2Lock ( const uint64_t  handle) const
inline

Definition at line 873 of file compat.h.

Here is the call graph for this function:

void compat::chunk_tables::ChunkTables::InitHashmaps ( )
inline

Definition at line 872 of file compat.h.

Here is the call graph for this function:

void compat::chunk_tables::ChunkTables::InitLocks ( )
inline

Definition at line 871 of file compat.h.

Here is the call graph for this function:

void compat::chunk_tables::ChunkTables::Lock ( )
inline

Definition at line 874 of file compat.h.

Here is the call graph for this function:

ChunkTables& compat::chunk_tables::ChunkTables::operator= ( const ChunkTables other)
inline

Definition at line 869 of file compat.h.

Here is the call graph for this function:

void compat::chunk_tables::ChunkTables::Unlock ( )
inline

Definition at line 875 of file compat.h.

Here is the call graph for this function:

Member Data Documentation

SmallHashDynamic<uint64_t, ::ChunkFd> compat::chunk_tables::ChunkTables::handle2fd

Definition at line 879 of file compat.h.

Referenced by compat::chunk_tables::Migrate().

BigVector<pthread_mutex_t *> compat::chunk_tables::ChunkTables::handle_locks

Definition at line 882 of file compat.h.

SmallHashDynamic<uint64_t, FileChunkReflist> compat::chunk_tables::ChunkTables::inode2chunks

Definition at line 883 of file compat.h.

Referenced by compat::chunk_tables::Migrate().

SmallHashDynamic<uint64_t, uint32_t> compat::chunk_tables::ChunkTables::inode2references

Definition at line 884 of file compat.h.

Referenced by compat::chunk_tables::Migrate().

const unsigned compat::chunk_tables::ChunkTables::kNumHandleLocks = 128
static

Definition at line 878 of file compat.h.

pthread_mutex_t* compat::chunk_tables::ChunkTables::lock

Definition at line 886 of file compat.h.

uint64_t compat::chunk_tables::ChunkTables::next_handle

Definition at line 885 of file compat.h.

Referenced by compat::chunk_tables::Migrate().

int compat::chunk_tables::ChunkTables::version

Definition at line 877 of file compat.h.


The documentation for this struct was generated from the following files: