]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Use proper type (ino_t) for inode numbers to avoid improper sign extention
authorKirk McKusick <mckusick@FreeBSD.org>
Sun, 25 Oct 2020 21:04:07 +0000 (21:04 +0000)
committerKirk McKusick <mckusick@FreeBSD.org>
Sun, 25 Oct 2020 21:04:07 +0000 (21:04 +0000)
commit2d34afcd04207cf3fa3d5b7f467a890eae75da41
tree5025b7883fefb4806d973bac0bb7b94c42b58d55
parent883649681528398dc227778882830fc9da0ce58c
Use proper type (ino_t) for inode numbers to avoid improper sign extention
in the Pass 5 checks. The manifestation was fsck_ffs exiting with this error:

  ** Phase 5 - Check Cyl groups
  fsck_ffs: inoinfo: inumber 18446744071562087424 out of range

The error only manifests itself for filesystems bigger than about 100Tb.

Reported by:  Nikita Grechikhin <ngrechikhin at yandex.ru>
MFC after:    2 weeks
Sponsored by: Netflix
sbin/fsck_ffs/pass5.c