[PATCH 7/8] UBI: add ioctl for max_beb_per1024

Richard Genoud richard.genoud at gmail.com
Mon Aug 20 05:05:05 EDT 2012


2012/8/17 Richard Genoud <richard.genoud at gmail.com>:
> + * The accepted range is 0-255. If 0 is given, the default kernel config value
> + * CONFIG_MTD_UBI_BEB_LIMIT will be used for compatibility.
>   */
>  struct ubi_attach_req {
>         __s32 ubi_num;
>         __s32 mtd_num;
>         __s32 vid_hdr_offset;
> -       __s8 padding[12];
> +       __u8 max_beb_per1024;
> +       __s8 padding[11];
>  };
>
So if I use __u16 instead of __u8, what should be the upper limit ?
1024 ? (1024 is nonsense, but why not...)

Regards,
Richard


-- 
for me, ck means con kolivas and not calvin klein... does it mean I'm a geek ?



More information about the linux-mtd mailing list