|
Coda Distributed File System
|
#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"
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 InodeSummary * | inodeSummary |
| struct VolumeSummary | volumeSummary [MAXVOLS_PER_PARTITION] |
| #define SalvageVersion "3.0" |
| int DirCompletenessCheck | ( | struct VolumeSummary * | vsp | ) |
| int InSkipVolumeList | ( | VolumeId | v, |
| VolumeId * | vl, | ||
| int | nvols | ||
| ) |
| int OnlyOneVolume | ( | struct ViceInodeInfo * | inodeinfo, |
| VolumeId | singleVolumeNumber | ||
| ) |
| long S_VolSalvage | ( | RPC2_Handle | rpcid, |
| RPC2_String | path, | ||
| VolumeId | singleVolumeNumber, | ||
| RPC2_Integer | force, | ||
| RPC2_Integer | Debug, | ||
| RPC2_Integer | list | ||
| ) |
| struct InodeSummary* inodeSummary |
| int nodebarrenize = 0 |
| int nskipvols = 0 |
| VolumeId* skipvolnums = NULL |
| int VolumeChanged = 0 |
| struct VolumeSummary volumeSummary[MAXVOLS_PER_PARTITION] |