Coda Distributed File System
Classes | Macros | Functions | Variables
venusrecov.h File Reference
#include <stdio.h>
#include <rpc2/rpc2.h>
#include <rvmlib.h>
#include "venus.private.h"
Include dependency graph for venusrecov.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  RecovVenusGlobals
 

Macros

#define DFLT_RVMT   UFS /* meta data store type */
 
#define VenusGenID   (rvg->recov_UUID.fields.time_low)
 
#define Recov_BeginTrans()   _Recov_BeginTrans(__FILE__, __LINE__)
 
#define VALID_REC_PTR(rec_ptr)
 

Functions

void _Recov_BeginTrans (const char file[], int line) BEGINS_TRANSACTION
 
void Recov_EndTrans (int) ENDS_TRANSACTION
 
void Recov_SetBound (int)
 
void RecovInit () EXCLUDES_TRANSACTION
 
void RecovFlush (int=0)
 
void RecovTruncate (int=0)
 
void RecovTerminate ()
 
void RecovPrint (int)
 
RPC2_String Copy_RPC2_String (RPC2_String &) REQUIRES_TRANSACTION
 
void Free_RPC2_String (RPC2_String &) REQUIRES_TRANSACTION
 
void RECOVD_Init (void)
 
void RecovDaemon (void) EXCLUDES_TRANSACTION
 
void Recov_GenerateStoreId (ViceStoreId *sid) REQUIRES_TRANSACTION
 

Variables

const int UNSET_IMD = 0
 
const unsigned long DFLT_VDDS = 0x400000
 
const unsigned long UNSET_VDDS = (unsigned long)-1
 
const unsigned long MIN_VDDS = 0x080000
 
const int DataToLogSizeRatio = 4
 
const unsigned long DFLT_VLDS
 
const unsigned long UNSET_VLDS = (unsigned long)-1
 
const unsigned long MIN_VLDS = MIN_VDDS / DataToLogSizeRatio
 
const int DFLT_RDSCS = 64
 
const int UNSET_RDSCS = -1
 
const int DFLT_RDSNL = 16
 
const int UNSET_RDSNL = -1
 
const int DFLT_CMFP = 600
 
const int UNSET_CMFP = -1
 
const int DFLT_DMFP = 30
 
const int UNSET_DMFP = -1
 
const int DFLT_MAXFP = 3600
 
const int UNSET_MAXFP = -1
 
const int DFLT_WITT = 60
 
const int UNSET_WITT = -1
 
const unsigned long DFLT_MAXFS = 64 * 1024
 
const unsigned long UNSET_MAXFS = (unsigned long)-1
 
const unsigned long DFLT_MAXTS = 256 * 1024
 
const unsigned long UNSET_MAXTS = (unsigned long)-1
 
const int RecovMagicNumber = 0x8675309
 
const int RecovVersionNumber = 41
 
int RecovInited
 
RecovVenusGlobalsrvg
 
int TransCount
 
float TransElapsed
 
int RecovTimeToFlush
 
int MapPrivate
 
int InitMetaData
 
int InitNewInstance
 
rvm_type_t RvmType
 
const char * VenusLogDevice
 
unsigned long VenusLogDeviceSize
 
const char * VenusDataDevice
 
unsigned long VenusDataDeviceSize
 
int RdsChunkSize
 
int RdsNlists
 
int CMFP
 
int DMFP
 
int WITT
 
int MAXFP
 
unsigned long MAXFS
 
unsigned long MAXTS
 

Macro Definition Documentation

◆ DFLT_RVMT

#define DFLT_RVMT   UFS /* meta data store type */

◆ Recov_BeginTrans

#define Recov_BeginTrans ( )    _Recov_BeginTrans(__FILE__, __LINE__)

◆ VALID_REC_PTR

#define VALID_REC_PTR (   rec_ptr)
Value:
((char *)(rec_ptr) >= rvg->recov_HeapAddr && \
(char *)(rec_ptr) < rvg->recov_HeapAddr + rvg->recov_HeapLength)
char * recov_HeapAddr
Definition: venusrecov.h:96
unsigned int recov_HeapLength
Definition: venusrecov.h:97
RecovVenusGlobals * rvg
Definition: venusrecov.cc:74

◆ VenusGenID

#define VenusGenID   (rvg->recov_UUID.fields.time_low)

Function Documentation

◆ _Recov_BeginTrans()

void _Recov_BeginTrans ( const char  file[],
int  line 
)

