Coda Distributed File System
Macros | Enumerations | Functions | Variables
inconsist.h File Reference
#include <stdio.h>
#include <vice.h>
#include <vcrcommon.h>
Include dependency graph for inconsist.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define VV_INCON   0x01 /* mask for inconsistency flag */
 
#define VV_LOCAL   0x02 /* mask for local flag */
 
#define VV_BARREN    0x04 /* mask for barren flag - small vnode without a valid inode */
 
#define VV_COP2PENDING   0x08 /* mask for cop2 pending flag */
 
#define IsIncon(vv)   ((vv).Flags & VV_INCON)
 
#define SetIncon(vv)   ((vv).Flags |= VV_INCON)
 
#define ClearIncon(vv)   ((vv).Flags &= ~VV_INCON)
 
#define IsLocal(vv)   ((vv).Flags & VV_LOCAL)
 
#define SetLocal(vv)   ((vv).Flags |= VV_LOCAL)
 
#define ClearLocal(vv)   ((vv).Flags &= ~VV_LOCAL)
 
#define IsBarren(vv)   ((vv).Flags & VV_BARREN)
 
#define SetBarren(vv)   ((vv).Flags |= VV_BARREN)
 
#define ClearBarren(vv)   ((vv).Flags &= ~VV_BARREN)
 
#define COP2Pending(vv)   ((vv).Flags & VV_COP2PENDING)
 
#define SetCOP2Pending(vv)   ((vv).Flags |= VV_COP2PENDING)
 
#define ClearCOP2Pending(vv)   ((vv).Flags &= ~VV_COP2PENDING)
 
#define SID_EQ(a, b)    ((a).HostId == (b).HostId && (a).Uniquifier == (b).Uniquifier)
 

Enumerations

enum  VV_Cmp_Result { VV_EQ = 0 , VV_DOM = 1 , VV_SUB = 2 , VV_INC = 3 }
 

Functions

VV_Cmp_Result VV_Cmp (const ViceVersionVector *, const ViceVersionVector *)
 
VV_Cmp_Result VV_Cmp_IgnoreInc (const ViceVersionVector *, const ViceVersionVector *)
 
int VV_Check (int *, ViceVersionVector **, int)
 
int VV_Check_IgnoreInc (int *, ViceVersionVector **, int)
 
int IsRunt (ViceVersionVector *)
 
void AddVVs (ViceVersionVector *, ViceVersionVector *)
 
void SubVVs (ViceVersionVector *, ViceVersionVector *)
 
void InitVV (ViceVersionVector *)
 
void InvalidateVV (ViceVersionVector *)
 
void GetMaxVV (ViceVersionVector *, ViceVersionVector **, int)
 
void SPrintVV (char *buf, size_t len, ViceVersionVector *)
 
void FPrintVV (FILE *, ViceVersionVector *)
 

Variables

const ViceStoreId NullSid
 

Macro Definition Documentation

◆ ClearBarren

#define ClearBarren (   vv)    ((vv).Flags &= ~VV_BARREN)

◆ ClearCOP2Pending

#define ClearCOP2Pending (   vv)    ((vv).Flags &= ~VV_COP2PENDING)

◆ ClearIncon

#define ClearIncon (   vv)    ((vv).Flags &= ~VV_INCON)

◆ ClearLocal

#define ClearLocal (   vv)    ((vv).Flags &= ~VV_LOCAL)

◆ COP2Pending

#define COP2Pending (   vv)    ((vv).Flags & VV_COP2PENDING)

◆ IsBarren

#define IsBarren (   vv)    ((vv).Flags & VV_BARREN)

◆ IsIncon

#define IsIncon (   vv)    ((vv).Flags & VV_INCON)

◆ IsLocal

#define IsLocal (   vv)    ((vv).Flags & VV_LOCAL)

◆ SetBarren

#define SetBarren (   vv)    ((vv).Flags |= VV_BARREN)

◆ SetCOP2Pending

#define SetCOP2Pending (   vv)    ((vv).Flags |= VV_COP2PENDING)

◆ SetIncon

#define SetIncon (   vv)    ((vv).Flags |= VV_INCON)

◆ SetLocal

#define SetLocal (   vv)    ((vv).Flags |= VV_LOCAL)

◆ SID_EQ

#define SID_EQ (   a,
 
)     ((a).HostId == (b).HostId && (a).Uniquifier == (b).Uniquifier)

◆ VV_BARREN

#define VV_BARREN    0x04 /* mask for barren flag - small vnode without a valid inode */

◆ VV_COP2PENDING

#define VV_COP2PENDING   0x08 /* mask for cop2 pending flag */

◆ VV_INCON

#define VV_INCON   0x01 /* mask for inconsistency flag */

◆ VV_LOCAL

#define VV_LOCAL   0x02 /* mask for local flag */

Enumeration Type Documentation

◆ VV_Cmp_Result

Enumerator
VV_EQ 
VV_DOM 
VV_SUB 
VV_INC 

Function Documentation

◆ AddVVs()

void AddVVs ( ViceVersionVector *  v1,
ViceVersionVector *  v2 
)

◆ FPrintVV()

void FPrintVV ( FILE *  fp,
ViceVersionVector *  v 
)

◆ GetMaxVV()

void GetMaxVV ( ViceVersionVector *  newvv,
ViceVersionVector **  vvgroup,
int  domindex 
)

◆ InitVV()

void InitVV ( ViceVersionVector *  v)

◆ InvalidateVV()

void InvalidateVV ( ViceVersionVector *  v)

◆ IsRunt()

int IsRunt ( ViceVersionVector *  v)

◆ SPrintVV()

void SPrintVV ( char *  buf,
size_t  len,
ViceVersionVector *  v 
)

◆ SubVVs()

void SubVVs ( ViceVersionVector *  v1,
ViceVersionVector *  v2 
)

◆ VV_Check()

int VV_Check ( int *  HowMany,
ViceVersionVector **  vvp,
int  EqReq 
)

◆ VV_Check_IgnoreInc()

int VV_Check_IgnoreInc ( int *  HowMany,
ViceVersionVector **  vvp,
int  EqReq 
)

◆ VV_Cmp()

VV_Cmp_Result VV_Cmp ( const ViceVersionVector *  a,
const ViceVersionVector *  b 
)

◆ VV_Cmp_IgnoreInc()

VV_Cmp_Result VV_Cmp_IgnoreInc ( const ViceVersionVector *  a,
const ViceVersionVector *  b 
)

Variable Documentation

◆ NullSid

const ViceStoreId NullSid
extern