Coda Distributed File System
Macros | Functions
dumpstuff.cc File Reference
#include <ctype.h>
#include <sys/param.h>
#include <errno.h>
#include <sys/stat.h>
#include <stdio.h>
#include <sys/file.h>
#include <unistd.h>
#include <stdlib.h>
#include "coda_string.h"
#include <lwp/lwp.h>
#include <lwp/lock.h>
#include <rpc2/errors.h>
#include <util.h>
#include <vice.h>
#include <voltypes.h>
#include <cvnode.h>
#include <volume.h>
#include <partition.h>
#include <vutil.h>
#include "dump.h"
#include "voldump.h"
Include dependency graph for dumpstuff.cc:

Macros

#define putlong(p, v)
 
#define putshort(p, v)
 

Functions

DumpBuffer_tInitDumpBuf (char *ptr, long size, VolumeId volId, RPC2_Handle rpcid)
 
DumpBuffer_tInitDumpBuf (char *ptr, long size, int fd)
 
int FlushBuf (DumpBuffer_t *buf)
 
char * Reserve (DumpBuffer_t *buf, int n)
 
int DumpTag (DumpBuffer_t *buf, char tag)
 
int DumpByte (DumpBuffer_t *buf, char tag, char value)
 
int DumpDouble (DumpBuffer_t *buf, char tag, unsigned int value1, unsigned int value2)
 
int DumpInt32 (DumpBuffer_t *buf, char tag, unsigned int value)
 
int DumpArrayInt32 (DumpBuffer_t *buf, char tag, unsigned int *array, int nelem)
 
int DumpShort (DumpBuffer_t *buf, char tag, unsigned int value)
 
int DumpBool (DumpBuffer_t *buf, char tag, unsigned int value)
 
int DumpString (DumpBuffer_t *buf, char tag, char *s)
 
int DumpByteString (DumpBuffer_t *buf, char tag, char *bs, int nbytes)
 
int DumpVV (DumpBuffer_t *buf, char tag, struct ViceVersionVector *vv)
 
int DumpFile (DumpBuffer_t *buf, char tag, int fd, int vnode)
 
int DumpEnd (DumpBuffer_t *buf)
 

Macro Definition Documentation

◆ putlong

#define putlong (   p,
 
)
Value:
*p++ = (unsigned char)(v >> 24); \
*p++ = (unsigned char)(v >> 16); \
*p++ = (unsigned char)(v >> 8); \
*p++ = (unsigned char)(v);

◆ putshort

#define putshort (   p,
 
)
Value:
*p++ = (unsigned char)(v >> 8); \
*p++ = (unsigned char)(v);

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 
)

◆ FlushBuf()

int FlushBuf ( DumpBuffer_t buf)

◆ InitDumpBuf() [1/2]

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

◆ InitDumpBuf() [2/2]

DumpBuffer_t * InitDumpBuf ( char *  ptr,
long  size,
VolumeId  volId,
RPC2_Handle  rpcid 
)

◆ Reserve()

char * Reserve ( DumpBuffer_t buf,
int  n 
)