lkml.org 
[lkml]   [2019]   [Jun]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH RFC] mtd: ubi: Add fastmap sysfs attribute
Zhihao Cheng,

----- Ursprüngliche Mail -----
> + else if (attr == &dev_fastmap)
> + ret = sprintf(buf, "%d\n", ubi->fm ? 1 : 0);
> else

I fear this is not correct. ubi->fm is an internal data structure
of UBI.
UBI sets it to NULL while it updates fastmap, and updates it later.
So userspace would see false negatives.

Thanks,
//richard

\
 
 \ /
  Last update: 2019-06-28 08:49    [W:0.145 / U:0.588 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site