CernVM-FS  2.9.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
compat::inode_tracker::InodeTracker Class Reference

#include <compat.h>

Collaboration diagram for compat::inode_tracker::InodeTracker:

Classes

struct  Statistics
 

Public Member Functions

Statistics GetStatistics ()
 
 InodeTracker ()
 
 InodeTracker (const InodeTracker &other)
 
InodeTrackeroperator= (const InodeTracker &other)
 
 ~InodeTracker ()
 
bool VfsGet (const uint64_t inode, const uint64_t parent_inode, const NameString &name)
 
bool VfsAdd (const uint64_t inode, const uint64_t parent_inode, const NameString &name)
 
void VfsPut (const uint64_t inode, const uint32_t by)
 
bool Find (const uint64_t inode, PathString *path)
 
void InitLock ()
 
void CopyFrom (const InodeTracker &other)
 
void Lock () const
 
void Unlock () const
 

Public Attributes

unsigned version_
 
pthread_mutex_t * lock_
 
InodeContainer inode2path_
 
Statistics statistics_
 

Static Public Attributes

static const unsigned kVersion = 1
 

Detailed Description

Tracks inode reference counters as given by Fuse.

Definition at line 261 of file compat.h.

Constructor & Destructor Documentation

compat::inode_tracker::InodeTracker::InodeTracker ( )
inline

Definition at line 278 of file compat.h.

Here is the call graph for this function:

compat::inode_tracker::InodeTracker::InodeTracker ( const InodeTracker other)
inlineexplicit

Definition at line 279 of file compat.h.

Here is the call graph for this function:

compat::inode_tracker::InodeTracker::~InodeTracker ( )

Definition at line 78 of file compat.cc.

Member Function Documentation

void compat::inode_tracker::InodeTracker::CopyFrom ( const InodeTracker other)
inline

Definition at line 300 of file compat.h.

Here is the call graph for this function:

bool compat::inode_tracker::InodeTracker::Find ( const uint64_t  inode,
PathString path 
)
inline

Definition at line 294 of file compat.h.

Here is the call graph for this function:

Statistics compat::inode_tracker::InodeTracker::GetStatistics ( )
inline

Definition at line 276 of file compat.h.

void compat::inode_tracker::InodeTracker::InitLock ( )
inline

Definition at line 299 of file compat.h.

Here is the call graph for this function:

void compat::inode_tracker::InodeTracker::Lock ( ) const
inline

Definition at line 301 of file compat.h.

InodeTracker& compat::inode_tracker::InodeTracker::operator= ( const InodeTracker other)
inline

Definition at line 280 of file compat.h.

Here is the call graph for this function:

void compat::inode_tracker::InodeTracker::Unlock ( ) const
inline

Definition at line 304 of file compat.h.

bool compat::inode_tracker::InodeTracker::VfsAdd ( const uint64_t  inode,
const uint64_t  parent_inode,
const NameString name 
)
inline

Definition at line 288 of file compat.h.

Here is the call graph for this function:

bool compat::inode_tracker::InodeTracker::VfsGet ( const uint64_t  inode,
const uint64_t  parent_inode,
const NameString name 
)
inline

Definition at line 283 of file compat.h.

Here is the call graph for this function:

void compat::inode_tracker::InodeTracker::VfsPut ( const uint64_t  inode,
const uint32_t  by 
)
inline

Definition at line 293 of file compat.h.

Here is the call graph for this function:

Member Data Documentation

InodeContainer compat::inode_tracker::InodeTracker::inode2path_

Definition at line 310 of file compat.h.

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

const unsigned compat::inode_tracker::InodeTracker::kVersion = 1
static

Definition at line 297 of file compat.h.

pthread_mutex_t* compat::inode_tracker::InodeTracker::lock_

Definition at line 309 of file compat.h.

Statistics compat::inode_tracker::InodeTracker::statistics_

Definition at line 311 of file compat.h.

Referenced by GetStatistics().

unsigned compat::inode_tracker::InodeTracker::version_

Definition at line 308 of file compat.h.


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