|
Coda Distributed File System
|
#include <stdio.h>#include <sys/types.h>#include <sys/stat.h>#include <sys/param.h>#include "coda_string.h"#include <unistd.h>#include <stdlib.h>#include <errno.h>#include <netdb.h>#include <inodeops.h>#include <inconsist.h>#include <venusioctl.h>#include <vice.h>#include <parser.h>#include "coda_assert.h"#include "resolve.h"#include "repio.h"#include "predicate.h"#include "cure.h"
Functions | |
| int | resdirCompareByFidName (resdir_entry **, resdir_entry **) |
| int | resdirCompareByName (resdir_entry **, resdir_entry **) |
| int | res_getfid (char *path, ViceFid *Fid, ViceVersionVector *VV) |
| int | res_getmtptfid (char *path, ViceFid *Fid, ViceVersionVector *VV) |
| char * | SkipLine (char *buf) |
| struct Acl * | ParseAcl (char *buf) |
| void | FreeAcl (struct Acl *ta) |
| struct Acl * | res_getacl (char *path) |
| int | getunixdirreps (int nreplicas, char *names[], resreplica **reps) |
| void | MarkEntriesByFid (VnodeId Vnode, Unique_t Unique) |
| void | MarkEntriesByGroup (resdir_entry **mark_arr, int nentries) |
| int | GetConflictType (int nreplicas, resreplica *dirs, resdir_entry **deGroup, int nentries, int *conflictType, char *realm) |
| void | InitListHdr (int nreplicas, resreplica *dirs, struct listhdr **opList) |
| int | InsertListHdr (int nreplicas, struct repair *rep, struct listhdr **ops, int index) |
| int | InRepairList (struct listhdr *opList, unsigned opcode, VnodeId vnode, Unique_t unique) |
| int | IsCreatedEarlier (struct listhdr **opList, int index, VnodeId vnode, Unique_t unique) |
| void | ResolveConflict (int nreplicas, resreplica *dirs, resdir_entry **deGroup, int nentries, int conflictType, listhdr **opList, VolumeId RepVolume, char *realm) |
| int | NameNameResolve (int first, int last, int nreplicas, resreplica *dirs, struct listhdr **opList, struct repinfo *inf) |
| int | dirresolve (int nreplicas, resreplica *dirs, int(*cbfn)(char *), struct listhdr **opList, VolumeId RepVolume, struct repinfo *inf, char *realm) |
| void | resClean (int nreplicas, resreplica *dirs, struct listhdr *lh) |
| int | GetParent (char *realm, ViceFid *cfid, ViceFid *dfid, char *dpath, char *childname) |
Variables | |
| resdir_entry * | direntriesarr |
| int | direntriesarrsize |
| int | nextavailindex = -1 |
| resdir_entry ** | sortedArrByFidName |
| resdir_entry ** | sortedArrByName |
| int | totaldirentries = 0 |
| int | nConflicts |
| int dirresolve | ( | int | nreplicas, |
| resreplica * | dirs, | ||
| int(*)(char *) | cbfn, | ||
| struct listhdr ** | opList, | ||
| VolumeId | RepVolume, | ||
| struct repinfo * | inf, | ||
| char * | realm | ||
| ) |
| void FreeAcl | ( | struct Acl * | ta | ) |
| int GetConflictType | ( | int | nreplicas, |
| resreplica * | dirs, | ||
| resdir_entry ** | deGroup, | ||
| int | nentries, | ||
| int * | conflictType, | ||
| char * | realm | ||
| ) |
| int GetParent | ( | char * | realm, |
| ViceFid * | cfid, | ||
| ViceFid * | dfid, | ||
| char * | dpath, | ||
| char * | childname | ||
| ) |
| int getunixdirreps | ( | int | nreplicas, |
| char * | names[], | ||
| resreplica ** | reps | ||
| ) |
| void InitListHdr | ( | int | nreplicas, |
| resreplica * | dirs, | ||
| struct listhdr ** | opList | ||
| ) |
| int InRepairList | ( | struct listhdr * | opList, |
| unsigned | opcode, | ||
| VnodeId | vnode, | ||
| Unique_t | unique | ||
| ) |
| int IsCreatedEarlier | ( | struct listhdr ** | opList, |
| int | index, | ||
| VnodeId | vnode, | ||
| Unique_t | unique | ||
| ) |
| void MarkEntriesByFid | ( | VnodeId | Vnode, |
| Unique_t | Unique | ||
| ) |
| void MarkEntriesByGroup | ( | resdir_entry ** | mark_arr, |
| int | nentries | ||
| ) |
| int NameNameResolve | ( | int | first, |
| int | last, | ||
| int | nreplicas, | ||
| resreplica * | dirs, | ||
| struct listhdr ** | opList, | ||
| struct repinfo * | inf | ||
| ) |
| struct Acl * ParseAcl | ( | char * | buf | ) |
| struct Acl * res_getacl | ( | char * | path | ) |
| int res_getfid | ( | char * | path, |
| ViceFid * | Fid, | ||
| ViceVersionVector * | VV | ||
| ) |
| int res_getmtptfid | ( | char * | path, |
| ViceFid * | Fid, | ||
| ViceVersionVector * | VV | ||
| ) |
| void resClean | ( | int | nreplicas, |
| resreplica * | dirs, | ||
| struct listhdr * | lh | ||
| ) |
| int resdirCompareByFidName | ( | resdir_entry ** | a, |
| resdir_entry ** | b | ||
| ) |
| int resdirCompareByName | ( | resdir_entry ** | a, |
| resdir_entry ** | b | ||
| ) |
| void ResolveConflict | ( | int | nreplicas, |
| resreplica * | dirs, | ||
| resdir_entry ** | deGroup, | ||
| int | nentries, | ||
| int | conflictType, | ||
| listhdr ** | opList, | ||
| VolumeId | RepVolume, | ||
| char * | realm | ||
| ) |
| char * SkipLine | ( | char * | buf | ) |
| resdir_entry* direntriesarr |
| int direntriesarrsize |
| int nConflicts |
| int nextavailindex = -1 |
| resdir_entry** sortedArrByFidName |
| resdir_entry** sortedArrByName |
| int totaldirentries = 0 |