Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

filemtd supports Nand-like file systems #12084

Merged
merged 2 commits into from
Apr 7, 2024

Conversation

crafcat7
Copy link
Contributor

@crafcat7 crafcat7 commented Apr 7, 2024

Summary

  1. filemtd adds markbad and isbad interfaces (dummy) to support nandflash file systems (like Yaffs).
  2. The return value of the "file_erase" interface is changed to erase nblocks

Impact

filemtd extension

Testing

I used Yaffs as the test file system, which can now be mounted on a file through filemtd

…nandflash earse

Nand_erase return result should be the number of blocks that were successfully erased in NuttX

Signed-off-by: chenrun1 <chenrun1@xiaomi.com>
In this change, we can mount a filesystem on filemtd that works like Yaffs and works on the Nand driver

Signed-off-by: chenrun1 <chenrun1@xiaomi.com>
@xiaoxiang781216 xiaoxiang781216 merged commit d19486e into apache:master Apr 7, 2024
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants