All of lore.kernel.org
 help / color / mirror / Atom feed
* how to view mapping between a given ubifs volume, its set of LEBs, and its corresponding set of PEBS
@ 2016-04-21  2:13 Davis Roman
  2016-04-21 10:07 ` Richard Weinberger
  2016-04-21 10:50 ` Artem Bityutskiy
  0 siblings, 2 replies; 3+ messages in thread
From: Davis Roman @ 2016-04-21  2:13 UTC (permalink / raw)
  To: linux-mtd

Hello all,

I'm trying to understand the mapping between a ubifs volume and the
set of LEBs that get mapped to it.

More so, I'd like to also understand the mapping between a given LEB
and its designated PEB.

Although the mapping between LEBs and PEBs can change during runtime,
I figure that there should be a way to see this mapping via the
command line.

Does such a method exist ?

I've looked high and low though the mtd tools and I haven't been able
to find a way to do this.

Thank you,

Davis

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: how to view mapping between a given ubifs volume, its set of LEBs, and its corresponding set of PEBS
  2016-04-21  2:13 how to view mapping between a given ubifs volume, its set of LEBs, and its corresponding set of PEBS Davis Roman
@ 2016-04-21 10:07 ` Richard Weinberger
  2016-04-21 10:50 ` Artem Bityutskiy
  1 sibling, 0 replies; 3+ messages in thread
From: Richard Weinberger @ 2016-04-21 10:07 UTC (permalink / raw)
  To: Davis Roman; +Cc: linux-mtd@lists.infradead.org

On Thu, Apr 21, 2016 at 4:13 AM, Davis Roman <davis.roman84@gmail.com> wrote:
> Hello all,
>
> I'm trying to understand the mapping between a ubifs volume and the

UBIFS does not have volumes. UBI does.

> set of LEBs that get mapped to it.
>
> More so, I'd like to also understand the mapping between a given LEB
> and its designated PEB.
>
> Although the mapping between LEBs and PEBs can change during runtime,
> I figure that there should be a way to see this mapping via the
> command line.
>
> Does such a method exist ?

No, the mappings are internals and change also often.

But with a few lines of C you can add a debugfs file to print the corresponding
EBA table of an volume.
That way you can learn the mappings.

-- 
Thanks,
//richard

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: how to view mapping between a given ubifs volume, its set of LEBs, and its corresponding set of PEBS
  2016-04-21  2:13 how to view mapping between a given ubifs volume, its set of LEBs, and its corresponding set of PEBS Davis Roman
  2016-04-21 10:07 ` Richard Weinberger
@ 2016-04-21 10:50 ` Artem Bityutskiy
  1 sibling, 0 replies; 3+ messages in thread
From: Artem Bityutskiy @ 2016-04-21 10:50 UTC (permalink / raw)
  To: Davis Roman, linux-mtd

On Wed, 2016-04-20 at 22:13 -0400, Davis Roman wrote:
> Hello all,
> 
> I'm trying to understand the mapping between a ubifs volume and the
> set of LEBs that get mapped to it.
> 
> More so, I'd like to also understand the mapping between a given LEB
> and its designated PEB.
> 
> Although the mapping between LEBs and PEBs can change during runtime,
> I figure that there should be a way to see this mapping via the
> command line.
> 
> Does such a method exist ?
> 
> I've looked high and low though the mtd tools and I haven't been able
> to find a way to do this.

Technically it is easy to create an ioctl returning this information.
You can just do it for your research purposes. But if you want this
upstream, you should also provide a plausible use-case for this kind of
ioctl.

Artem.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-04-21 10:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-21  2:13 how to view mapping between a given ubifs volume, its set of LEBs, and its corresponding set of PEBS Davis Roman
2016-04-21 10:07 ` Richard Weinberger
2016-04-21 10:50 ` Artem Bityutskiy

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.