[Ocfs2-tools-devel] [PATCH 2/2] extras/check_metaecc: use ocfs2_read_blocks_nocache()
Coly Li
coly.li at suse.de
Tue May 25 01:19:11 PDT 2010
check_metaecc currently calls ocfs2_read_blocks() to read meta data
blocks. If the cached block inside memory is corrupted, check_metaecc
will still report an ECC error even the on-disk data is correct.
This patch makes check_metaecc call ocfs2_read_blocks_nocache(), which
may avoid the above issue.
Signed-off-by: Coly Li <coly.li at suse.de>
---
extras/check_metaecc.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/extras/check_metaecc.c b/extras/check_metaecc.c
index ff06068..575f737 100644
--- a/extras/check_metaecc.c
+++ b/extras/check_metaecc.c
@@ -267,7 +267,7 @@ int main(int argc, char *argv[])
goto out_close;
}
- err = ocfs2_read_blocks(fs, blkno, 1, block);
+ err = ocfs2_read_blocks_nocache(fs, blkno, 1, block);
if (err) {
com_err(argv[0], err,
"while reading block #%"PRIu64" on \"%s\"\n",
--
1.7.0.3
More information about the Ocfs2-tools-devel
mailing list