Linux-mtd Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Richard Weinberger <richard@nod.at>
To: "Egli, Samuel" <samuel.egli@siemens.com>
Cc: "linux-mtd@lists.infradead.org" <linux-mtd@lists.infradead.org>
Subject: Re: autoresize causes insufficient reservation of PEBs for bad PEB handling
Date: Tue, 07 Jul 2015 13:04:44 +0200	[thread overview]
Message-ID: <559BB24C.5080205@nod.at> (raw)
In-Reply-To: <27E9275BC1C8554E840881B19B62BE421A92F3@DENBGAT9EI1MSX.ww902.siemens.net>

Am 07.07.2015 um 12:59 schrieb Egli, Samuel:
> Hello Richard,
>> Something I did not notice yesternight, 140+140+341 is 621.
>> According to your logs the MTD partition is only 508MiB large.
> 
> oops. Sorry, this is my mistake. We have to products with same 
> number of volumes and names but with different volume sizes.
> 
> The samples I linked on gist have vol_size for rootfs_a and 
> rootfs_b set to 70MiB. So when setting the 3rd vol_size to
> 341MiB I get like linked before from "ubinfo -a" the following:
> 
> ubi0
> Volumes count:                           3
> Logical eraseblock size:                 126976 bytes, 124.0 KiB
> Total amount of logical eraseblocks:     4065 (516157440 bytes, 492.2 MiB)
> Amount of available logical eraseblocks: 7 (888832 bytes, 868.0 KiB)
> Maximum count of volumes                 128
> Count of bad physical eraseblocks:       0
> Count of reserved physical eraseblocks:  80
> Current maximum erase counter value:     2
> Minimum input/output unit size:          2048 bytes
> Character device major/minor:            251:0
> Present volumes:                         0, 1, 2
>  
Richard Weinberger <richard.weinberger@gmail.com>> Volume ID:   0 (on ubi0)
> Type:        dynamic
> Alignment:   1
> Size:        579 LEBs (73519104 bytes, 70.1 MiB)
> State:       OK
> Name:        rootfs_a
> Character device major/minor: 251:1
> -----------------------------------
> Volume ID:   1 (on ubi0)
> Type:        dynamic
> Alignment:   1
> Size:        579 LEBs (73519104 bytes, 70.1 MiB)
> State:       OK
> Name:        rootfs_b
> Character device major/minor: 251:2
> -----------------------------------
> Volume ID:   2 (on ubi0)
> Type:        dynamic
> Alignment:   1
> Size:        2816 LEBs (357564416 bytes, 341.0 MiB)
> State:       OK
> Name:        configuration
> Character device major/minor: 251:3
> 
> So this is actually ok. I get my 80 blocks reserved.
> 
> Sorry for the confusion.

Okay. So there is no issue at all? :-)

Thanks,
//richard

  reply	other threads:[~2015-07-07 11:05 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-06 11:04 autoresize causes insufficient reservation of PEBs for bad PEB handling Egli, Samuel
2015-07-06 21:39 ` Richard Weinberger
2015-07-07  7:57   ` Egli, Samuel
2015-07-07 21:09     ` Richard Weinberger
2015-07-08  7:26       ` Egli, Samuel
2015-07-09 10:23       ` Egli, Samuel
2015-07-09 10:29         ` Richard Weinberger
2015-07-07 10:50 ` Richard Weinberger
2015-07-07 10:59   ` Egli, Samuel
2015-07-07 11:04     ` Richard Weinberger [this message]
2015-07-07 11:19       ` Egli, Samuel
2015-07-07 11:24         ` Richard Weinberger
2015-07-07 11:27           ` Egli, Samuel
2015-07-07 19:43             ` Richard Weinberger

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=559BB24C.5080205@nod.at \
    --to=richard@nod.at \
    --cc=linux-mtd@lists.infradead.org \
    --cc=samuel.egli@siemens.com \
    /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