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

#include <file_chunk.h>

Collaboration diagram for 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,
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
 

Detailed Description

All chunk related data structures in the Fuse module.

Definition at line 90 of file file_chunk.h.

Constructor & Destructor Documentation

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().

Here is the caller graph for this function:

ChunkTables::ChunkTables ( const ChunkTables other)

Definition at line 110 of file file_chunk.cc.

Member Function Documentation

void ChunkTables::CopyFrom ( const ChunkTables other)

Definition at line 131 of file file_chunk.cc.

Here is the call graph for this function:

pthread_mutex_t * ChunkTables::Handle2Lock ( const uint64_t  handle) const

Definition at line 141 of file file_chunk.cc.

Referenced by cvmfs::cvmfs_read().

Here is the call graph for this function:

Here is the caller graph for this function:

void ChunkTables::InitHashmaps ( )

Definition at line 84 of file file_chunk.cc.

Here is the call graph for this function:

void ChunkTables::InitLocks ( )

Definition at line 68 of file file_chunk.cc.

Here is the call graph for this function:

void ChunkTables::Lock ( )
inline

Definition at line 101 of file file_chunk.h.

Referenced by cvmfs::cvmfs_open(), cvmfs::cvmfs_read(), and cvmfs::cvmfs_release().

Here is the call graph for this function:

Here is the caller graph for this function:

ChunkTables & ChunkTables::operator= ( const ChunkTables other)

Definition at line 118 of file file_chunk.cc.

void ChunkTables::Unlock ( )
inline

Definition at line 106 of file file_chunk.h.

Referenced by cvmfs::cvmfs_open(), cvmfs::cvmfs_read(), and cvmfs::cvmfs_release().

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

SmallHashDynamic<uint64_t, ChunkFd> ChunkTables::handle2fd
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().

const unsigned ChunkTables::kNumHandleLocks = 128
static

Definition at line 115 of file file_chunk.h.

const unsigned ChunkTables::kVersion = 4
static

Definition at line 112 of file file_chunk.h.

pthread_mutex_t* ChunkTables::lock

Definition at line 127 of file file_chunk.h.

Referenced by Lock(), and Unlock().

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().


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