From: "Morand, Guy" <Guy.Morand@comet.ch>
To: Richard Weinberger <richard@nod.at>
Cc: "linux-mtd@lists.infradead.org" <linux-mtd@lists.infradead.org>
Subject: UBIFS corruption and UBI + unstable bit questions
Date: Fri, 27 Mar 2015 13:30:51 -0000 [thread overview]
Message-ID: <68AC191B3EB2874F99C36CD9CA3A6D42196181@cgpmbx01.comet.ch> (raw)
In-Reply-To: <55144D47.3000203@nod.at>
Hi,
Thanks for clarifying!
> But it depends on the type of the corruption.
What do you mean by "type of the corruption". Is it about a PEB containing the
volume table corrupting every volumes on the MTD device? I can't imagine a PEB
containing "regular data" corrupting the whole MTD device or correct me if I'm
wrong! I guess this should be extremely rare as we don't update the volume table
every day ...
> Okay. That's what I thought. I've never seen the issue on serious hardware.
Serious hardware, does that mean with seriously select components?
Kind regards,
Guy
-----Ursprüngliche Nachricht-----
Von: Richard Weinberger [mailto:richard@nod.at]
Gesendet: Donnerstag, 26. März 2015 19:18
An: Morand, Guy
Cc: linux-mtd@lists.infradead.org
Betreff: Re: UBIFS corruption and UBI + unstable bit questions
Hi!
Am 26.03.2015 um 18:18 schrieb Morand, Guy:
>> Can you please be more specific.
>> What exactly do you mean by "only the partition"?
>> Also what do you mean by "corrupted"?
>
> Sorry, nomenclature problem ... I mean by a volume the layer on top of the MTD
> device (UBI):
> ubiformat /dev/mtd1
> ubiattach /dev/ubi_ctrl -m 1
>
> By partition, I mean actually a volume on top of UBI (UBIFS):
> ubimkvol /dev/ubi0 -N partition1 -s 64MiB
> ubimkvol /dev/ubi0 -N partition2 -m
So, an UBI volume. :-)
> Then if there is a "unstable bit" on partition1, is also the partition2
> corrupted? This means there is nothing I can do to restore it.
No, UBI tries hard to preserve data.
But it depends on the type of the corruption.
>> UBI/FS is not a magic bullet. People who *really* care about power cut safety
>> attack the problem also with their hardware.
> Yieah right, I understand... I've seen some hardware with super caps that gives
> some time to Linux to shutdown correctly, I really love it!
It is not really Linux which needs time to shutdown, mostly other hardware components.
People who care know exactly which components need some time, the NAND chip is only one of them.
Also they don't only care about a plain power cut. You also need to take care of voltage variations
during a power cut.
>> Are you able to trigger this problem?
> No, I'm just thinking about a nice partitioning strategy on my platform to
> avoid as much corruptions as possible with the hardware I have in hands!
Okay. That's what I thought. I've never seen the issue on serious hardware.
Thanks,
//richard
next prev parent reply other threads:[~2015-03-27 13:30 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-26 16:00 UBIFS corruption and UBI + unstable bit questions Morand, Guy
2015-03-26 16:45 ` Richard Weinberger
2015-03-26 17:21 ` AW: " Morand, Guy
[not found] ` <68AC191B3EB2874F99C36CD9CA3A6D42195ED8@cgpmbx01.comet.ch>
2015-03-26 18:17 ` Richard Weinberger
2015-03-27 13:30 ` Morand, Guy [this message]
2015-03-27 15:50 ` Richard Weinberger
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=68AC191B3EB2874F99C36CD9CA3A6D42196181@cgpmbx01.comet.ch \
--to=guy.morand@comet.ch \
--cc=linux-mtd@lists.infradead.org \
--cc=richard@nod.at \
/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.