mirror of
https://git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git
synced 2025-01-12 03:23:25 +08:00
ChangeLog, unix.c:
unix.c (check_if_skip): If the max_mount_count is zero, treat it as having no count set.
This commit is contained in:
parent
954a683dd0
commit
bc57f15390
@ -1,3 +1,8 @@
|
||||
2001-04-26 Theodore Tso <tytso@valinux.com>
|
||||
|
||||
* unix.c (check_if_skip): If the max_mount_count is zero, treat it
|
||||
as having no count set.
|
||||
|
||||
2001-04-16 Theodore Tso <tytso@valinux.com>
|
||||
|
||||
* super.c (check_super_block): Fix bad calculation of
|
||||
|
@ -261,7 +261,7 @@ static void check_if_skip(e2fsck_t ctx)
|
||||
reason = _("contains a file system with errors");
|
||||
else if ((fs->super->s_state & EXT2_VALID_FS) == 0)
|
||||
reason = _("was not cleanly unmounted");
|
||||
else if ((fs->super->s_max_mnt_count >= 0) &&
|
||||
else if ((fs->super->s_max_mnt_count > 0) &&
|
||||
(fs->super->s_mnt_count >=
|
||||
(unsigned) fs->super->s_max_mnt_count))
|
||||
reason = _("has reached maximal mount count");
|
||||
|
Loading…
Reference in New Issue
Block a user