]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix fsck_ffs Pass 1b error exit "bad inode number 2 to nextinode".
authorKirk McKusick <mckusick@FreeBSD.org>
Wed, 24 Mar 2021 23:50:24 +0000 (16:50 -0700)
committerKirk McKusick <mckusick@FreeBSD.org>
Wed, 24 Mar 2021 23:53:28 +0000 (16:53 -0700)
commitbc444e2ec6e6cc9d96d35ab7ce3c02c0da952fad
treee6b0070b8aeea8569cca8d558e13433deea1fdb6
parentec8f1ea8d536e91ad37e03e45a688c4e255b9cb0
Fix fsck_ffs Pass 1b error exit "bad inode number 2 to nextinode".

Pass 1b of fsck_ffs runs only when Pass 1 has found duplicate blocks.
When starting up, Pass 1b failed to properly skip over the two unused
inodes at the beginning of the filesystem resulting in the above error
message when it tried to read the filesystem root inode.

Reported by:  Chuck Silvers
Tested by:    Chuck Silvers
MFC after:    3 days
Sponsored by: Netflix
sbin/fsck_ffs/pass1b.c