Coda Distributed File System
Functions
dumpstream.cc File Reference
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include "coda_string.h"
#include <lwp/lwp.h>
#include <lwp/lock.h>
#include <voltypes.h>
#include <vcrcommon.h>
#include <cvnode.h>
#include <volume.h>
#include <codadir.h>
#include <dump.h>
#include "dumpstream.h"
#include <util.h>
#include <coda_largefile.h>
Include dependency graph for dumpstream.cc:

Functions

int GetShort (FILE *stream, unsigned short *sp)
 
int GetInt32 (FILE *stream, unsigned int *lp)
 
int GetString (FILE *stream, char *to, unsigned int max)
 
int GetByteString (FILE *stream, byte *to, int size)
 
int GetVV (FILE *stream, ViceVersionVector *vv)
 
long WriteDump (RPC2_Handle _cid, RPC2_Unsigned offset, RPC2_Unsigned *nbytes, RPC2_Unsigned volid, SE_Descriptor *sed)
 
char * Reserve (DumpBuffer_t *, int)
 
void PrintDumpHeader (FILE *outfile, struct DumpHeader *dh)
 

Function Documentation

◆ GetByteString()

int GetByteString ( FILE *  stream,
byte to,
int  size 
)

◆ GetInt32()

int GetInt32 ( FILE *  stream,
unsigned int *  lp 
)

◆ GetShort()

int GetShort ( FILE *  stream,
unsigned short *  sp 
)

◆ GetString()

int GetString ( FILE *  stream,
char *  to,
unsigned int  max 
)

◆ GetVV()

int GetVV ( FILE *  stream,
ViceVersionVector *  vv 
)

◆ PrintDumpHeader()

void PrintDumpHeader ( FILE *  outfile,
struct DumpHeader dh 
)

◆ Reserve()

char * Reserve ( DumpBuffer_t buf,
int  n 
)

◆ WriteDump()

long WriteDump ( RPC2_Handle  _cid,
RPC2_Unsigned  offset,
RPC2_Unsigned nbytes,
RPC2_Unsigned  volid,
SE_Descriptor sed 
)