UBIFS: Does ubifs have volumes size min limitation?
Artem Bityutskiy
dedekind at infradead.org
Tue Mar 25 03:00:44 EDT 2008
Hi!
On Fri, 2008-03-21 at 14:23 +0800, Nancy wrote:
> Hi,
> The total size of mtd partitions which will be attached by ubi is 50MiB,
> #ubimkvol -d 0 -n 0 -N ubifs -s 47MiB
> # mount -t ubifs ubi0:ubifs /mnt/1
> UBIFS error (pid 807): validate_sb: bad lsave_cnt
> UBIFS error (pid 807): validate_sb: bad superblock
> mount: mounting ubi0:ubifs on /mnt/1 failed: Invalid argument
Hmm... So you took an empty flash, attached it to UBI, and created this
volume? Or you used mkfs.ubifs utility?
Which version of UBIFS do you have (commit id)?
> It is OK when the volume size is large.
Yes, should be fine.
> Does ubifs have volumes size min limitation? why? and what is it exactly?
Yes, it does have minimum volume size limitation, because it uses
several eraseblocks for internal purposes, for example it needs to
reserve at lease 2 LEBs for the FS indexing tree, for LEB properties
information, for Garbage collection, and so on. This is why.
Vs. "what is it exactly", I'm not sure. I guess we never tested it with
very small volumes so far. I tried it with ~ 8 MiB volumes and it worked
fine.
--
Best regards,
Artem Bityutskiy (Битюцкий Артём)
More information about the linux-mtd
mailing list