]> www.infradead.org Git - mtd-utils.git/commit
ubinize: fix static volumes generation
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Mon, 28 Jul 2008 09:52:24 +0000 (12:52 +0300)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Mon, 28 Jul 2008 09:55:57 +0000 (12:55 +0300)
commit0b2b9c506739c15ec4d31b0a1f74ed583a5e6134
treee7000a8c046ae081e5785625b5a5a6624cba9c26
parent487550498f70455f083cdc82b65442596fe7308e
ubinize: fix static volumes generation

When static volumes is generated, the 'used_ebs' field of VID
header has to be calculated based on image file size, not on
the volume size. Fix this.

This patch also improves error reporting a little and re-arrages
the code so that all the validation is done in 'read_section()'

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
ubi-utils/new-utils/src/ubinize.c