]> andersk Git - moira.git/blame - dbck/dbck.h
dbck fixes by kcr, dkk, and myself from the end of the summer.
[moira.git] / dbck / dbck.h
CommitLineData
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 20extern int debug, mode, fast, dcmenable, warn;
d2543f8c 21extern struct hash *users, *machines, *clusters, *lists;
ab05f33a 22extern struct hash *filesys, *nfsphys, *strings, *subnets, *string_dups;
d2543f8c 23
24#define MAX_ID_VALUE 32765
25#define MIN_ID_VALUE 100
26
27#define dprintf if (debug) printf
28
29struct user {
ab05f33a 30 char login[9];
31 char potype;
32 char *fullname;
33 int status;
34 int users_id;
35 int pobox_id;
36 int comment;
37 int modby;
38 int fmodby;
39 int pmodby;
40 int sigwho;
d2543f8c 41};
42
43struct machine {
ab05f33a 44 char name[33];
45 char owner_type;
46 int owner_id;
47 int snet_id;
48 int mach_id;
49 int clucount;
50 int acomment;
51 int ocomment;
52 int creator;
53 int modby;
54};
55
56struct subnet {
57 char name[33];
58 char owner_type;
59 int owner_id;
60 int snet_id;
61 int modby;
d2543f8c 62};
63
64struct cluster {
65 char name[33];
66 int clu_id;
ab05f33a 67 int modby;
d2543f8c 68};
69
70struct list {
71 char name[33];
72 char acl_type;
73 int list_id;
74 int acl_id;
75 int members;
76};
77
78struct string {
79 char *name;
80 int string_id;
81 int refc;
82};
83
84struct filesys {
85 char name[33];
86 char dir[33];
87 char type;
88 int filsys_id;
89 int mach_id;
90 int owner;
91 int owners;
92 int phys_id;
93};
94
95struct nfsphys {
96 char dir[33];
97 int mach_id;
98 int nfsphys_id;
99 int allocated;
100 int count;
101};
This page took 0.126564 seconds and 5 git commands to generate.