Coda Distributed File System
Macros | Functions | Variables
vol-salvage.cc File Reference
#include <stdio.h>
#include <sys/param.h>
#include <sys/file.h>
#include <sys/stat.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/time.h>
#include "coda_string.h"
#include <fcntl.h>
#include "coda_flock.h"
#include <unistd.h>
#include <stdlib.h>
#include <lwp/lwp.h>
#include <lwp/lock.h>
#include <rpc2/rpc2.h>
#include <rpc2/errors.h>
#include <util.h>
#include <partition.h>
#include <inodeops.h>
#include <rvmlib.h>
#include <codadir.h>
#include <vice.h>
#include <volutil.h>
#include <voltypes.h>
#include <cvnode.h>
#include <volume.h>
#include <fssync.h>
#include <vutil.h>
#include <index.h>
#include <recov.h>
#include <camprivate.h>
#include <coda_globals.h>
#include <volhash.h>
#include <bitmap.h>
#include <recle.h>
#include <vice_file.h>
#include "volutil.private.h"
#include "vol-salvage.private.h"
Include dependency graph for vol-salvage.cc:

Macros

#define SalvageVersion   "3.0"
 

Functions

long S_VolSalvage (RPC2_Handle rpcid, RPC2_String path, VolumeId singleVolumeNumber, RPC2_Integer force, RPC2_Integer Debug, RPC2_Integer list) EXCLUDES_TRANSACTION
 
int DirCompletenessCheck (struct VolumeSummary *vsp)
 
int InSkipVolumeList (VolumeId v, VolumeId *vl, int nvols)
 
int OnlyOneVolume (struct ViceInodeInfo *inodeinfo, VolumeId singleVolumeNumber)
 

Variables

int nskipvols = 0
 
VolumeId * skipvolnums = NULL
 
int nodebarrenize = 0
 
int VolumeChanged = 0
 
struct InodeSummaryinodeSummary
 
struct VolumeSummary volumeSummary [MAXVOLS_PER_PARTITION]
 

Macro Definition Documentation

◆ SalvageVersion

#define SalvageVersion   "3.0"

Function Documentation

◆ DirCompletenessCheck()

int DirCompletenessCheck ( struct VolumeSummary vsp)

◆ InSkipVolumeList()

int InSkipVolumeList ( VolumeId  v,
VolumeId *  vl,
int  nvols 
)

◆ OnlyOneVolume()

int OnlyOneVolume ( struct ViceInodeInfo inodeinfo,
VolumeId  singleVolumeNumber 
)

◆ S_VolSalvage()

long S_VolSalvage ( RPC2_Handle  rpcid,
RPC2_String  path,
VolumeId  singleVolumeNumber,
RPC2_Integer  force,
RPC2_Integer  Debug,
RPC2_Integer  list 
)

Variable Documentation

◆ inodeSummary

struct InodeSummary* inodeSummary

◆ nodebarrenize

int nodebarrenize = 0

◆ nskipvols

int nskipvols = 0

◆ skipvolnums

VolumeId* skipvolnums = NULL

◆ VolumeChanged

int VolumeChanged = 0

◆ volumeSummary

struct VolumeSummary volumeSummary[MAXVOLS_PER_PARTITION]