All of lore.kernel.org
 help / color / mirror / Atom feed
From: Norbert van Bolhuis <nvbolhuis@aimvalley.nl>
To: linux-mtd@lists.infradead.org
Subject: Re: Resizing of an existing UBIFS
Date: Fri, 25 May 2012 12:12:48 +0200	[thread overview]
Message-ID: <4FBF5B20.50406@aimvalley.nl> (raw)
In-Reply-To: <1337669583.2483.88.camel@sauron.fi.intel.com>

On 05/22/12 08:53, Artem Bityutskiy wrote:
> On Tue, 2012-05-22 at 08:41 +0200, Robert Homann wrote:
>> Hi,
>>
>> I have a short question: Is it possible to expand the size of a UBIFS
>> without creating a new image file or reformatting from scratch?
>>
>> Suppose you have a UBIFS whose --max-leb-cnt has been set so to limit
>> its size to 100 MiB. Now suppose this UBIFS lives in a dynamic UBI
>> volume which gets expanded to a size of the whole partition, say,
>> 150 MiB. Being limited by the --max-leb-cnt parameter, the contained
>> UBIFS is expanded to only 100 MiB, and the rest of the space in the
>> volume is wasted. Is it possible to resize the UBIFS so that it can make
>> use of the now wasted space?
>
> Unfortunately there are not tools for this :-( You could write one,
> though :-)
>


This is not a problem for a UBIFS being created dynamically, so with
ubiformat + ubiattach + ubimkvol ? In this case the size of the lprops
area is determined by the total amount of LEBs of the MTD partition ?

A UBIFS volume can then be resized with ubirsvol as long as it does not
conflict with other volumes and does not exceed the total amount of
LEBs of the MTD partition ?

---
N. van Bolhuis.

  parent reply	other threads:[~2012-05-25 10:13 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-22  6:41 Resizing of an existing UBIFS Robert Homann
2012-05-22  6:53 ` Artem Bityutskiy
2012-05-22  7:21   ` Robert Homann
2012-05-22  8:10     ` Artem Bityutskiy
2012-05-22  9:25       ` Robert Homann
2012-05-22  9:40         ` Ricard Wanderlof
2012-05-22 10:19           ` Artem Bityutskiy
2012-05-22 11:11             ` Robert Homann
2012-05-22 11:24               ` Artem Bityutskiy
2012-05-25  7:00     ` Adrian Hunter
2012-05-25  7:49       ` Robert Homann
2012-05-25  8:00         ` Ricard Wanderlof
2012-05-28  9:09           ` Adrian Hunter
2012-06-01 10:10             ` Ricard Wanderlof
2012-06-01 11:48               ` Adrian Hunter
2012-06-01 19:47                 ` Ricard Wanderlof
2012-06-04  7:58                   ` Adrian Hunter
2012-06-04  9:35                     ` Ricard Wanderlof
2012-06-04  9:47                       ` Artem Bityutskiy
2012-05-25 10:12   ` Norbert van Bolhuis [this message]
2012-05-26 14:00     ` Artem Bityutskiy
2012-05-27 20:24       ` Norbert van Bolhuis
2012-05-28  5:46         ` Artem Bityutskiy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4FBF5B20.50406@aimvalley.nl \
    --to=nvbolhuis@aimvalley.nl \
    --cc=linux-mtd@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.