From: Adrian Hunter <adrian.hunter@nokia.com>
To: twebb <taliaferro62@gmail.com>
Cc: "linux-mtd@lists.infradead.org" <linux-mtd@lists.infradead.org>
Subject: Re: how to properly calculate max-leb-cnt and vol_size for ubifs
Date: Fri, 04 Dec 2009 13:38:31 +0200 [thread overview]
Message-ID: <4B18F4B7.9050709@nokia.com> (raw)
In-Reply-To: <dbdb2ea60912030930ncd06dcfjbb149545728fa5d6@mail.gmail.com>
twebb wrote:
> I'm using ubifs for the first time and am confused about how to
> calculate two parameters:
>
> "max-leb-cnt" for mkfs.ubifs
> "vol_size" for ubinize cfg file
>
> How should "max-leb-cnt" be calculated? In the examples, how is "-c
> 2047" determined? Should the max-leb-cnt calculation somehow include
> the overhead calculated per the ubifs documentation page? Should the
> reserved PEBs (1% default for NAND flash) be somehow taken into
> account?
>
> How should "vol_size" be calculated? Is it simply max-leb-cnt *
> LEB_size? Should overhead somehow be included in this calculation
> also?
Have you read:
http://linux-mtd.infradead.org/faq/ubifs.html#L_max_leb_cnt
http://linux-mtd.infradead.org/faq/ubi.html#L_ubi_mkimg
http://linux-mtd.infradead.org/doc/ubi.html#L_autoresize
next prev parent reply other threads:[~2009-12-04 11:39 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-03 17:30 how to properly calculate max-leb-cnt and vol_size for ubifs twebb
2009-12-04 11:38 ` Adrian Hunter [this message]
2009-12-21 16:00 ` twebb
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=4B18F4B7.9050709@nokia.com \
--to=adrian.hunter@nokia.com \
--cc=linux-mtd@lists.infradead.org \
--cc=taliaferro62@gmail.com \
/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.