UBI: add max_beb_per1024 to attach ioctl
authorRichard Genoud <richard.genoud@gmail.com>
Mon, 20 Aug 2012 16:00:15 +0000 (18:00 +0200)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Tue, 4 Sep 2012 06:39:01 +0000 (09:39 +0300)
commitdb7e21c21f293d52f5363fe8d9ee91d6bd0a503a
tree8d2ac3f6988dabc4cd418f3ff08385972204a753
parentedac493dfb48fe46d43fe6afabb8cfb2d1d4c048
UBI: add max_beb_per1024 to attach ioctl

This patch provides a possibility to set the "maximum expected number of
bad blocks per 1024 blocks" (max_beb_per1024) for each mtd device using
the UBI_IOCATT ioctl.

Signed-off-by: Richard Genoud <richard.genoud@gmail.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
drivers/mtd/ubi/Kconfig
drivers/mtd/ubi/cdev.c
include/mtd/ubi-user.h