android_kernel_google_msm/drivers/mtd/ubi
shengyong 127cf7cb2a UBI: return ENOSPC if no enough space available
commit 7c7feb2ebfc9c0552c51f0c050db1d1a004faac5 upstream.

UBI: attaching mtd1 to ubi0
UBI: scanning is finished
UBI error: init_volumes: not enough PEBs, required 706, available 686
UBI error: ubi_wl_init: no enough physical eraseblocks (-20, need 1)
UBI error: ubi_attach_mtd_dev: failed to attach mtd1, error -12 <= NOT ENOMEM
UBI error: ubi_init: cannot attach mtd1

If available PEBs are not enough when initializing volumes, return -ENOSPC
directly. If available PEBs are not enough when initializing WL, return
-ENOSPC instead of -ENOMEM.

Signed-off-by: Sheng Yong <shengyong1@huawei.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
Reviewed-by: David Gstir <david@sigma-star.at>
Signed-off-by: Zefan Li <lizefan@huawei.com>
2016-04-27 18:55:25 +08:00
..
build.c UBI: fix autoresize handling in R/O mode 2012-10-07 08:32:28 -07:00
cdev.c UBI: fix check for "too many bytes" 2015-09-18 09:20:25 +08:00
debug.c simple_open: automatically convert to simple_open() 2012-04-05 15:25:50 -07:00
debug.h UBI: fix debugging messages 2012-01-11 18:35:53 +02:00
eba.c UBI: fix out of bounds write 2015-09-18 09:20:25 +08:00
gluebi.c mtd: remove R/O checking duplication 2012-03-27 00:29:11 +01:00
io.c UBI: Validate data_size 2016-04-27 18:55:25 +08:00
kapi.c mtd: do not use mtd->sync directly 2012-01-09 18:26:21 +00:00
Kconfig
Makefile
misc.c UBI: fix soft lockup in ubi_check_volume() 2015-06-19 11:40:34 +08:00
scan.c UBI: erase free PEB with bitflip in EC header 2014-06-07 16:02:06 -07:00
scan.h
ubi-media.h
ubi.h UBI: rename MOVE_CANCEL_BITFLIPS to MOVE_TARGET_BITFLIPS 2012-03-09 10:31:18 +02:00
upd.c UBI: Fix invalid vfree() 2015-04-14 17:33:41 +08:00
vmt.c mtd: Add export.h for EXPORT_SYMBOL/THIS_MODULE where needed 2011-10-31 19:31:11 -04:00
vtbl.c UBI: return ENOSPC if no enough space available 2016-04-27 18:55:25 +08:00
wl.c UBI: return ENOSPC if no enough space available 2016-04-27 18:55:25 +08:00