Whamcloud - gitweb
resize2fs: rewrite the checksums in the orphan file if necessary
authorTheodore Ts'o <tytso@mit.edu>
Sun, 8 Dec 2024 04:31:43 +0000 (23:31 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 8 Dec 2024 04:55:28 +0000 (23:55 -0500)
commitff4f46b4fdb2db5a17440252a21c7db4dfce5986
treefa8134d3b053a6829f576f6477f4b8791d544b5e
parentf7dbc818551b08b648a630fbe0ae63b85a05be58
resize2fs: rewrite the checksums in the orphan file if necessary

The calculation of the metadata checksum located in each block of the
orphan file's inode includes the physical block number.  So if any of
those blocks have been moved, the checksum needs to be updated.

Reported-by: Matthias Reichl <hias@horus.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
resize/resize2fs.c