◆ Copy_RPC2_String()

RPC2_String Copy_RPC2_String ( RPC2_String src)

◆ Free_RPC2_String()

void Free_RPC2_String ( RPC2_String STR)

◆ Recov_EndTrans()

void Recov_EndTrans ( int  time)

◆ Recov_GenerateStoreId()

void Recov_GenerateStoreId ( ViceStoreId *  sid)

◆ Recov_SetBound()

void Recov_SetBound ( int  bound)

◆ RECOVD_Init()

void RECOVD_Init ( void  )

◆ RecovDaemon()

void RecovDaemon ( void  )

◆ RecovFlush()

void RecovFlush ( int  Force = 0)

◆ RecovInit()

void RecovInit ( )

◆ RecovPrint()

void RecovPrint ( int  fd)

◆ RecovTerminate()

void RecovTerminate ( )

◆ RecovTruncate()

void RecovTruncate ( int  Force = 0)

Variable Documentation

◆ CMFP

int CMFP
extern

◆ DataToLogSizeRatio

const int DataToLogSizeRatio = 4

◆ DFLT_CMFP

const int DFLT_CMFP = 600

◆ DFLT_DMFP

const int DFLT_DMFP = 30

◆ DFLT_MAXFP

const int DFLT_MAXFP = 3600

◆ DFLT_MAXFS

const unsigned long DFLT_MAXFS = 64 * 1024

◆ DFLT_MAXTS

const unsigned long DFLT_MAXTS = 256 * 1024

◆ DFLT_RDSCS

const int DFLT_RDSCS = 64

◆ DFLT_RDSNL

const int DFLT_RDSNL = 16

◆ DFLT_VDDS

const unsigned long DFLT_VDDS = 0x400000

◆ DFLT_VLDS

const unsigned long DFLT_VLDS
Initial value:
=
const unsigned long DFLT_VDDS
Definition: venusrecov.h:54
const int DataToLogSizeRatio
Definition: venusrecov.h:57

◆ DFLT_WITT

const int DFLT_WITT = 60

◆ DMFP

int DMFP
extern

◆ InitMetaData

int InitMetaData
extern

◆ InitNewInstance

int InitNewInstance

◆ MapPrivate

int MapPrivate
extern

◆ MAXFP

int MAXFP
extern

◆ MAXFS

unsigned long MAXFS
extern

◆ MAXTS

unsigned long MAXTS
extern

◆ MIN_VDDS

const unsigned long MIN_VDDS = 0x080000

◆ MIN_VLDS

const unsigned long MIN_VLDS = MIN_VDDS / DataToLogSizeRatio

◆ RdsChunkSize

int RdsChunkSize
extern

◆ RdsNlists

int RdsNlists
extern

◆ RecovInited

int RecovInited
extern

◆ RecovMagicNumber

const int RecovMagicNumber = 0x8675309

◆ RecovTimeToFlush

int RecovTimeToFlush
extern

◆ RecovVersionNumber

const int RecovVersionNumber = 41

◆ rvg

RecovVenusGlobals* rvg
extern

◆ RvmType

rvm_type_t RvmType
extern

◆ TransCount

int TransCount
extern

◆ TransElapsed

float TransElapsed
extern

◆ UNSET_CMFP

const int UNSET_CMFP = -1

◆ UNSET_DMFP

const int UNSET_DMFP = -1

◆ UNSET_IMD

const int UNSET_IMD = 0

◆ UNSET_MAXFP

const int UNSET_MAXFP = -1

◆ UNSET_MAXFS

const unsigned long UNSET_MAXFS = (unsigned long)-1

◆ UNSET_MAXTS

const unsigned long UNSET_MAXTS = (unsigned long)-1

◆ UNSET_RDSCS

const int UNSET_RDSCS = -1

◆ UNSET_RDSNL

const int UNSET_RDSNL = -1

◆ UNSET_VDDS

const unsigned long UNSET_VDDS = (unsigned long)-1

◆ UNSET_VLDS

const unsigned long UNSET_VLDS = (unsigned long)-1

◆ UNSET_WITT

const int UNSET_WITT = -1

◆ VenusDataDevice

const char* VenusDataDevice
extern

◆ VenusDataDeviceSize

unsigned long VenusDataDeviceSize
extern

◆ VenusLogDevice

const char* VenusLogDevice
extern

◆ VenusLogDeviceSize

unsigned long VenusLogDeviceSize
extern

◆ WITT

int WITT
extern