Whamcloud - gitweb
libext2fs: allow file systems which have insane values in s_desc_size
authorTheodore Ts'o <tytso@mit.edu>
Wed, 13 Jun 2018 22:55:56 +0000 (18:55 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 13 Jun 2018 22:55:56 +0000 (18:55 -0400)
commitcedfcf2aeaee629392f04bac773d47f776ec1100
tree6fe4664bb67f7ed6fdca4480d99d62e1573ec926
parentc7c99af6bd0a34a3552b31cd622b311a73d03d22
libext2fs: allow file systems which have insane values in s_desc_size

If the 64-bit feature is not set, the kernel does not pay attention to
the s_desc_size field in the superblock.  Change ext2fs_open2() and
other library functions to similarly ignore s_desc_size if the 64-bit
feature is not set.

The EXT2_DESC_SIZE macro should be used in most cases instead of
referecing the s_desc_size field directly.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/ext2fs/blknum.c
lib/ext2fs/csum.c
lib/ext2fs/openfs.c