lkml.org 
[lkml]   [2021]   [Jul]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] mtd: fix size in mtd_info_user to support 64-bit
From
Date
On 7/16/21 8:34 AM, Rob Landley wrote:
>> The only way is to create a second UAPI.
>
> Twelve years ago a patch was submitted to add a 64 bit MTD api:
>
> https://lwn.net/Articles/326418/
>
> But for some reason they only merged 64 bit erase:
>
> https://github.com/torvalds/linux/commit/0dc54e9f33e2
>
> But NOT the rest of the 64 bit mtd API in the same patch. I've never understood why.

That said, the workaround is to use the info api for erase size and use
lseek(SEEK_END) on the device to get the length.

Rob

\
 
 \ /
  Last update: 2021-07-22 19:14    [W:0.060 / U:0.736 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site