Whamcloud - gitweb
e2fsck: check the error return from the forced rewrite write
authorTheodore Ts'o <tytso@mit.edu>
Wed, 1 May 2024 04:24:52 +0000 (00:24 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 1 May 2024 04:24:52 +0000 (00:24 -0400)
commit96732f6833fd5292eff82bd7e31401784d0468f3
tree9ce8ff4ccc5cb8eac705b6590502f29108773581
parent5f3a677bfccfa34c1387336b306ab5805acf95ae
e2fsck: check the error return from the forced rewrite write

If read of a block fails, we offer the user the opportunity to force a
rewrite to that sector to force the storage device to remap the LBA to
its spare block pool.  Check that write so if it fails, we can let the
user know.

Addresses-Coverity-bug: 1432422
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
e2fsck/ehandler.c