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

Update littlefs from 2.4.0 -> 2.9.3 #2777

Merged
merged 1 commit into from
May 27, 2024

Conversation

mikee47
Copy link
Contributor

@mikee47 mikee47 commented May 27, 2024

This PR updates the Sming-LittleFS library, which implements IFS for the littlefs file system.

The library still uses a fork of littlefs because it adds attribute enumeration support - see upstream PR request. This has now been rebased on version 2.9.3 - see releases for details of all the changes. Here's a (non-exhaustive) summary:

  • Improved RAM usage
  • Improved performance
  • v2.5.0 removed all recursion
  • v2.6.0 bump the on-disk minor version of littlefs from lfs2.0 -> lfs2.1. "This change is backwards-compatible, but after the first write with the new version, the image on disk will no longer be mountable by older versions of littlefs."
  • v2.7.0 Add lfs_fs_stat as an analog for the POSIX stavfs. This isn't currently used by Sming-LittleFS.
  • v2.9.0 rename now returns LFS_ERR_NOTDIR if the source is a regular file and the destination is a directory. This better aligns with POSIX.

There are no functional changes to the library, but the samples have been simplified. An additional sample has been added to assess wear levelling behaviour (as a result of discussion #2771).

Copy link

what-the-diff bot commented May 27, 2024

PR Summary

  • Updated LittleFS Submodule
    The LittleFS component, a key module in our system, has been updated to a more recent version. This update will enhance the performance and reliability of our software by incorporating the latest improvements and fixes from the LittleFS project.

@slaff slaff added this to the 5.2.0 milestone May 27, 2024
@slaff slaff merged commit 2d3d267 into SmingHub:develop May 27, 2024
46 checks passed
@mikee47 mikee47 deleted the feature/littlefs-2.9.3 branch May 27, 2024 09:36
@slaff slaff mentioned this pull request Jul 4, 2024
5 tasks
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