Coda Distributed File System
ops.h
Go to the documentation of this file.
1/* BLURB gpl
2
3 Coda File System
4 Release 8
5
6 Copyright (c) 1987-2021 Carnegie Mellon University
7 Additional copyrights listed below
8
9This code is distributed "AS IS" without warranty of any kind under
10the terms of the GNU General Public Licence Version 2, as shown in the
11file LICENSE. The technical and financial contributors to Coda are
12listed in the file CREDITS.
13
14 Additional copyrights
15 none currently
16
17#*/
18
19#ifndef _OPS_H
20#define _OPS_H 1
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
26#include <stdio.h>
27#include <unistd.h>
28#include <stdlib.h>
29#include <stdarg.h>
30
31#ifdef __cplusplus
32}
33#endif
34
35#include <olist.h>
36#include <dlist.h>
37#include <rec_dlist.h>
38#include <vmindex.h>
39#include <cvnode.h>
40#include <vlist.h>
41#include <res.h>
42#include <resutil.h>
43
44class rsle;
45class res_mgrpent;
46
47/* export definitions */
48extern int SpoolVMLogRecord(dlist *, vle *, Volume *, ViceStoreId *,
49 int op...) EXCLUDES_TRANSACTION;
50extern int SpoolRenameLogRecord(int, dlist *, vle *, vle *, vle *, vle *,
51 Volume *, char *, char *,
52 ViceStoreId *) EXCLUDES_TRANSACTION;
54extern void FreeVMIndices(Volume *, vmindex *);
56extern void PrintLog(rec_dlist *, FILE *);
57extern void PrintLog(Vnode *, FILE *);
58extern void DumpLog(rec_dlist *, Volume *, char **, int *, int *);
59// temporary - should go to rvmrescoord.h
60extern long RecovDirResolve(res_mgrpent *, ViceFid *, ViceVersionVector **,
61 ResStatus **, int *,
62 struct DirFid *) EXCLUDES_TRANSACTION;
63extern int CheckAndPerformRename(rsle *, Volume *, VolumeId, ViceFid *, dlist *,
64 olist *, dlist *, int *,
65 DirFid *) EXCLUDES_TRANSACTION;
66#endif /* _OPS_H_ */
Definition: dlist.h:50
Definition: olist.h:47
Definition: rec_dlist.h:49
Definition: rescomm.h:137
Definition: rsle.h:45
Definition: vmindex.h:29
#define REQUIRES_TRANSACTION
Definition: coda_tsa.h:107
#define EXCLUDES_TRANSACTION
Definition: coda_tsa.h:108
void DumpLog(rec_dlist *, Volume *, char **, int *, int *)
Definition: ops.cc:542
long RecovDirResolve(res_mgrpent *, ViceFid *, ViceVersionVector **, ResStatus **, int *, struct DirFid *) EXCLUDES_TRANSACTION
Definition: rvmrescoord.cc:108
void PrintLog(rec_dlist *, FILE *)
Definition: ops.cc:606
void FreeVMIndices(Volume *, vmindex *)
Definition: ops.cc:508
int SpoolRenameLogRecord(int, dlist *, vle *, vle *, vle *, vle *, Volume *, char *, char *, ViceStoreId *) EXCLUDES_TRANSACTION
Definition: ops.cc:416
void TruncateLog(Volume *, Vnode *, vmindex *) REQUIRES_TRANSACTION
Definition: ops.cc:474
int CheckAndPerformRename(rsle *, Volume *, VolumeId, ViceFid *, dlist *, olist *, dlist *, int *, DirFid *) EXCLUDES_TRANSACTION
Definition: rename.cc:63
int SpoolVMLogRecord(dlist *, vle *, Volume *, ViceStoreId *, int op...) EXCLUDES_TRANSACTION
Definition: ops.cc:357
void PurgeLog(rec_dlist *, Volume *, vmindex *) REQUIRES_TRANSACTION
Definition: ops.cc:516
Definition: cvnode.h:155
Definition: volume.h:234
Definition: vlist.h:64