mirror of
https://git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git
synced 2024-12-05 07:54:40 +08:00
14b283ae56
If the enable_periodic_fsck option is false in /etc/mke2fs.conf (which is also the default), s_max_mnt_count needs to be set to -1, instead of 0. Kernels newer than 3.0 will interpret 0 to disable periodic checks, but older kernels will print a warning message on each mount, which will annoy users. Addresses-Debian-Bug: #632637 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
28 lines
861 B
C
28 lines
861 B
C
/*
|
|
* util.h --- header file defining prototypes for helper functions
|
|
* used by tune2fs and mke2fs
|
|
*
|
|
* Copyright 2000 by Theodore Ts'o.
|
|
*
|
|
* %Begin-Header%
|
|
* This file may be redistributed under the terms of the GNU Public
|
|
* License.
|
|
* %End-Header%
|
|
*/
|
|
|
|
extern int journal_size;
|
|
extern int journal_flags;
|
|
extern char *journal_device;
|
|
|
|
#ifndef HAVE_STRCASECMP
|
|
extern int strcasecmp (char *s1, char *s2);
|
|
#endif
|
|
extern char *get_progname(char *argv_zero);
|
|
extern void proceed_question(void);
|
|
extern void check_plausibility(const char *device);
|
|
extern void parse_journal_opts(const char *opts);
|
|
extern void check_mount(const char *device, int force, const char *type);
|
|
extern unsigned int figure_journal_size(int size, ext2_filsys fs);
|
|
extern void print_check_message(int, unsigned int);
|
|
extern void dump_mmp_msg(struct mmp_struct *mmp, const char *msg);
|