From: Richard Weinberger <richard@nod.at>
To: "Morand, Guy" <Guy.Morand@comet.ch>
Cc: "linux-mtd@lists.infradead.org" <linux-mtd@lists.infradead.org>
Subject: Re: UBIFS corruption and UBI + unstable bit questions
Date: Thu, 26 Mar 2015 19:17:43 +0100 [thread overview]
Message-ID: <55144D47.3000203@nod.at> (raw)
In-Reply-To: <68AC191B3EB2874F99C36CD9CA3A6D42195ED8@cgpmbx01.comet.ch>
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-26 18:18 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 [this message]
2015-03-27 13:30 ` Morand, Guy
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=55144D47.3000203@nod.at \
--to=richard@nod.at \
--cc=Guy.Morand@comet.ch \
--cc=linux-mtd@lists.infradead.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox