UBI: set correct gluebi device size
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Sat, 5 May 2007 13:33:13 +0000 (16:33 +0300)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Wed, 18 Jul 2007 13:52:51 +0000 (16:52 +0300)
commit941dfb07ed91451b1c58626a0d258dfdf468b593
treeddee58cc8960994237c83c852227a301dfc8378e
parent4ab60a0d7c92cab16f7e470f80ea039a0b174bce
UBI: set correct gluebi device size

In case of static volumes, make emulated MTD device size to
be equivalent to data size, rather then volume size.

Reported-by: John Smith <john@arrows.demon.co.uk>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
drivers/mtd/ubi/cdev.c
drivers/mtd/ubi/gluebi.c
drivers/mtd/ubi/scan.c
drivers/mtd/ubi/ubi.h