kempniu / yafut

Yet Another File UTility
GNU General Public License v2.0
4 stars 3 forks source link

Support operating on regular files #18

Closed kempniu closed 6 months ago

kempniu commented 6 months ago

Yafut is currently only able to operate on MTD character devices representing NAND or NOR flash. This stems from the fact that it relies on various ioctls exposed by MTD character devices for carrying out the actions requested by Yaffs code.

However, Yafut reads/writes data from/to NOR flash using pread() and pwrite(), which can also be used for reading from/writing to regular files, and the remaining Yaffs driver callbacks can either be no-ops for regular files or they can be extended with non-ioctl-based counterparts of the existing callbacks.