~vcs-imports/e2fsprogs/trunk

Viewing all changes in revision 3700.

  • Committer: Theodore Ts'o
  • Author(s): Darrick J. Wong
  • Date: 2014-08-10 22:44:07 UTC
  • Revision ID: git-v1:ef9c58d572de36f1786d32c93196a679294e3bc7
e2fsck: do a better job of fixing i_size of inline directories

If we encounter a directory whose i_size != the inline data size, just
set i_size to the size of the inline data.  The pb.last_block
calculation is wrong since pb.last_block == -1, which results in
i_size being set to zero, which corrupts the directory.

Clear the inline_data inode flag if we actually /are/ setting i_size
to zero.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: