14 #define FSCK_ATTR(x) __attribute__(x)
20 #ifndef DEFAULT_FSTYPE
21 #define DEFAULT_FSTYPE "ext2"
24 #define MAX_DEVICES 32
28 #define EXIT_NONDESTRUCT 1
29 #define EXIT_DESTRUCT 2
30 #define EXIT_UNCORRECTED 4
33 #define EXIT_LIBRARY 128
36 * Internal structure for mount tabel entries.
53 #define FLAG_PROGRESS 2
56 * Structure to allow exit codes to be stored
58 struct fsck_instance {
61 int lock; /* flock()ed whole disk file descriptor or -1 */
67 struct fsck_instance *next;
70 extern char *base_device(const char *device);
71 extern const char *identify_fs(const char *fs_name, const char *fs_types);
74 extern int is_mounted(const char *file);