Messages in this thread | | | Subject | Re: [PATCH 4/4] UBI: replace MTD_UBI_BEB_LIMIT with user-space parameter | From | Artem Bityutskiy <> | Date | Wed, 15 Aug 2012 17:57:19 +0300 |
| |
On Tue, 2012-07-10 at 18:23 +0200, Richard Genoud wrote: > This patch provides the possibility to adjust the "maximum expected number of > bad blocks per 1024 blocks" (max_beb_per1024) for each mtd device. > > The majority of NAND devices have their max_beb_per1024 equal to 20, but > sometimes it's more. > Now, we can adjust that via a kernel parameter: > ubi.mtd=<name|num|path>[,<vid_hdr_offs>[,max_beb_per1024]] > and via UBI_IOCATT ioctl which is now: > struct ubi_attach_req { > __s32 ubi_num; > __s32 mtd_num; > __s32 vid_hdr_offset; > __u8 max_beb_per1024; > __s8 padding[11]; > }; > > Signed-off-by: Richard Genoud <richard.genoud@gmail.com>
Would you please split this patch on 2 - first adds the kernel module parameter, the second changes the ioctl.
-- Best Regards, Artem Bityutskiy [unhandled content-type:application/pgp-signature] | |