]> andersk Git - moira.git/blame - dbck/dbck.h
line buffer the output
[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;
22extern 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
29struct user {
30 char login[9];
31 char potype;
32 char *fullname;
33 int status;
34 int users_id;
35 int pobox_id;
36};
37
38struct machine {
39 char name[33];
40 int mach_id;
41 int clucount;
42};
43
44struct cluster {
45 char name[33];
46 int clu_id;
47};
48
49struct list {
50 char name[33];
51 char acl_type;
52 int list_id;
53 int acl_id;
54 int members;
55};
56
57struct string {
58 char *name;
59 int string_id;
60 int refc;
61};
62
63struct 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
74struct nfsphys {
75 char dir[33];
76 int mach_id;
77 int nfsphys_id;
78 int allocated;
79 int count;
80};
This page took 0.089288 seconds and 5 git commands to generate.