Coda Distributed File System
treeremove.h
Go to the documentation of this file.
1/* BLURB gpl
2
3 Coda File System
4 Release 6
5
6 Copyright (c) 1987-2003 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 _VOL_TREEREMOVE_H_
20#define _VOL_TREEREMOVE_H_ 1
21
22#include <srv.h>
23#include <olist.h>
24#include <dlist.h>
25
26class TreeRmBlk {
27public:
29 VolumeId VSGVnum;
31 ViceStatus *status;
32 ViceStoreId *storeid;
36 unsigned long srvrid;
37 int *blocks;
38
40 int init(ClientEntry *cl, VolumeId vnum, Volume *vptr, ViceStatus *st,
41 ViceStoreId *stid, dlist *vl, int resolve, olist *logtree,
42 unsigned long svid, int *blks)
43 {
44 client = cl;
45 VSGVnum = vnum;
46 volptr = vptr;
47 status = st;
48 storeid = stid;
49 vlist = vl;
50 blocks = blks;
51 *blocks = 0;
52 IsResolve = resolve;
53 if (IsResolve) {
54 hvlog = logtree;
55 srvrid = svid;
56 } else {
57 hvlog = NULL;
58 srvrid = 0;
59 }
60 return (0); /* keep C++ happy */
61 }
62};
63
64extern int PerformTreeRemoval(PDirEntry, void *);
65
66#endif /* _VOL_TREEREMOVE_H_ */
Definition: treeremove.h:26
TreeRmBlk()
Definition: treeremove.h:39
VolumeId VSGVnum
Definition: treeremove.h:29
ViceStatus * status
Definition: treeremove.h:31
ViceStoreId * storeid
Definition: treeremove.h:32
int IsResolve
Definition: treeremove.h:34
olist * hvlog
Definition: treeremove.h:35
int * blocks
Definition: treeremove.h:37
ClientEntry * client
Definition: treeremove.h:28
int init(ClientEntry *cl, VolumeId vnum, Volume *vptr, ViceStatus *st, ViceStoreId *stid, dlist *vl, int resolve, olist *logtree, unsigned long svid, int *blks)
Definition: treeremove.h:40
dlist * vlist
Definition: treeremove.h:33
Volume * volptr
Definition: treeremove.h:30
unsigned long srvrid
Definition: treeremove.h:36
Definition: dlist.h:50
Definition: olist.h:47
Definition: srv.h:124
Definition: codadir.h:66
Definition: volume.h:234
int PerformTreeRemoval(PDirEntry, void *)
Definition: codaproc.cc:2009
#define NULL
Definition: voltypes.h:44