From: Theodore Ts'o Date: Thu, 26 Apr 2001 04:11:46 +0000 (+0000) Subject: ChangeLog, unix.c: X-Git-Tag: E2FSPROGS-1_20~77 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=bc57f15390184c78524a46b19c69612ed61aa97b;p=tools%2Fe2fsprogs.git ChangeLog, unix.c: unix.c (check_if_skip): If the max_mount_count is zero, treat it as having no count set. --- diff --git a/e2fsck/ChangeLog b/e2fsck/ChangeLog index a9b3f08..e14d948 100644 --- a/e2fsck/ChangeLog +++ b/e2fsck/ChangeLog @@ -1,3 +1,8 @@ +2001-04-26 Theodore Tso + + * unix.c (check_if_skip): If the max_mount_count is zero, treat it + as having no count set. + 2001-04-16 Theodore Tso * super.c (check_super_block): Fix bad calculation of diff --git a/e2fsck/unix.c b/e2fsck/unix.c index 4e5925c..b81a00b 100644 --- a/e2fsck/unix.c +++ b/e2fsck/unix.c @@ -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");