how to properly calculate max-leb-cnt and vol_size for ubifs

twebb taliaferro62 at gmail.com
Thu Dec 3 12:30:11 EST 2009


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?

Thanks for the help,
twebb



More information about the linux-mtd mailing list