]> andersk Git - moira.git/blob - dbck/dbck.h
f876ebbd81ad53d19365465f6a4f7cf6274762c8
[moira.git] / dbck / dbck.h
1 /* $Header$
2  *
3  * Declarations for Moira database consistancy checker
4  *
5  *  (c) Copyright 1988 by the Massachusetts Institute of Technology.
6  *  For copying and distribution information, please see the file
7  *  <mit-copyright.h>.
8  */
9
10 #include <moira_site.h>
11 #include <mit-copyright.h>
12
13 #define NULL 0
14
15 #define MODE_ASK 1
16 #define MODE_NO 2
17 #define MODE_PREEN 3
18 #define MODE_YES 4
19
20 extern int debug, mode, fast, dcmenable, warn;
21 extern struct hash *users, *machines, *clusters, *lists;
22 extern struct hash *filesys, *nfsphys, *strings;
23
24 #define MAX_ID_VALUE 32765
25 #define MIN_ID_VALUE 100
26
27 #define dprintf         if (debug) printf
28
29 struct user {
30     char login[9];
31     char potype;
32     char *fullname;
33     int status;
34     int users_id;
35     int pobox_id;
36 };
37
38 struct machine {
39     char name[33];
40     int mach_id;
41     int clucount;
42 };
43
44 struct cluster {
45     char name[33];
46     int clu_id;
47 };
48
49 struct list {
50     char name[33];
51     char acl_type;
52     int list_id;
53     int  acl_id;
54     int members;
55 };
56
57 struct string {
58     char *name;
59     int string_id;
60     int refc;
61 };
62
63 struct filesys {
64     char name[33];
65     char dir[33];
66     char type;
67     int filsys_id;
68     int mach_id;
69     int owner;
70     int owners;
71     int phys_id;
72 };
73
74 struct nfsphys {
75     char dir[33];
76     int mach_id;
77     int nfsphys_id;
78     int allocated;
79     int count;
80 };
This page took 0.066734 seconds and 3 git commands to generate.