Resizing of an existing UBIFS

Ricard Wanderlof ricard.wanderlof at axis.com
Mon Jun 4 05:35:56 EDT 2012


On Mon, 4 Jun 2012, Adrian Hunter wrote:

>> So what you're saying is that basically it's the worst-case mount time that
>> together with the read speed sets the maximum journal size?
>
> Generally yes.

>> What I'm getting at in a more concrete sense, is that if I create an empty 8
>> MB UBI volume, then mount it as a ubifs file system (rather than
>> mkfs.ubifs'ing an empty directory, setting appropriate parameters on the
>> mkfs.ubifs command line, and ubiupdatevol'ing that), can I specify a maximum
>> LEB count (and fix the journal size) that would be appropriate also for a
>> future larger volume size?
>
> No sorry.  UBIFS auto-formatting (aka default file system creation) takes no
> parameters.  Maximum LEB count is simply set to the actual LEB count.

Ok, thanks for confirming that.

I suppose it would be possible to add some sysfs-parameter or similar to 
add this functionality?

/Ricard
-- 
Ricard Wolf Wanderlöf                           ricardw(at)axis.com
Axis Communications AB, Lund, Sweden            www.axis.com
Phone +46 46 272 2016                           Fax +46 46 13 61 30



More information about the linux-mtd mailing list