blob: 3e13e9c906085131f3aad2f4aa1e2e9bf372a33c [file] [log] [blame]
Theodore Ts'o3839e651997-04-26 13:21:57 +00001/*
2 * fsck.h
3 */
4
5#ifdef __STDC__
6#define NOARGS void
7#else
8#define NOARGS
9#define const
10#endif
11
12#ifndef DEFAULT_FSTYPE
Theodore Ts'of3db3561997-04-26 13:34:30 +000013#define DEFAULT_FSTYPE "ext2"
Theodore Ts'o3839e651997-04-26 13:21:57 +000014#endif
15
16#define MAX_DEVICES 32
17#define MAX_ARGS 32
18
19#define EXIT_OK 0
20#define EXIT_NONDESTRUCT 1
21#define EXIT_DESTRUCT 2
22#define EXIT_UNCORRECTED 4
23#define EXIT_ERROR 8
24#define EXIT_USAGE 16
25#define EXIT_LIBRARY 128
26
27/*
28 * Internal structure for mount tabel entries.
29 */
30
31struct fs_info {
32 char *device;
33 char *mountpt;
34 char *type;
35 char *opts;
36 int freq;
37 int passno;
38 int flags;
39 struct fs_info *next;
40};
41
42#define FLAG_DONE 1
43
44/*
45 * Structure to allow exit codes to be stored
46 */
47struct fsck_instance {
48 int pid;
49 int flags;
50 int exit_status;
51 char * prog;
52 char * device;
53 struct fsck_instance *next;
54};
55
56
57