Coda Distributed File System
Classes | Macros | Functions
dump.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  DumpHeader
 
struct  DumpBuffer_t
 

Macros

#define DUMPVERSION   2
 
#define DUMPENDMAGIC   0x3A214B6E
 
#define DUMPBEGINMAGIC   0xB3A11322
 
#define D_DUMPHEADER   1
 
#define D_VOLUMEHEADER   2
 
#define D_SMALLINDEX   3
 
#define D_LARGEINDEX   4
 
#define D_VNODE   5
 
#define D_VV   6
 
#define D_ENDVV   7
 
#define D_DUMPEND   8
 
#define D_VOLUMEDISKDATA   9
 
#define D_NULLVNODE   10
 
#define D_DIRPAGES   11
 
#define D_FILEDATA   12
 
#define D_RMVNODE   13
 
#define D_BADINODE   14
 
#define D_MAX   20
 
#define MAXDUMPTIMES   50
 
#define VOLID   DumpFd /* Overload this field if using newstyle dump */
 

Functions

DumpBuffer_tInitDumpBuf (char *buf, long size, VolumeId volid, RPC2_Handle rpcid)
 
DumpBuffer_tInitDumpBuf (char *buf, long size, int fd)
 
int DumpDouble (DumpBuffer_t *, char, unsigned int, unsigned int)
 
int DumpInt32 (DumpBuffer_t *, char tag, unsigned int value)
 
int DumpByte (DumpBuffer_t *, char tag, char value)
 
int DumpBool (DumpBuffer_t *, char tag, unsigned int value)
 
int DumpArrayInt32 (DumpBuffer_t *, char, unsigned int *, int nelem)
 
int DumpShort (DumpBuffer_t *, char tag, unsigned int value)
 
int DumpString (DumpBuffer_t *, char tag, char *s)
 
int DumpByteString (DumpBuffer_t *, char tag, char *bs, int nbytes)
 
int DumpVV (DumpBuffer_t *, char tag, struct ViceVersionVector *vv)
 
int DumpFile (DumpBuffer_t *, char tag, int fd, int vnode)
 
int DumpTag (DumpBuffer_t *, char tag)
 
int DumpEnd (DumpBuffer_t *)
 
signed char ReadTag (DumpBuffer_t *)
 
int PutTag (char, DumpBuffer_t *)
 
int ReadShort (DumpBuffer_t *, unsigned short *sp)
 
int ReadInt32 (DumpBuffer_t *, unsigned int *lp)
 
int ReadString (DumpBuffer_t *, char *to, int max)
 
int ReadByteString (DumpBuffer_t *, char *to, int size)
 
int ReadDumpHeader (DumpBuffer_t *, struct DumpHeader *hp)
 
int ReadVolumeDiskData (DumpBuffer_t *, VolumeDiskData *vol)
 
int ReadVV (DumpBuffer_t *, ViceVersionVector *vv)
 
int ReadFile (DumpBuffer_t *, FILE *)
 
int EndOfDump (DumpBuffer_t *)
 
char * yaml_encode_double_quoted_string (char *string)
 

Macro Definition Documentation

◆ D_BADINODE

#define D_BADINODE   14

◆ D_DIRPAGES

#define D_DIRPAGES   11

◆ D_DUMPEND

#define D_DUMPEND   8

◆ D_DUMPHEADER

#define D_DUMPHEADER   1

◆ D_ENDVV

#define D_ENDVV   7

◆ D_FILEDATA

#define D_FILEDATA   12

◆ D_LARGEINDEX

#define D_LARGEINDEX   4

◆ D_MAX

#define D_MAX   20

◆ D_NULLVNODE

#define D_NULLVNODE   10

◆ D_RMVNODE

#define D_RMVNODE   13

◆ D_SMALLINDEX

#define D_SMALLINDEX   3

◆ D_VNODE

#define D_VNODE   5

◆ D_VOLUMEDISKDATA

#define D_VOLUMEDISKDATA   9

◆ D_VOLUMEHEADER

#define D_VOLUMEHEADER   2

◆ D_VV

#define D_VV   6

◆ DUMPBEGINMAGIC

#define DUMPBEGINMAGIC   0xB3A11322

◆ DUMPENDMAGIC

#define DUMPENDMAGIC   0x3A214B6E

◆ DUMPVERSION

#define DUMPVERSION   2

◆ MAXDUMPTIMES

#define MAXDUMPTIMES   50

◆ VOLID

#define VOLID   DumpFd /* Overload this field if using newstyle dump */

Function Documentation

◆ DumpArrayInt32()

int DumpArrayInt32 ( DumpBuffer_t buf,
char  tag,
unsigned int *  array,
int  nelem 
)

◆ DumpBool()

int DumpBool ( DumpBuffer_t buf,
char  tag,
unsigned int  value 
)

◆ DumpByte()

int DumpByte ( DumpBuffer_t buf,
char  tag,
char  value 
)

◆ DumpByteString()

int DumpByteString ( DumpBuffer_t buf,
char  tag,
char *  bs,
int  nbytes 
)

◆ DumpDouble()

int DumpDouble ( DumpBuffer_t buf,
char  tag,
unsigned int  value1,
unsigned int  value2 
)

◆ DumpEnd()

int DumpEnd ( DumpBuffer_t buf)

◆ DumpFile()

int DumpFile ( DumpBuffer_t buf,
char  tag,
int  fd,
int  vnode 
)

◆ DumpInt32()

int DumpInt32 ( DumpBuffer_t buf,
char  tag,
unsigned int  value 
)

◆ DumpShort()

int DumpShort ( DumpBuffer_t buf,
char  tag,
unsigned int  value 
)

◆ DumpString()

int DumpString ( DumpBuffer_t buf,
char  tag,
char *  s 
)

◆ DumpTag()

int DumpTag ( DumpBuffer_t buf,
char  tag 
)

◆ DumpVV()

int DumpVV ( DumpBuffer_t buf,
char  tag,
struct ViceVersionVector *  vv 
)

◆ EndOfDump()

int EndOfDump ( DumpBuffer_t buf)

◆ InitDumpBuf() [1/2]

DumpBuffer_t * InitDumpBuf ( char *  buf,
long  size,
int  fd 
)

◆ InitDumpBuf() [2/2]

DumpBuffer_t * InitDumpBuf ( char *  buf,
long  size,
VolumeId  volid,
RPC2_Handle  rpcid 
)

◆ PutTag()

int PutTag ( char  tag,
DumpBuffer_t buf 
)

◆ ReadByteString()

int ReadByteString ( DumpBuffer_t buf,
char *  to,
int  size 
)

◆ ReadDumpHeader()

int ReadDumpHeader ( DumpBuffer_t buf,
struct DumpHeader hp 
)

◆ ReadFile()

int ReadFile ( DumpBuffer_t buf,
FILE *  outfile 
)

◆ ReadInt32()

int ReadInt32 ( DumpBuffer_t buf,
unsigned int *  lp 
)

◆ ReadShort()

int ReadShort ( DumpBuffer_t buf,
unsigned short *  sp 
)

◆ ReadString()

int ReadString ( DumpBuffer_t buf,
char *  to,
int  max 
)

◆ ReadTag()

signed char ReadTag ( DumpBuffer_t buf)

◆ ReadVolumeDiskData()

int ReadVolumeDiskData ( DumpBuffer_t buf,
VolumeDiskData vol 
)

◆ ReadVV()

int ReadVV ( DumpBuffer_t buf,
ViceVersionVector *  vv 
)

◆ yaml_encode_double_quoted_string()

char * yaml_encode_double_quoted_string ( char *  string)