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

#include <magic_xattr.h>

Inheritance diagram for RepoMetainfoMagicXattr:
Collaboration diagram for RepoMetainfoMagicXattr:

Private Member Functions

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

Private Attributes

shash::Any metainfo_hash_
 
std::string error_reason_
 

Static Private Attributes

static uint64_t kMaxMetainfoLength = 65536
 

Additional Inherited Members

- Public Member Functions inherited from BaseMagicXattr
 BaseMagicXattr ()
 
virtual MagicXattrFlavor GetXattrFlavor ()
 
void Lock (PathString path, catalog::DirectoryEntry *dirent)
 
void Release ()
 
virtual ~BaseMagicXattr ()
 
- Protected Attributes inherited from BaseMagicXattr
MountPointmount_point_
 
PathString path_
 
catalog::DirectoryEntrydirent_
 
pthread_mutex_t access_mutex_
 

Detailed Description

Definition at line 286 of file magic_xattr.h.

Member Function Documentation

std::string RepoMetainfoMagicXattr::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 431 of file magic_xattr.cc.

Here is the call graph for this function:

bool RepoMetainfoMagicXattr::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 417 of file magic_xattr.cc.

Here is the call graph for this function:

Member Data Documentation

std::string RepoMetainfoMagicXattr::error_reason_
private

Definition at line 290 of file magic_xattr.h.

Referenced by GetValue(), and PrepareValueFenced().

uint64_t RepoMetainfoMagicXattr::kMaxMetainfoLength = 65536
staticprivate

Definition at line 287 of file magic_xattr.h.

Referenced by GetValue().

shash::Any RepoMetainfoMagicXattr::metainfo_hash_
private

Definition at line 289 of file magic_xattr.h.

Referenced by GetValue(), and PrepareValueFenced().


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