#include <nfs_maps_sqlite.h>
Definition at line 24 of file nfs_maps_sqlite.h.
NfsMapsSqlite::~NfsMapsSqlite |
( |
| ) |
|
|
virtual |
NfsMapsSqlite::NfsMapsSqlite |
( |
| ) |
|
|
private |
int NfsMapsSqlite::BusyHandler |
( |
void * |
data, |
|
|
int |
attempt |
|
) |
| |
|
staticprivate |
NfsMapsSqlite * NfsMapsSqlite::Create |
( |
const std::string & |
db_dir, |
|
|
const uint64_t |
root_inode, |
|
|
const bool |
rebuild, |
|
|
perf::Statistics * |
statistics_ |
|
) |
| |
|
static |
uint64_t NfsMapsSqlite::FindInode |
( |
const PathString & |
path | ) |
|
|
private |
uint64_t NfsMapsSqlite::GetInode |
( |
const PathString & |
path | ) |
|
|
virtual |
bool NfsMapsSqlite::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 271 of file nfs_maps_sqlite.cc.
uint64_t NfsMapsSqlite::IssueInode |
( |
const PathString & |
path | ) |
|
|
private |
Adds a new inode by path
- Returns
- New inode number, 0 on error
Definition at line 201 of file nfs_maps_sqlite.cc.
uint64_t NfsMapsSqlite::RetryGetInode |
( |
const PathString & |
path, |
|
|
int |
attempt |
|
) |
| |
|
private |
sqlite3* NfsMapsSqlite::db_ |
|
private |
const char * NfsMapsSqlite::kSqlAddInode |
|
staticprivate |
Initial value:=
"INSERT INTO inodes VALUES (?);"
Definition at line 39 of file nfs_maps_sqlite.h.
const char * NfsMapsSqlite::kSqlAddRoot |
|
staticprivate |
Initial value:=
"INSERT INTO inodes (oid, path) VALUES (?, ?);"
Definition at line 38 of file nfs_maps_sqlite.h.
const char * NfsMapsSqlite::kSqlCreateTable |
|
staticprivate |
Initial value:=
"CREATE TABLE IF NOT EXISTS inodes (path TEXT PRIMARY KEY);"
Definition at line 37 of file nfs_maps_sqlite.h.
const char * NfsMapsSqlite::kSqlGetInode |
|
staticprivate |
Initial value:=
"SELECT rowid FROM inodes where path = ?;"
Definition at line 40 of file nfs_maps_sqlite.h.
const char * NfsMapsSqlite::kSqlGetPath |
|
staticprivate |
Initial value:=
"SELECT path FROM inodes where rowid = ?;"
Definition at line 41 of file nfs_maps_sqlite.h.
pthread_mutex_t* NfsMapsSqlite::lock_ |
|
private |
sqlite3_stmt* NfsMapsSqlite::stmt_add_ |
|
private |
sqlite3_stmt* NfsMapsSqlite::stmt_get_inode_ |
|
private |
sqlite3_stmt* NfsMapsSqlite::stmt_get_path_ |
|
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_sqlite.h
- /home/sftnight/jenkins/workspace/CvmfsDoxygen/label/docker-x86_64/cvmfs/cvmfs/nfs_maps_sqlite.cc