diff options
author | Theodore Ts'o <tytso@mit.edu> | 2000-07-07 03:12:54 +0000 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2000-07-07 03:12:54 +0000 |
commit | 45d9e2ff7c4bc08d77b3b671e1da5a94dff2cbee (patch) | |
tree | fa7884d5113a3908721a1efdc2e756e395eb2960 /misc | |
parent | 5b1519bf528182fff35b8786455182ec018c454e (diff) | |
download | e2fsprogs-45d9e2ff7c4bc08d77b3b671e1da5a94dff2cbee.tar.gz |
ChangeLog, tune2fs.8.in, tune2fs.c:
tune2fs.8.in: Update manual page to document what happens if
max_mount_count is negative.
tune2fs.c (main): Allow setting the maximal count value to be
negative, since the kernel interprets that as forcing a check.
Diffstat (limited to 'misc')
-rw-r--r-- | misc/ChangeLog | 7 | ||||
-rw-r--r-- | misc/tune2fs.8.in | 5 | ||||
-rw-r--r-- | misc/tune2fs.c | 2 |
3 files changed, 12 insertions, 2 deletions
diff --git a/misc/ChangeLog b/misc/ChangeLog index ab2734ca..34004046 100644 --- a/misc/ChangeLog +++ b/misc/ChangeLog @@ -1,5 +1,12 @@ 2000-07-06 Theodore Ts'o <tytso@valinux.com> + * tune2fs.8.in: Update manual page to document what happens if + max_mount_count is negative. + + * tune2fs.c (main): Allow setting the maximal count value to be + negative, since the kernel interprets that as forcing a + check. + * fsck.c (lookup, load_fs_info, check_all): Use lazy evaluation for calling interpret_device(), since this requires root privileges if the partitions need to be scanned. diff --git a/misc/tune2fs.8.in b/misc/tune2fs.8.in index d232f093..341fedfb 100644 --- a/misc/tune2fs.8.in +++ b/misc/tune2fs.8.in @@ -69,7 +69,10 @@ adjusts tunable filesystem parameters on a Linux second extended filesystem. .SH OPTIONS .TP .BI \-c " max-mount-counts" -adjust the maximal mounts count between two filesystem checks. +adjust the maximal mounts count between two filesystem checks. If +.I max-mount-counts +is -1 then the number of times the filesystem is mounted will be disregarded +by e2fsck and the kernel. .TP .BI \-e " error-behavior" change the behavior of the kernel code when errors are detected. diff --git a/misc/tune2fs.c b/misc/tune2fs.c index 06e5c20b..196a6fe7 100644 --- a/misc/tune2fs.c +++ b/misc/tune2fs.c @@ -141,7 +141,7 @@ int main (int argc, char ** argv) switch (c) { case 'c': - max_mount_count = strtoul (optarg, &tmp, 0); + max_mount_count = strtol (optarg, &tmp, 0); if (*tmp || max_mount_count > 16000) { com_err (program_name, 0, _("bad mounts count - %s"), |