#include "VestaLog.H"
#include "VRConcurrency.H"
#include "FP.H"
#include "VMemPool.H"
#include "VDirChangeable.H"
#include "FPShortId.H"
#include "Basics.H"
#include "math.h"
#include <VestaConfig.H>
#include <Thread.H>
Go to the source code of this file.
Defines | |
#define | START_FPTBL_SIZE 5000 |
#define | MAX_FPTBL_SIZE 50000000 |
#define | RESIZE_TRIGGER 0.7 |
#define | RESIZE_FACTOR 2.0 |
Functions | |
FP::Tag | DirFP (Bit8 *rep) |
ShortId | DirId (Bit8 *rep) |
void | InitFPShortId () |
void | SetFPFileShortId (Bit8 *entry) |
void | SetFPDirShortId (Bit8 *rep) |
ShortId | GetFPShortId (const FP::Tag &fptag) |
void | DeleteAllFPShortId () |
|
Definition at line 44 of file FPShortId.C. |
|
Definition at line 46 of file FPShortId.C. Referenced by InitFPShortId(). |
|
Definition at line 45 of file FPShortId.C. Referenced by InitFPShortId(). |
|
Definition at line 43 of file FPShortId.C. Referenced by InitFPShortId(). |
|
Definition at line 116 of file FPShortId.C. References FPShortIdTable::Clear(), Basics::mutex::lock(), and Basics::mutex::unlock(). Referenced by VMemPool::rebuildDirShortIdTable(). |
|
Definition at line 59 of file FPShortId.C. References VDirChangeable::fptag(), and VestaSource::immutableDirectory. Referenced by InitFPShortId(). |
|
Definition at line 66 of file FPShortId.C. References VDirChangeable::getID(), and VestaSource::immutableDirectory. Referenced by InitFPShortId(). |
|
Definition at line 102 of file FPShortId.C. References FPShortIdTable::Get(), Basics::mutex::lock(), NullShortId, and Basics::mutex::unlock(). Referenced by VDirChangeable::copyMutableToImmutable(). |
|
Definition at line 72 of file FPShortId.C. References DirFP(), DirId(), VDirChangeable::efptag(), NEW_CONSTR, RESIZE_FACTOR, RESIZE_TRIGGER, START_FPTBL_SIZE, and VDirChangeable::value(). Referenced by main(). |
|
Definition at line 94 of file FPShortId.C. References Basics::mutex::lock(), FPShortIdTable::Set(), and Basics::mutex::unlock(). Referenced by VDirChangeable::collapse(), VDirChangeable::copyMutableToImmutable(), VDirChangeable::insertImmutableDirectory(), and VDirChangeable::rebuildCallback(). |
|
Definition at line 86 of file FPShortId.C. References Basics::mutex::lock(), FPShortIdTable::Set(), and Basics::mutex::unlock(). Referenced by VDirChangeable::copyMutableToImmutable(), VDirChangeable::insertFile(), VDirChangeable::rebuildCallback(), and VDirChangeable::renameTo(). |