Whamcloud - gitweb
mke2fs: set s_max_mnt_count to -1 by default
authorTheodore Ts'o <tytso@mit.edu>
Thu, 29 Sep 2011 02:45:12 +0000 (22:45 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 29 Sep 2011 03:20:56 +0000 (23:20 -0400)
commit14b283ae565930144ef5ace12483d602cc3e7539
tree39d4f8740b1546c9e925890543c68653003648bf
parent0dbb256124db6dbc4bc47e00839c07c32dc29637
mke2fs: set s_max_mnt_count to -1 by default

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>
misc/mke2fs.c
misc/util.c
misc/util.h