From: Sunil Mushran <sunil.mushran@oracle.com>
To: ocfs2-devel@oss.oracle.com
Subject: [Ocfs2-devel] How can ecc be corrected?
Date: Fri, 17 Jun 2011 09:53:40 -0700 [thread overview]
Message-ID: <4DFB8694.6080303@oracle.com> (raw)
In-Reply-To: <BANLkTi=SHS1W7umXmY9egUrGK0SWeOjQ7w@mail.gmail.com>
On 06/17/2011 08:55 AM, Goldwyn Rodrigues wrote:
> I am not able to understand the use of metaecc or the ECC in the
> metadata. All the metadata contain the ecc to check if the data
> written to the block is sane, but what happens in case the ecc does
> not match? All it does is fail in case it does not match. There does
> not seem a way to correct it.
>
> fsck simply fails in ocfs2_read_inode, (or in some cases such as
> superblock inode (2) does not even check) if the ecc does not match.
> What is the best way to correct ecc errors? I understand that an
> incorrect ECC means the data might be corrupt, but what if we want to
> recover? or is it not meant to be corrected at all?
I think originally our thought was that bad checksum means bad block. But
we are wiser now. As in, while that works in the fs, we could to do better
job in the tools. And that's the reason it is not yet enabled by default.
If you have ideas, do share.
next prev parent reply other threads:[~2011-06-17 16:53 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-17 15:55 [Ocfs2-devel] How can ecc be corrected? Goldwyn Rodrigues
2011-06-17 16:53 ` Sunil Mushran [this message]
2011-06-17 18:50 ` Goldwyn Rodrigues
2011-06-17 19:14 ` Sunil Mushran
2011-06-17 23:16 ` Joel Becker
2011-06-20 16:22 ` Sunil Mushran
2011-06-20 17:34 ` Goldwyn Rodrigues
2011-06-19 4:13 ` Goldwyn Rodrigues
2011-06-20 16:32 ` Sunil Mushran
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4DFB8694.6080303@oracle.com \
--to=sunil.mushran@oracle.com \
--cc=ocfs2-devel@oss.oracle.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.