Re: [PATCH RFC] mtd: ubi: Add fastmap sysfs attribute

2019-06-28 Thread Richard Weinberger
Zhihao Cheng, - Ursprüngliche Mail - > + else if (attr == _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.

[PATCH RFC] mtd: ubi: Add fastmap sysfs attribute

2019-06-28 Thread Zhihao Cheng
The UBI device can be attached to a MTD device via fastmap by set CONFIG_MTD_UBI_FASTMAP to 'y' (If there already exists a fastmap on the UBI device). To support some debugging scenarios, attaching process by fastmap can be confirmed in dmesg. If the UBI device is attached by fastmap, logs like

[PATCH RFC] mtd: ubi: Add fastmap sysfs attribute

2019-06-27 Thread Zhihao
From: Zhihao Cheng The UBI device can be attached to a MTD device via fastmap by set CONFIG_MTD_UBI_FASTMAP to 'y' (If there already exists a fastmap on the UBI device). To support some debugging scenarios, attaching process by fastmap can be confirmed in dmesg. If the UBI device is attached by