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

Free space of overwritten files in LittleFS #7434

Merged
merged 3 commits into from
Jul 8, 2020

Commits on Jul 7, 2020

  1. Free space of overwritten files in LittleFS

    Fixes esp8266#7426
    
    LittleFS doesn't update the on-flash data structures when a file is
    reopened as O_TRUNC until the file is closed.  This means the space of
    the original, inaccessible file cannot be used, causing OOS errors in
    cases when a large file is being overwritten.
    
    Explicitly call the file sync operation to update the on-flash metadata
    as soon as a file is opened.  For normal files it's a no-op, but for
    O_TRUNC modes it will free the space, allowing full overwrite of large
    files.
    earlephilhower committed Jul 7, 2020
    Configuration menu
    Copy the full SHA
    a9302bc View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b72df9f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a7c2839 View commit details
    Browse the repository at this point in the history