blob: 3efd95413d8fef1ab7f1445788a9d5b19000005a [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
Theodore Ts'o50787ea1999-07-19 15:30:21 +000043#define FLAG_PROGRESS 2
Theodore Ts'o3839e651997-04-26 13:21:57 +000044
45/*
46 * Structure to allow exit codes to be stored
47 */
48struct fsck_instance {
49 int pid;
50 int flags;
51 int exit_status;
52 char * prog;
Theodore Ts'o50787ea1999-07-19 15:30:21 +000053 char * type;
Theodore Ts'o3839e651997-04-26 13:21:57 +000054 char * device;
55 struct fsck_instance *next;
56};
57
58
59