All of lore.kernel.org
 help / color / mirror / Atom feed
From: Richard Weinberger <richard@nod.at>
To: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>,
	Charles Godson <cestgodson@gmail.com>
Cc: "linux-mtd@lists.infradead.org" <linux-mtd@lists.infradead.org>,
	Thomas Petazzoni <thomas.petazzoni@free-electrons.com>,
	w@1wt.eu, Daniel Ehrenberg <dehrenberg@chromium.org>
Subject: Re: Block device emulation on top of ubi volumes with read/write support
Date: Wed, 20 Jan 2016 23:39:46 +0100	[thread overview]
Message-ID: <56A00CB2.3050505@nod.at> (raw)
In-Reply-To: <CAAEAJfAM9XEV2oU7PngdpPjryGttQw8Zj+uqhJ40mZEKvTX59A@mail.gmail.com>

Am 20.01.2016 um 22:50 schrieb Ezequiel Garcia:
> On 20 January 2016 at 18:33, Charles Godson <cestgodson@gmail.com> wrote:
>> Hi Ezequiel,
>>
>> Hope this email finds you well.
>>
>> I could have sent this directly to linux-kernel@vger.kernel.org or
>> linux-mtd@lists.infradead.org, but I thought there may be a quick answer to
>> this one.
>>
> 
> I'm Ccing linux-mtd, and some interested folks.
> 
>> I am looking into enabling ext4 support on top of NAND flash. I am currently
>> using squashfs on top of UBI volumes (with your read-only block device
>> emulation), and that works exceptionally well for me (thanks for the quality
>> code!).
>>
>> I've looked at your earlier work, where you started with block device
>> emulation with RW support (e.g. https://lwn.net/Articles/525957/). I haven't
>> seen much progress there, and in 2014 you''ve introduced RO version.
>>
>> I was wondering why the switch?
>>
> 
> I guess there are two reasons: first, because even though UBI
> does wear-leveling, we feared [1] that a regular filesystem would wear out
> blocks by doing a crazy amount of writes.
> 
> To be honest, it wasn't the main obstacle, so I added the
> write-support as an option
> with a big fat warning message. It was later asked to drop the option,
> and I fell for the
> safer read-only instead of leaving write support there.

Yes. UBI is *not* a FTL and doing a proper RW block driver on top of UBI
will be hard. Especially if you want decent performance, power cut tolerance
and a good lifetime of your NAND.

We have UBIFS for reasons. :-)

> The read-only version was much much simpler, and it was tempting to keep things
> simple. This is the second reason.
> 
> You may restart this discussion, write support and see how it goes. I'm not
> entirely opposed to the idea.
> 
> BTW, why can't you just use UBIFS instead?

Please use UBIFS. Are you missing some ext4 feature?

Thanks,
//richard

  reply	other threads:[~2016-01-20 22:40 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CADC-h+GSekez10TVYV3pJsiD=YPY=WawG5cN_ZrJJb0zP7Xu=g@mail.gmail.com>
2016-01-20 21:50 ` Block device emulation on top of ubi volumes with read/write support Ezequiel Garcia
2016-01-20 22:39   ` Richard Weinberger [this message]
     [not found]     ` <CADC-h+H=qwue4Ubr7kKOxjweH_0npTwepvnemcnEKAtb3sMPcA@mail.gmail.com>
2016-01-20 23:54       ` Daniel Ehrenberg
2016-01-21  0:12         ` Richard Weinberger
2016-01-21  0:19           ` Daniel Ehrenberg
2016-01-21  0:21             ` Richard Weinberger
2016-01-21  0:29               ` Charles Godson
2016-01-21  0:35                 ` Richard Weinberger
2016-01-21  0:51                   ` Charles Godson
2016-01-21  9:29                     ` 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=56A00CB2.3050505@nod.at \
    --to=richard@nod.at \
    --cc=cestgodson@gmail.com \
    --cc=dehrenberg@chromium.org \
    --cc=ezequiel@vanguardiasur.com.ar \
    --cc=linux-mtd@lists.infradead.org \
    --cc=thomas.petazzoni@free-electrons.com \
    --cc=w@1wt.eu \
    /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.