Whamcloud - gitweb
mke2fs: add an option in mke2fs.conf to proceed after a delay
[tools/e2fsprogs.git] / misc / util.h
1 /*
2  * util.h --- header file defining prototypes for helper functions
3  * used by tune2fs and mke2fs
4  *
5  * Copyright 2000 by Theodore Ts'o.
6  *
7  * %Begin-Header%
8  * This file may be redistributed under the terms of the GNU Public
9  * License.
10  * %End-Header%
11  */
12
13 extern int       journal_size;
14 extern int       journal_flags;
15 extern char     *journal_device;
16 extern char     *journal_location_string;
17
18 /*
19  * Flags for check_plausibility()
20  */
21 #define CHECK_BLOCK_DEV 0x0001
22 #define CREATE_FILE     0x0002
23
24 #ifndef HAVE_STRCASECMP
25 extern int strcasecmp (char *s1, char *s2);
26 #endif
27 extern char *get_progname(char *argv_zero);
28 extern void proceed_question(int delay);
29 extern int check_plausibility(const char *device, int flags,
30                               int *ret_is_dev);
31 extern void parse_journal_opts(const char *opts);
32 extern void check_mount(const char *device, int force, const char *type);
33 extern unsigned int figure_journal_size(int size, ext2_filsys fs);
34 extern void print_check_message(int, unsigned int);
35 extern void dump_mmp_msg(struct mmp_struct *mmp, const char *msg);