]>
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 | ||
289d1ac4 | 13 | #define NULL 0 |
14 | ||
d2543f8c | 15 | #define MODE_ASK 1 |
16 | #define MODE_NO 2 | |
17 | #define MODE_PREEN 3 | |
18 | #define MODE_YES 4 | |
19 | ||
6f4e78e6 | 20 | extern int debug, mode, fast, dcmenable, warn; |
d2543f8c | 21 | extern struct hash *users, *machines, *clusters, *lists; |
772b7afc | 22 | extern struct hash *filesys, *nfsphys, *strings, *subnets; |
d2543f8c | 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]; | |
772b7afc | 40 | char owner_type; |
41 | int owner_id; | |
42 | int snet_id; | |
d2543f8c | 43 | int mach_id; |
44 | int clucount; | |
772b7afc | 45 | |
d2543f8c | 46 | }; |
47 | ||
48 | struct cluster { | |
49 | char name[33]; | |
50 | int clu_id; | |
51 | }; | |
52 | ||
53 | struct list { | |
54 | char name[33]; | |
55 | char acl_type; | |
56 | int list_id; | |
57 | int acl_id; | |
58 | int members; | |
59 | }; | |
60 | ||
61 | struct string { | |
62 | char *name; | |
63 | int string_id; | |
64 | int refc; | |
65 | }; | |
66 | ||
67 | struct filesys { | |
68 | char name[33]; | |
69 | char dir[33]; | |
70 | char type; | |
71 | int filsys_id; | |
72 | int mach_id; | |
73 | int owner; | |
74 | int owners; | |
75 | int phys_id; | |
76 | }; | |
77 | ||
78 | struct nfsphys { | |
79 | char dir[33]; | |
80 | int mach_id; | |
81 | int nfsphys_id; | |
82 | int allocated; | |
83 | int count; | |
84 | }; |