linux-mtd.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: Artem Bityutskiy <dedekind1@gmail.com>
To: Robert Homann <homann@bury.com>
Cc: linux-mtd@lists.infradead.org
Subject: Re: Resizing of an existing UBIFS
Date: Tue, 22 May 2012 11:10:58 +0300	[thread overview]
Message-ID: <1337674258.2483.123.camel@sauron.fi.intel.com> (raw)
In-Reply-To: <4FBB3E7F.3080807@bury.com>

[-- Attachment #1: Type: text/plain, Size: 1407 bytes --]

On Tue, 2012-05-22 at 09:21 +0200, Robert Homann wrote:
> OK, thanks. Actually, writing such a tool is not completely out of
> question in my case... How hard do you think it would be to implement it?
> Would such a tool simply change some values in a few structures or would it
> have to do something much more complicated? Or could some existing tool from
> mtd-utils be extended to do the job?

The idea is that we have on-flash area called "lprops area" which stands
for "LEB properties" and this area contains per-LEB information, e.g.,
how much free space this LEB contains. Obviously - the larger is the UBI
volume, the more LEBs it has, the larger is the lprops area. The lprops
area sits at the beginning of the flash.

When you create the file-system you can specify the size of the lprops
area indirectly using the --max-leb-cnt option. To re-size beyond that,
you need to extend the area, which means that you need to relocate the
contents of LEBs which follow this are further to the end of the device.
This this will change the position of UBIFS nodes, and will re-quire to
amend the indexing information. This is not a simple task, but doable.

However, it may be easier to copy the contents of the entire file-system
to a local machine, then re-create a new image with those files, and
re-flash the device with the new image...

-- 
Best Regards,
Artem Bityutskiy

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

  reply	other threads:[~2012-05-22  8:07 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 [this message]
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
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=1337674258.2483.123.camel@sauron.fi.intel.com \
    --to=dedekind1@gmail.com \
    --cc=homann@bury.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).