From: Artem Bityutskiy <dedekind@infradead.org>
To: linux-mtd@lists.infradead.org
Cc: Frank Haverkamp <haver@vnet.ibm.com>,
Adrian Hunter <ext-Adrian.Hunter@nokia.com>,
Andreas Arnez <arnez@linux.vnet.ibm.com>
Subject: Re: [PATCH] UBI: add auto-resize feature
Date: Wed, 16 Jan 2008 16:29:46 +0200 [thread overview]
Message-ID: <1200493786.3956.41.camel@sauron> (raw)
In-Reply-To: <20080116150336.16917.1867.sendpatchset@golum>
On Wed, 2008-01-16 at 17:03 +0200, Artem Bityutskiy wrote:
> >From df4d5783bde51db7a213db929252718dbc4381ca Mon Sep 17 00:00:00 2001
> From: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
> Date: Wed, 16 Jan 2008 15:44:24 +0200
> Subject: [PATCH] UBI: add auto-resize feature
>
> The problem: NAND flashes have different amount of initial bad physical
> eraseblocks (marked as bad by the manufacturer). For example, for 256MiB
> Samsung OneNAND flash there might be from 0 to 40 bad initial eraseblocks,
> which is about 2%. When UBI is used as the base system, one needs to know
> the exact amount of good physical eraseblocks, because this number is
> needed to create the UBI image which is put to the devices during
> production. But this number is not know, which forces us to use the
> minimum number of good physical eraseblocks. And UBI additionally
> reserves some percentage of physical eraseblocks for bad block handling
> (default is 1%), so we have 1-3% of PEBs reserved at the end, depending
> on the amount of initial bad PEBs. But it is desired to always have
> 1% (or more, depending on the configuration).
>
> Solution: this patch adds an "auto-resize" flag to the volume table.
> The volume which has the "auto-resize" flag will automatically be re-sized
> (enlarged) on the first UBI initialization. UBI clears the flag when
> the volume is re-sized. Only one volume may have the "auto-resize" flag.
>
> So, the production UBI image may have one volume with "auto-resize"
> flag set, and its size is automatically adjusted on the first boot
> of the device.
Forgot to note that this is backward-compatible.
--
Best regards,
Artem Bityutskiy (Битюцкий Артём)
prev parent reply other threads:[~2008-01-16 15:03 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-16 15:03 [PATCH] UBI: add auto-resize feature Artem Bityutskiy
2008-01-16 14:29 ` Artem Bityutskiy [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=1200493786.3956.41.camel@sauron \
--to=dedekind@infradead.org \
--cc=arnez@linux.vnet.ibm.com \
--cc=ext-Adrian.Hunter@nokia.com \
--cc=haver@vnet.ibm.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox