Re: [PATCH RFC] mtd: ubi: Add fastmap sysfs attribute
From: Richard Weinberger
Date: Fri Jun 28 2019 - 02:48:34 EST
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