Whamcloud - gitweb
e2fsck: on read error, don't rewrite blocks past the end of the fs
authorDarrick J. Wong <darrick.wong@oracle.com>
Tue, 27 Jan 2015 17:32:25 +0000 (12:32 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 27 Jan 2015 18:12:37 +0000 (13:12 -0500)
commitfac0c8ead88fc91689e18f8f12cfce18bd365ee4
tree3b82a3dd1a868eec1fff5da65c04a48e936cef29
parent3ee29465810887548cb293ccacb1cc810af61a4c
e2fsck: on read error, don't rewrite blocks past the end of the fs

If e2fsck encounters a read error on a block past the end of the
filesystem, don't bother trying to "rewrite" the block.  We might
still want to re-try the read to capture FS data marooned past the end
of the filesystem, but in that case e2fsck ought to move the block
back inside the filesystem.

This enables e2fuzz to detect writes past the end of the FS due to
software bugs.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
e2fsck/ehandler.c
misc/e2fuzz.sh