From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ew0-f218.google.com ([209.85.219.218]) by bombadil.infradead.org with esmtp (Exim 4.69 #1 (Red Hat Linux)) id 1Nbnvw-000810-IY for linux-mtd@lists.infradead.org; Mon, 01 Feb 2010 04:30:49 +0000 Received: by ewy10 with SMTP id 10so2662596ewy.31 for ; Sun, 31 Jan 2010 20:30:40 -0800 (PST) Subject: Re: shrinking ubifs? From: Artem Bityutskiy To: Jon Ringle In-Reply-To: <152584231001312001s51aa46c3y8c992d7f14c69f1a@mail.gmail.com> References: <152584231001141415x2086fed9rd8566b6609a87b7e@mail.gmail.com> <1263724803.8276.138.camel@localhost.localdomain> <152584231001221121u2ffc1816o18d71e6099f8fc6@mail.gmail.com> <1264609500.1973.42.camel@localhost> <152584231001270834l49147b4di6c825acd42a76f8d@mail.gmail.com> <1264610155.1973.46.camel@localhost> <152584231001312001s51aa46c3y8c992d7f14c69f1a@mail.gmail.com> Content-Type: text/plain; charset="UTF-8" Date: Mon, 01 Feb 2010 06:30:37 +0200 Message-Id: <1264998637.2517.4.camel@localhost.localdomain> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Cc: linux-mtd@lists.infradead.org Reply-To: dedekind1@gmail.com List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Sun, 2010-01-31 at 23:01 -0500, Jon Ringle wrote: > On Wed, Jan 27, 2010 at 11:35 AM, Artem Bityutskiy wrote: > > On Wed, 2010-01-27 at 11:34 -0500, Jon Ringle wrote: > >> On Wed, Jan 27, 2010 at 11:25 AM, Artem Bityutskiy 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 (Артём Битюцкий)