Commit [5b9cbd] Maximize Restore History

libext2fs: check EA block headers when reading in the block

When reading an EA block in from disk, do a quick sanity check of the
block header, and return an error if we think we have garbage. Teach
e2fsck to ignore the new error code in favor of doing its own
checking, and remove the strict_csums bits while we're at it.

(Also document some assumptions in the new ext_attr code.)

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

Darrick J. Wong Darrick J. Wong 2014-08-03

Theodore Ts'o Theodore Ts'o 2014-08-03

changed e2fsck/pass1.c
changed e2fsck/problem.c
changed e2fsck/problem.h
changed lib/ext2fs/ext_attr.c
e2fsck/pass1.c Diff Switch to side-by-side view
Loading...
e2fsck/problem.c Diff Switch to side-by-side view
Loading...
e2fsck/problem.h Diff Switch to side-by-side view
Loading...
lib/ext2fs/ext_attr.c Diff Switch to side-by-side view
Loading...