All of lore.kernel.org
 help / color / mirror / Atom feed
From: Richard Weinberger <richard@nod.at>
To: Jimmy Perchet <jimmy.perchet@parrot.com>, linux-mtd@lists.infradead.org
Subject: Re: Mount empty UBI volume attached via fastmap may not work
Date: Wed, 26 Apr 2017 15:48:10 +0200	[thread overview]
Message-ID: <6d452782-adec-4cb1-2848-00224226c89a@nod.at> (raw)
In-Reply-To: <1648d3ba-1a2c-d048-e30d-47128bfa6267@parrot.com>

Jimmy,

Am 26.04.2017 um 13:39 schrieb Jimmy Perchet:
>> I'm slow today. I think now I got your problem scenario.
>> You erase all blocks of a volume, face a power-cut before all blocks
>> got erased and then UBIFS fails upon mount since it thinks everything
>> is fine.
> Almost; the power-cut occurs after the update operation :
> 
> $umount data/
> 
> $ubiupdatevol -t /dev/ubi0_0

Ah...

> $cat /sys/class/ubi/ubi0_0/corrupted
> 0
> 
> /*==Power-cut==*/
> 
> $mount -t ubifs /dev/ubi0_0 data/
> 
> UBIFS fails to create the default file-system. My guess is that,
> as Fastmap is used, some LEB may be seen as mapped, and
> this not handled by UBIFS emptiness test.

Yes, this guess might be correct.
Let me think about a better way to handle this.

Thanks,
//richard

      reply	other threads:[~2017-04-26 13:48 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-26  7:46 Mount empty UBI volume attached via fastmap may not work Jimmy Perchet
2017-04-26  7:54 ` Richard Weinberger
2017-04-26  8:04   ` Richard Weinberger
2017-04-26 11:39     ` Jimmy Perchet
2017-04-26 13:48       ` Richard Weinberger [this message]

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=6d452782-adec-4cb1-2848-00224226c89a@nod.at \
    --to=richard@nod.at \
    --cc=jimmy.perchet@parrot.com \
    --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 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.