Re: [PATCH 4/4] UBI: replace MTD_UBI_BEB_LIMIT with user-spaceparameter

From: Artem Bityutskiy
Date: Wed Aug 15 2012 - 10:52:44 EST


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@xxxxxxxxx>

Would you please split this patch on 2 - first adds the kernel module
parameter, the second changes the ioctl.

--
Best Regards,
Artem Bityutskiy

Attachment: signature.asc
Description: This is a digitally signed message part