#include <nfs_maps_leveldb.h>
Definition at line 30 of file nfs_maps_leveldb.h.
NfsMapsLeveldb::~NfsMapsLeveldb |
( |
| ) |
|
|
virtual |
NfsMapsLeveldb::NfsMapsLeveldb |
( |
| ) |
|
|
private |
NfsMapsLeveldb * NfsMapsLeveldb::Create |
( |
const std::string & |
leveldb_dir, |
|
|
const uint64_t |
root_inode, |
|
|
const bool |
rebuild, |
|
|
perf::Statistics * |
statistics |
|
) |
| |
|
static |
uint64_t NfsMapsLeveldb::FindInode |
( |
const shash::Md5 & |
path | ) |
|
|
private |
uint64_t NfsMapsLeveldb::GetInode |
( |
const PathString & |
path | ) |
|
|
virtual |
bool NfsMapsLeveldb::GetPath |
( |
const uint64_t |
inode, |
|
|
PathString * |
path |
|
) |
| |
|
virtual |
Finds the path that belongs to an inode. This must be successful. The inode input comes from the file system, i.e. it must have been issued before.
- Returns
- false if not found
Implements NfsMaps.
Definition at line 249 of file nfs_maps_leveldb.cc.
string NfsMapsLeveldb::GetStatistics |
( |
| ) |
|
|
virtual |
void NfsMapsLeveldb::PutInode2Path |
( |
const uint64_t |
inode, |
|
|
const PathString & |
path |
|
) |
| |
|
private |
void NfsMapsLeveldb::PutPath2Inode |
( |
const shash::Md5 & |
path, |
|
|
const uint64_t |
inode |
|
) |
| |
|
private |
void NfsMapsLeveldb::SetInodeResidue |
( |
unsigned |
residue_class, |
|
|
unsigned |
remainder |
|
) |
| |
|
virtual |
Ensures that NFS maps inodes have the form an+b so that we can have non-overlapping inodes for independent repositories.
Reimplemented from NfsMaps.
Definition at line 180 of file nfs_maps_leveldb.cc.
virtual void NfsMapsLeveldb::Spawn |
( |
| ) |
|
|
inlinevirtual |
leveldb::Cache* NfsMapsLeveldb::cache_inode2path_ |
|
private |
leveldb::Cache* NfsMapsLeveldb::cache_path2inode_ |
|
private |
leveldb::DB* NfsMapsLeveldb::db_inode2path_ |
|
private |
leveldb::DB* NfsMapsLeveldb::db_path2inode_ |
|
private |
const leveldb::FilterPolicy* NfsMapsLeveldb::filter_inode2path_ |
|
private |
const leveldb::FilterPolicy* NfsMapsLeveldb::filter_path2inode_ |
|
private |
unsigned NfsMapsLeveldb::inode_remainder_ |
|
private |
unsigned NfsMapsLeveldb::inode_residue_class_ |
|
private |
pthread_mutex_t* NfsMapsLeveldb::lock_ |
|
private |
uint64_t NfsMapsLeveldb::root_inode_ |
|
private |
uint64_t NfsMapsLeveldb::seq_ |
|
private |
bool NfsMapsLeveldb::spawned_ |
|
private |
The documentation for this class was generated from the following files:
- /home/sftnight/jenkins/workspace/CvmfsDoxygen/label/docker-x86_64/cvmfs/cvmfs/nfs_maps_leveldb.h
- /home/sftnight/jenkins/workspace/CvmfsDoxygen/label/docker-x86_64/cvmfs/cvmfs/nfs_maps_leveldb.cc