shrinking ubifs?

Artem Bityutskiy dedekind1 at gmail.com
Sun Jan 31 23:30:37 EST 2010


On Sun, 2010-01-31 at 23:01 -0500, Jon Ringle wrote:
> On Wed, Jan 27, 2010 at 11:35 AM, Artem Bityutskiy <dedekind1 at gmail.com> wrote:
> > On Wed, 2010-01-27 at 11:34 -0500, Jon Ringle wrote:
> >> On Wed, Jan 27, 2010 at 11:25 AM, Artem Bityutskiy <dedekind1 at gmail.com> wrote:
> >> > On Fri, 2010-01-22 at 14:21 -0500, Jon Ringle wrote:
> >> >> How about the opposite. If the static volumes became smaller freeing
> >> >> up some LEBs. Can the UBIFS be expanded to make use of the freed LEBs?
> >> >
> >> > That works automatically. UBIFS expands automatically, but up to the
> >> > size which you specified with the '-c' mkfs.ubifs option.
> >>
> >> Can the same thing be done using ubimkvol?
> >> ubimkvol -m -N ubifs /dev/ubi0
> >
> > Sorry, I don't understand the question...
> 
> I create my ubi volumes from an initramfs environment that is compiled
> against klibc. So far, I haven't been able to build mkfs.ubifs against
> klibc, so I create my ubifs volume by using ubimkvol and then mounting
> it as ubifs.

I see. Well, that is about UBIFS, about the default formatting code,
when UBIFS formats empty volume. That code should be hacked and the
maximum FS size should be increased to the value you need.
-- 
Best Regards,
Artem Bityutskiy (Артём Битюцкий)




More information about the linux-mtd mailing list