Skip to content

LittleFS fails when block count is greater than block size #40453

@richesonk

Description

@richesonk

Describe the bug
When LittleFS is configured with block count greater than block_size, the filesystem will fail after some amount of time writing data to the file system. The error reported is "Corrupted dir pair"

To Reproduce

  1. Use a flash part with LittleFS that requires configuring block count > block size
  2. Set up repeated writes to the filesystem

Expected behavior
System should work without issue until the flash is worn out from the repeated writes

Impact
This is currently a show stopper for me. The project I am working on is a long term data logger so not being able to run for more than a few minutes is a major impact to our progress.

Logs and console output
I don't have the console output in front of me but can recreate and provide if needed

Environment (please complete the following information):

  • OS: Windows
  • Zephyr via Nordic NRF Connect
  • v2.6.0-rc1-ncs1

Additional context
This issue has already been resolved in the upstream littlefs repo (see the first bullet here littlefs-project/littlefs#487). Syncing to the latest release of littlefs will address this issue.

Metadata

Metadata

Labels

area: StorageStorage subsystembugThe issue is a bug, or the PR is fixing a bugpriority: lowLow impact/importance bug

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions