Whamcloud - gitweb
e2fsck: fix overflow if more than 4B inodes
authorAndreas Dilger <adilger@whamcloud.com>
Fri, 7 Feb 2020 01:09:44 +0000 (18:09 -0700)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 29 Feb 2020 23:34:54 +0000 (18:34 -0500)
commit102993ec1c841ef9392652db5a7a546f470a1004
treefa4107267a848229110e3d8dd929d8fca9cd389f
parentc707fb6c5baab043cf1af47fd04544e019128472
e2fsck: fix overflow if more than 4B inodes

Even though we don't have support for filesystems with over 4B inodes
in the current e2fsprogs, this may happen in the future.  There are
latent overflow bugs when calculating the number of inodes in the
filesystem that can trivially be fixed now, rather than waiting for
them to be hit at some point in the future.  The block number calcs
are already correct in this code.

Signed-off-by: Andreas Dilger <adilger@dilger.ca>
Lustre-bug-id: https://jira.whamcloud.com/browse/LU-13197
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
e2fsck/pass5.c
lib/ext2fs/bitmaps.c
lib/ext2fs/imager.c
misc/fuse2fs.c