Coda Distributed File System
Classes | Macros | Functions
repcmds.h File Reference
#include <ctype.h>
#include <errno.h>
#include <inodeops.h>
#include <netinet/in.h>
#include <parser.h>
#include <rpc2/rpc2.h>
#include <setjmp.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/file.h>
#include <sys/param.h>
#include <sys/socket.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include <netdb.h>
#include <auth2.h>
#include <avenus.h>
#include "coda_assert.h"
#include "coda_string.h"
#include <vice.h>
#include <copyfile.h>
#include <inconsist.h>
#include <repio.h>
#include <resolve.h>
#include <venusioctl.h>
Include dependency graph for repcmds.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  conflict
 
struct  replica
 

Macros

#define MAXVOLNAME   32
 
#define MAXHOSTS   8 /* XXXX --- get the true definition for this */
 
#define HOSTNAMLEN   64 /* XXXX -- get the true definition for this */
 
#define DEF_BUF   2048 /* XXXX -- temporary buffer size */
 
#define LOCAL_GLOBAL   1
 
#define SERVER_SERVER   2
 
#define MIXED_CONFLICT   3
 
#define freeif(pointer)
 
#define strerr(str, len, msg...)
 

Functions

int BeginRepair (char *pathname, struct conflict **conf, char *msg, int msgsize)
 
int ClearInc (struct conflict *conf, char *msg, int msgsize)
 
int CompareDirs (struct conflict *conf, const char *fixfile, struct repinfo *inf, char *msg, int msgsize)
 
int DoRepair (struct conflict *conf, char *ufixpath, FILE *res, char *msg, int msgsize)
 
int EndRepair (struct conflict *conf, int commit, char *msg, int msgsize)
 
int RemoveInc (struct conflict *conf, char *msg, int msgsize)
 
int dorep (struct conflict *conf, char *fixpath, char *buf, int len)
 
int makedff (char *extfile, char *intfile, char *msg, int msgsize)
 
int repair_newrep (char *reppath, struct conflict **conf, char *msg, int msgsize)
 
int repair_mountrw (struct conflict *conf, char *msg, int msgsize)
 
void repair_finish (struct conflict *conf)
 
int repair_getfid (char *path, ViceFid *outfid, char *outrealm, ViceVersionVector *outvv, char *msg, int msgsize)
 
int repair_inconflict (char *name, ViceFid *conflictfid, char *conflictrealm)
 
int repair_isleftmost (char *path, char *realpath, int len, char *msg, int msgsize)
 

Macro Definition Documentation

◆ DEF_BUF

#define DEF_BUF   2048 /* XXXX -- temporary buffer size */

◆ freeif

#define freeif (   pointer)
Value:
do { \
if (pointer != NULL) { \
free(pointer); \
pointer = NULL; \
} \
} while (0)
#define NULL
Definition: voltypes.h:44

◆ HOSTNAMLEN

#define HOSTNAMLEN   64 /* XXXX -- get the true definition for this */

◆ LOCAL_GLOBAL

#define LOCAL_GLOBAL   1

◆ MAXHOSTS

#define MAXHOSTS   8 /* XXXX --- get the true definition for this */

◆ MAXVOLNAME

#define MAXVOLNAME   32

◆ MIXED_CONFLICT

#define MIXED_CONFLICT   3

◆ SERVER_SERVER

#define SERVER_SERVER   2

◆ strerr

#define strerr (   str,
  len,
  msg... 
)
Value:
do { \
if (str != NULL) \
snprintf(str, len, ##msg); \
} while (0)

Function Documentation

◆ BeginRepair()

int BeginRepair ( char *  pathname,
struct conflict **  conf,
char *  msg,
int  msgsize 
)

◆ ClearInc()

int ClearInc ( struct conflict conf,
char *  msg,
int  msgsize 
)

◆ CompareDirs()

int CompareDirs ( struct conflict conf,
const char *  fixfile,
struct repinfo inf,
char *  msg,
int  msgsize 
)

◆ dorep()

int dorep ( struct conflict conf,
char *  fixpath,
char *  buf,
int  len 
)

◆ DoRepair()

int DoRepair ( struct conflict conf,
char *  ufixpath,
FILE *  res,
char *  msg,
int  msgsize 
)

◆ EndRepair()

int EndRepair ( struct conflict conf,
int  commit,
char *  msg,
int  msgsize 
)

◆ makedff()

int makedff ( char *  extfile,
char *  intfile,
char *  msg,
int  msgsize 
)

◆ RemoveInc()

int RemoveInc ( struct conflict conf,
char *  msg,
int  msgsize 
)

◆ repair_finish()

void repair_finish ( struct conflict conf)

◆ repair_getfid()

int repair_getfid ( char *  path,
ViceFid *  outfid,
char *  outrealm,
ViceVersionVector *  outvv,
char *  msg,
int  msgsize 
)

◆ repair_inconflict()

int repair_inconflict ( char *  name,
ViceFid *  conflictfid,
char *  conflictrealm 
)

◆ repair_isleftmost()

int repair_isleftmost ( char *  path,
char *  realpath,
int  len,
char *  msg,
int  msgsize 
)

◆ repair_mountrw()

int repair_mountrw ( struct conflict conf,
char *  msg,
int  msgsize 
)

◆ repair_newrep()

int repair_newrep ( char *  reppath,
struct conflict **  conf,
char *  msg,
int  msgsize 
)