Whamcloud - gitweb
e2fsck: zero errcode when checking inline data blocks
authorDarrick J. Wong <darrick.wong@oracle.com>
Fri, 14 Mar 2014 13:26:21 +0000 (09:26 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 14 Mar 2014 13:26:22 +0000 (09:26 -0400)
commitcc7d12ac377458e17b520e431f5b54896be3e456
tree13aff2fdbf70f89d580c32331088814e078a8fc0
parent97bd89cd398108b05e33b676809b50348bf6abb2
e2fsck: zero errcode when checking inline data blocks

When checking inline data blocks, always zero pctx->errcode because
otherwise a previous error condition could leak through and "cause" a
fatal block iteration failure.  I found this by corrupting an xattr
block on an inline_data inode and fsck aborted when I tried to repair
it.

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