• Artem Bityutskiy's avatar
    UBI: do not warn unnecessarily · 64d4b4c9
    Artem Bityutskiy authored
    Currently, when UBI attaches an MTD device and cannot reserve all 1% (by
    default) of PEBs for bad eraseblocks handling, it prints a warning. However,
    Matthew L. Creech <mlcreech@gmail.com> is not very happy to see this warning,
    because he did reserve enough of PEB at the beginning, but with time some
    PEBs became bad. The warning is not necessary in this case.
    
    This patch makes UBI print the warning
     o if this is a new image
     o of this is used image and the amount of reserved PEBs is only 10% (or less)
       of the size of the reserved PEB pool.
    Signed-off-by: default avatarArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
    64d4b4c9
eba.c 35.7 KB