[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAFLxGvyYFEiEe108Hf_TO7q0ZsiLPswVsgPBQOU29aFqebD4XA@mail.gmail.com>
Date: Mon, 2 Mar 2020 22:14:32 +0100
From: Richard Weinberger <richard.weinberger@...il.com>
To: Zhihao Cheng <chengzhihao1@...wei.com>
Cc: Richard Weinberger <richard@....at>,
Sascha Hauer <s.hauer@...gutronix.de>,
"zhangyi (F)" <yi.zhang@...wei.com>, linux-mtd@...ts.infradead.org,
LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] ubifs: Don't discard nodes in recovery when ecc err detected
On Mon, Mar 2, 2020 at 4:58 AM Zhihao Cheng <chengzhihao1@...wei.com> wrote:
> I mean, the uncorrectable ECC error is caused by hardware which may lead
> to corrupted nodes detected in UBIFS. I found uncorretable ECC errors on
> my NAND, in the environment of high temperature and humidity.
>
> At present, UBIFS ignores all EBADMSG errors, so the corrupted node is
> only considered in being caused by unfinished writing. I think UBIFS
> should consider the corrupted area caused by ECC errors in process
> ubifs_recover_leb(). no_more_nodes() will skip a read-write unit. Maybe
> the corrupted area is skipped.
Well, if your NAND data is corrupted by your environment UBIFS cannot
do much. Sure, we can paper over some places but at the end of the day
you will always lose.
What if the UBI VID header becomes unreadable or the root node of the
index tree?
--
Thanks,
//richard
Powered by blists - more mailing lists