public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* Retrieving number of free unused eraseblocks in a UBI filesystem
@ 2016-12-07 11:59 Martin Townsend
  2016-12-07 12:39 ` Boris Brezillon
  0 siblings, 1 reply; 11+ messages in thread
From: Martin Townsend @ 2016-12-07 11:59 UTC (permalink / raw)
  To: linux-mtd

Hi,

I'm running a 4.1 Kernel and have a UBI Filesystem with 2 volumes
taking up all the NAND.
ubinfo -d 0
ubi0
Volumes count:                           2
Logical eraseblock size:                 126976 bytes, 124.0 KiB
Total amount of logical eraseblocks:     4016 (509935616 bytes, 486.3 MiB)
Amount of available logical eraseblocks: 0 (0 bytes)
Maximum count of volumes                 128
Count of bad physical eraseblocks:       56
Count of reserved physical eraseblocks:  24
Current maximum erase counter value:     15
Minimum input/output unit size:          2048 bytes
Character device major/minor:            249:0
Present volumes:                         0, 1

So I'm guessing that the Total amount of logical erase blocks is 0 as
this is because I have 2 volumes of a fixed size that take up all the
available eraseblocks of the /dev/ubi0 device.

Is there a way of getting, per volume preferably, the number of
eraseblocks that aren't being used? Or conversely get the number of
eraseblocks that are used as I can work it out from the total amount
of logical eraseblocks.

Many Thanks,
Martin.

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

end of thread, other threads:[~2016-12-07 16:57 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-07 11:59 Retrieving number of free unused eraseblocks in a UBI filesystem Martin Townsend
2016-12-07 12:39 ` Boris Brezillon
2016-12-07 13:07   ` Martin Townsend
2016-12-07 13:14     ` Boris Brezillon
2016-12-07 13:55       ` Martin Townsend
2016-12-07 14:17         ` Boris Brezillon
2016-12-07 14:47           ` Martin Townsend
2016-12-07 15:00             ` Boris Brezillon
2016-12-07 15:33               ` Martin Townsend
2016-12-07 15:48                 ` Boris Brezillon
2016-12-07 16:56                   ` Martin Townsend

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox