]>
Commit | Line | Data |
---|---|---|
d2543f8c | 1 | /* $Header$ |
2 | * | |
2ce085d2 | 3 | * Declarations for Moira database consistancy checker |
d2543f8c | 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 | ||
2ce085d2 | 10 | #include <moira_site.h> |
d2543f8c | 11 | #include <mit-copyright.h> |
12 | ||
13 | #define MODE_ASK 1 | |
14 | #define MODE_NO 2 | |
15 | #define MODE_PREEN 3 | |
16 | #define MODE_YES 4 | |
17 | ||
6f4e78e6 | 18 | extern int debug, mode, fast, dcmenable, warn; |
d2543f8c | 19 | extern struct hash *users, *machines, *clusters, *lists; |
ab05f33a | 20 | extern struct hash *filesys, *nfsphys, *strings, *subnets, *string_dups; |
d2543f8c | 21 | |
22 | #define MAX_ID_VALUE 32765 | |
23 | #define MIN_ID_VALUE 100 | |
24 | ||
5eaef520 | 25 | #define dprintf if (debug) printf |
d2543f8c | 26 | |
27 | struct user { | |
ab05f33a | 28 | char login[9]; |
29 | char potype; | |
30 | char *fullname; | |
31 | int status; | |
32 | int users_id; | |
33 | int pobox_id; | |
34 | int comment; | |
35 | int modby; | |
36 | int fmodby; | |
37 | int pmodby; | |
38 | int sigwho; | |
d2543f8c | 39 | }; |
40 | ||
41 | struct machine { | |
ab05f33a | 42 | char name[33]; |
43 | char owner_type; | |
44 | int owner_id; | |
45 | int snet_id; | |
46 | int mach_id; | |
47 | int clucount; | |
48 | int acomment; | |
49 | int ocomment; | |
50 | int creator; | |
51 | int modby; | |
52 | }; | |
53 | ||
54 | struct subnet { | |
55 | char name[33]; | |
56 | char owner_type; | |
57 | int owner_id; | |
58 | int snet_id; | |
59 | int modby; | |
d2543f8c | 60 | }; |
61 | ||
62 | struct cluster { | |
5eaef520 | 63 | char name[33]; |
64 | int clu_id; | |
65 | int modby; | |
d2543f8c | 66 | }; |
67 | ||
68 | struct list { | |
5eaef520 | 69 | char name[33]; |
70 | char acl_type; | |
71 | int list_id; | |
72 | int acl_id; | |
73 | int members; | |
d2543f8c | 74 | }; |
75 | ||
76 | struct string { | |
5eaef520 | 77 | char *name; |
78 | int string_id; | |
79 | int refc; | |
d2543f8c | 80 | }; |
81 | ||
82 | struct filesys { | |
5eaef520 | 83 | char name[33]; |
84 | char dir[81]; | |
85 | char type; | |
86 | int filsys_id; | |
87 | int mach_id; | |
88 | int owner; | |
89 | int owners; | |
90 | int phys_id; | |
d2543f8c | 91 | }; |
92 | ||
93 | struct nfsphys { | |
5eaef520 | 94 | char dir[33]; |
95 | int mach_id; | |
96 | int nfsphys_id; | |
97 | int allocated; | |
98 | int count; | |
d2543f8c | 99 | }; |