diff options
author | "Vladimir N. Oleynik" <dzo@simtreas.ru> | 2005-10-12 12:24:01 +0000 |
---|---|---|
committer | "Vladimir N. Oleynik" <dzo@simtreas.ru> | 2005-10-12 12:24:01 +0000 |
commit | 3ebb89521831fbce738ab3dfbb9f841c3a561d37 (patch) | |
tree | 33bd98af76c09bbeea66a99dd2452a82956ba428 /e2fsprogs/fsck.c | |
parent | ab57f76e13c00830fb8c3fe32dc210158abc5e91 (diff) | |
download | busybox-w32-3ebb89521831fbce738ab3dfbb9f841c3a561d37.tar.gz busybox-w32-3ebb89521831fbce738ab3dfbb9f841c3a561d37.tar.bz2 busybox-w32-3ebb89521831fbce738ab3dfbb9f841c3a561d37.zip |
make fsck.h as common, e2fsck: includes correct
Diffstat (limited to 'e2fsprogs/fsck.c')
-rw-r--r-- | e2fsprogs/fsck.c | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/e2fsprogs/fsck.c b/e2fsprogs/fsck.c index ec0c38b0b..7799faec0 100644 --- a/e2fsprogs/fsck.c +++ b/e2fsprogs/fsck.c | |||
@@ -54,6 +54,50 @@ | |||
54 | #endif | 54 | #endif |
55 | 55 | ||
56 | /* | 56 | /* |
57 | * fsck.h | ||
58 | */ | ||
59 | |||
60 | #ifndef DEFAULT_FSTYPE | ||
61 | #define DEFAULT_FSTYPE "ext2" | ||
62 | #endif | ||
63 | |||
64 | #define MAX_DEVICES 32 | ||
65 | #define MAX_ARGS 32 | ||
66 | |||
67 | /* | ||
68 | * Internal structure for mount tabel entries. | ||
69 | */ | ||
70 | |||
71 | struct fs_info { | ||
72 | char *device; | ||
73 | char *mountpt; | ||
74 | char *type; | ||
75 | char *opts; | ||
76 | int freq; | ||
77 | int passno; | ||
78 | int flags; | ||
79 | struct fs_info *next; | ||
80 | }; | ||
81 | |||
82 | #define FLAG_DONE 1 | ||
83 | #define FLAG_PROGRESS 2 | ||
84 | |||
85 | /* | ||
86 | * Structure to allow exit codes to be stored | ||
87 | */ | ||
88 | struct fsck_instance { | ||
89 | int pid; | ||
90 | int flags; | ||
91 | int exit_status; | ||
92 | time_t start_time; | ||
93 | char * prog; | ||
94 | char * type; | ||
95 | char * device; | ||
96 | char * base_device; | ||
97 | struct fsck_instance *next; | ||
98 | }; | ||
99 | |||
100 | /* | ||
57 | * base_device.c | 101 | * base_device.c |
58 | * | 102 | * |
59 | * Return the "base device" given a particular device; this is used to | 103 | * Return the "base device" given a particular device; this is used to |