From: twebb <taliaferro62@gmail.com>
To: Adrian Hunter <adrian.hunter@nokia.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: Mon, 21 Dec 2009 11:00:21 -0500 [thread overview]
Message-ID: <dbdb2ea60912210800p79f9da15p4a369c8fb7a69c6@mail.gmail.com> (raw)
In-Reply-To: <4B18F4B7.9050709@nokia.com>
>>
>> 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
>
>
I have, and I'm still pretty confused. I just posted some additional
questions I'm hoping perhaps you or someone else may be able to help
with.
Thanks,
twebb
prev parent reply other threads:[~2009-12-21 16:00 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
2009-12-21 16:00 ` twebb [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=dbdb2ea60912210800p79f9da15p4a369c8fb7a69c6@mail.gmail.com \
--to=taliaferro62@gmail.com \
--cc=adrian.hunter@nokia.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