Coda Distributed File System
ruconflict.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 _RUCONFLICT_H_
20#define _RUCONFLICT_H_ 1
21#include <olist.h>
22#include <dlist.h>
23#include <vcrcommon.h>
24#include <cvnode.h>
25class rsle;
26
27class RUParm {
28public:
29 dlist *vlist; // list of vnodes of all objects
30 olist *AllLogs; // remote log grouped by host and object
31 unsigned long srvrid; // serverid where rm happened
32 unsigned long vid; // volume id
33 int rcode; // return code: 0 -> no conflicts
34
35 RUParm(dlist *vl, olist *rmtlog, unsigned long id, unsigned long v)
36 {
37 vlist = vl;
38 AllLogs = rmtlog;
39 srvrid = id;
40 vid = v;
41 rcode = 0;
42 }
43};
44extern int RUConflict(rsle *, dlist *, olist *, ViceFid *);
45extern int FileRUConf(rsle *, Vnode *);
46extern int FileRUConf(ViceVersionVector *, Vnode *);
47int NewDirRUConf(RUParm *, char *, long, long);
48
49#endif /* _RUCONFLICT_H_ */
Definition: resclient.cc:65
RUParm(dlist *vl, olist *rmtlog, unsigned long id, unsigned long v)
Definition: ruconflict.h:35
int rcode
Definition: resclient.cc:71
unsigned long vid
Definition: resclient.cc:70
dlist * vlist
Definition: resclient.cc:67
unsigned long srvrid
Definition: resclient.cc:69
olist * AllLogs
Definition: ruconflict.h:30
Definition: dlist.h:50
Definition: olist.h:47
Definition: rsle.h:45
int RUConflict(rsle *, dlist *, olist *, ViceFid *)
Definition: ruconflict.cc:62
int NewDirRUConf(RUParm *, char *, long, long)
Definition: ruconflict.cc:159
int FileRUConf(rsle *, Vnode *)
Definition: ruconflict.cc:106
Definition: cvnode.h:155