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

Go to the source code of this file.

Classes

struct  repair
 
struct  listhdr
 

Macros

#define REPAIR_MAX   5 /* Max no of integer parms for a repair entry */
 
#define MAXNAMELEN   255
 
#define IS_LOCAL(realm)   (realm == 0xffffffff)
 
#define REPAIR_OPBASE   174320 /* random */
 
#define REPAIR_CREATEF   REPAIR_OPBASE + 1 /* Create file */
 
#define REPAIR_CREATED   REPAIR_OPBASE + 2 /* Create directory */
 
#define REPAIR_CREATES   REPAIR_OPBASE + 3 /* Create sym link */
 
#define REPAIR_CREATEL   REPAIR_OPBASE + 4 /* Create (hard) link */
 
#define REPAIR_REMOVEFSL   REPAIR_OPBASE + 5 /* Remove file or (hard) link */
 
#define REPAIR_REMOVED   REPAIR_OPBASE + 6 /* Remove dir */
 
#define REPAIR_SETACL   REPAIR_OPBASE + 7 /* Set rights */
 
#define REPAIR_SETNACL   REPAIR_OPBASE + 8 /* Set negative rights */
 
#define REPAIR_SETMODE   REPAIR_OPBASE + 9
 
#define REPAIR_SETOWNER    REPAIR_OPBASE + 10 /* Have to be a sys administrator for this */
 
#define REPAIR_SETMTIME   REPAIR_OPBASE + 11
 
#define REPAIR_REPLICA   REPAIR_OPBASE + 12
 
#define REPAIR_RENAME   REPAIR_OPBASE + 13 /* mv object */
 

Functions

int repair_putdfile (char *fname, int replicaCount, struct listhdr *replicaList)
 
int repair_getdfile (char *fname, int *replicaCount, struct listhdr **replicaList)
 
int repair_getdfile (int infd, int *replicaCount, struct listhdr **replicaList)
 
int repair_parseline (char *line, struct repair *rs)
 
int repair_parsefile (char *fname, int *hdcount, struct listhdr **hdarray)
 
void repair_printline (struct repair *rs, FILE *ff)
 
void repair_printfile (char *fname)
 

Macro Definition Documentation

◆ IS_LOCAL

#define IS_LOCAL (   realm)    (realm == 0xffffffff)

◆ MAXNAMELEN

#define MAXNAMELEN   255

◆ REPAIR_CREATED

#define REPAIR_CREATED   REPAIR_OPBASE + 2 /* Create directory */

◆ REPAIR_CREATEF

#define REPAIR_CREATEF   REPAIR_OPBASE + 1 /* Create file */

◆ REPAIR_CREATEL

#define REPAIR_CREATEL   REPAIR_OPBASE + 4 /* Create (hard) link */

◆ REPAIR_CREATES

#define REPAIR_CREATES   REPAIR_OPBASE + 3 /* Create sym link */

◆ REPAIR_MAX

#define REPAIR_MAX   5 /* Max no of integer parms for a repair entry */

◆ REPAIR_OPBASE

#define REPAIR_OPBASE   174320 /* random */

◆ REPAIR_REMOVED

#define REPAIR_REMOVED   REPAIR_OPBASE + 6 /* Remove dir */

◆ REPAIR_REMOVEFSL

#define REPAIR_REMOVEFSL   REPAIR_OPBASE + 5 /* Remove file or (hard) link */

◆ REPAIR_RENAME

#define REPAIR_RENAME   REPAIR_OPBASE + 13 /* mv object */

◆ REPAIR_REPLICA

#define REPAIR_REPLICA   REPAIR_OPBASE + 12

◆ REPAIR_SETACL

#define REPAIR_SETACL   REPAIR_OPBASE + 7 /* Set rights */

◆ REPAIR_SETMODE

#define REPAIR_SETMODE   REPAIR_OPBASE + 9

◆ REPAIR_SETMTIME

#define REPAIR_SETMTIME   REPAIR_OPBASE + 11

◆ REPAIR_SETNACL

#define REPAIR_SETNACL   REPAIR_OPBASE + 8 /* Set negative rights */

◆ REPAIR_SETOWNER

#define REPAIR_SETOWNER    REPAIR_OPBASE + 10 /* Have to be a sys administrator for this */

Function Documentation

◆ repair_getdfile() [1/2]

int repair_getdfile ( char *  fname,
int *  replicaCount,
struct listhdr **  replicaList 
)

◆ repair_getdfile() [2/2]

int repair_getdfile ( int  infd,
int *  replicaCount,
struct listhdr **  replicaList 
)

◆ repair_parsefile()

int repair_parsefile ( char *  fname,
int *  hdcount,
struct listhdr **  hdarray 
)

◆ repair_parseline()

int repair_parseline ( char *  line,
struct repair rs 
)

◆ repair_printfile()

void repair_printfile ( char *  fname)

◆ repair_printline()

void repair_printline ( struct repair rs,
FILE *  ff 
)

◆ repair_putdfile()

int repair_putdfile ( char *  fname,
int  replicaCount,
struct listhdr replicaList 
)