[Bug 255979] fsck bad inode number 2 (256) to nextinode

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 19 May 2021 21:36:01 +0000

--- Comment #3 from commit-hook_at_FreeBSD.org ---
A commit in branch main references this bug:


commit fe815b88b553667c40353c46b58f9779efa3570e
Author:     Kirk McKusick <mckusick_at_FreeBSD.org>
AuthorDate: 2021-05-19 21:38:21 +0000
Commit:     Kirk McKusick <mckusick_at_FreeBSD.org>
CommitDate: 2021-05-19 21:39:24 +0000

    Fix fsck_ffs Pass 1b error exit "bad inode number 256 to nextinode".

    Pass 1b of fsck_ffs runs only when Pass 1 has found duplicate blocks.
    Pass 1 only knows that a block is duplicate when it finds the second
    instance of its use. The role of Pass 1b is to find the first use
    of all the duplicate blocks. It makes a pass over the cylinder groups
    looking for these blocks. When moving to the next cylinder group,
    Pass 1b failed to properly calculate the starting inode number for
    the cylinder group resulting in the above error message when it
    tried to read the first inode in the cylinder group.

    Reported by:  Px
    Tested by:    Px
    PR:           255979
    MFC after:    3 days
    Sponsored by: Netflix

 sbin/fsck_ffs/pass1b.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

You are receiving this mail because:
You are the assignee for the bug.
Received on Wed May 19 2021 - 21:36:01 UTC

Original text of this message