Coda Distributed File System
Classes | Macros | Functions
fssync.cc File Reference
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#include <lwp/lwp.h>
#include <lwp/lock.h>
#include <rpc2/errors.h>
#include <util.h>
#include <vice.h>
#include "voltypes.h"
#include "fssync.h"
#include "cvnode.h"
#include "volume.h"
#include "vutil.h"
Include dependency graph for fssync.cc:

Classes

struct  relocation
 

Macros

#define USUAL_PRIORITY   (LWP_MAX_PRIORITY - 2)
 
#define MAXUTILITIES
 
#define MAXOFFLINEVOLUMES
 
#define MAXRELOCATIONS
 
#define REDIRECT_TIME   60 /* Volumes are redirected for 60 minutes */
 

Functions

int FSYNC_clientInit ()
 
void FSYNC_clientFinis ()
 
int FSYNC_askfs (VolumeId volume, int com, int reason)
 
void FSYNC_fsInit ()
 
unsigned int FSYNC_CheckRelocationSite (VolumeId volumeId)
 

Macro Definition Documentation

◆ MAXOFFLINEVOLUMES

#define MAXOFFLINEVOLUMES
Value:
30 /* This needs to be as big as the
maximum number that would be
offline for 1 operation. Current
winner is salvage, which needs all
cloned read-only copies offline
when salvaging a single read-write
volume */

◆ MAXRELOCATIONS

#define MAXRELOCATIONS
Value:
20 /* Maximum number of volume relocations that may be
extant at any time */

◆ MAXUTILITIES

#define MAXUTILITIES
Value:
2 /* Up to 2 clients; must be at least
2, so that */

◆ REDIRECT_TIME

#define REDIRECT_TIME   60 /* Volumes are redirected for 60 minutes */

◆ USUAL_PRIORITY

#define USUAL_PRIORITY   (LWP_MAX_PRIORITY - 2)

Function Documentation

◆ FSYNC_askfs()

int FSYNC_askfs ( VolumeId  volume,
int  com,
int  reason 
)

◆ FSYNC_CheckRelocationSite()

unsigned int FSYNC_CheckRelocationSite ( VolumeId  volumeId)

◆ FSYNC_clientFinis()

void FSYNC_clientFinis ( )

◆ FSYNC_clientInit()

int FSYNC_clientInit ( )

◆ FSYNC_fsInit()

void FSYNC_fsInit ( )