CernVM-FS  2.12.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
NClgMagicXattr Class Reference

#include <magic_xattr.h>

Inheritance diagram for NClgMagicXattr:
Collaboration diagram for NClgMagicXattr:

Private Member Functions

virtual bool PrepareValueFenced ()
 
virtual std::string GetValue ()
 

Private Attributes

int n_catalogs_
 

Additional Inherited Members

- Public Member Functions inherited from BaseMagicXattr
 BaseMagicXattr ()
 
void MarkProtected ()
 
bool PrepareValueFencedProtected (gid_t gid)
 
virtual MagicXattrFlavor GetXattrFlavor ()
 
void Lock (PathString path, catalog::DirectoryEntry *dirent)
 
void Release ()
 
virtual ~BaseMagicXattr ()
 
- Protected Attributes inherited from BaseMagicXattr
MagicXattrManagerxattr_mgr_
 
PathString path_
 
catalog::DirectoryEntrydirent_
 
pthread_mutex_t access_mutex_
 
bool is_protected_
 

Detailed Description

Definition at line 312 of file magic_xattr.h.

Member Function Documentation

std::string NClgMagicXattr::GetValue ( )
privatevirtual

This function needs to be called after PrepareValueFenced(), which prepares the necessary data. It does the computationaly intensive part, which should not be done inside the FuseRemounter::fence(), and returns the value.

Implements BaseMagicXattr.

Definition at line 437 of file magic_xattr.cc.

Here is the call graph for this function:

bool NClgMagicXattr::PrepareValueFenced ( )
privatevirtual

This function is used to obtain the necessary information while inside FuseRemounter::fence(), which should prevent data races.

Reimplemented from BaseMagicXattr.

Definition at line 432 of file magic_xattr.cc.

Here is the call graph for this function:

Member Data Documentation

int NClgMagicXattr::n_catalogs_
private

Definition at line 313 of file magic_xattr.h.

Referenced by GetValue(), and PrepareValueFenced().


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