summaryrefslogtreecommitdiff
path: root/e2fsprogs/fsck.c
diff options
context:
space:
mode:
author"Vladimir N. Oleynik"2005-10-12 12:24:01 +0000
committer"Vladimir N. Oleynik"2005-10-12 12:24:01 +0000
commit3ebb89521831fbce738ab3dfbb9f841c3a561d37 (patch)
tree33bd98af76c09bbeea66a99dd2452a82956ba428 /e2fsprogs/fsck.c
parentab57f76e13c00830fb8c3fe32dc210158abc5e91 (diff)
downloadbusybox-3ebb89521831fbce738ab3dfbb9f841c3a561d37.zip
busybox-3ebb89521831fbce738ab3dfbb9f841c3a561d37.tar.gz
make fsck.h as common, e2fsck: includes correct
Diffstat (limited to 'e2fsprogs/fsck.c')
-rw-r--r--e2fsprogs/fsck.c44
1 files changed, 44 insertions, 0 deletions
diff --git a/e2fsprogs/fsck.c b/e2fsprogs/fsck.c
index ec0c38b..7799fae 100644
--- a/e2fsprogs/fsck.c
+++ b/e2fsprogs/fsck.c
@@ -54,6 +54,50 @@
#endif
/*
+ * fsck.h
+ */
+
+#ifndef DEFAULT_FSTYPE
+#define DEFAULT_FSTYPE "ext2"
+#endif
+
+#define MAX_DEVICES 32
+#define MAX_ARGS 32
+
+/*
+ * Internal structure for mount tabel entries.
+ */
+
+struct fs_info {
+ char *device;
+ char *mountpt;
+ char *type;
+ char *opts;
+ int freq;
+ int passno;
+ int flags;
+ struct fs_info *next;
+};
+
+#define FLAG_DONE 1
+#define FLAG_PROGRESS 2
+
+/*
+ * Structure to allow exit codes to be stored
+ */
+struct fsck_instance {
+ int pid;
+ int flags;
+ int exit_status;
+ time_t start_time;
+ char * prog;
+ char * type;
+ char * device;
+ char * base_device;
+ struct fsck_instance *next;
+};
+
+/*
* base_device.c
*
* Return the "base device" given a particular device; this is used to