[riot-notifications] [RIOT-OS/RIOT] mtd: Change API to return 0 on success (#13896)

benpicco notifications at github.com
Fri May 8 23:18:07 CEST 2020


I do realize now that it *does* make sense for the low-level component to return the number of bytes written if the upper (MTD) layer handles this.

E.g. if `write()` would write beyond a page, it should only write as many bytes as it could and report that to the MTD layer which would then write the next chunk on the new page.

But instead it would return `-EOVERFLOW` - that is not helpful.

I'm now re-introducing an API to return the actual number of written bytes, but also use page-wise addressing to being able to write to media > 4GiB in size.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/13896#issuecomment-626024735
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20200508/da625e7a/attachment.htm>


More information about the notifications mailing list