]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Use proper type (ino_t) for inode numbers to avoid improper sign extention
authormckusick <mckusick@FreeBSD.org>
Sun, 25 Oct 2020 21:04:07 +0000 (21:04 +0000)
committermckusick <mckusick@FreeBSD.org>
Sun, 25 Oct 2020 21:04:07 +0000 (21:04 +0000)
commit7dc9da0991be1eabcaa47848a7e4653d706add5a
tree5025b7883fefb4806d973bac0bb7b94c42b58d55
parent5bee1fc622c3eab7273fd41cf7a24686184f6d05
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