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

rmdir causes issues in SPIFFS. Fixes #4138, albeit not very cleanly #4154

Merged
merged 8 commits into from
Oct 1, 2020
Merged

rmdir causes issues in SPIFFS. Fixes #4138, albeit not very cleanly #4154

merged 8 commits into from
Oct 1, 2020

Conversation

lbernstone
Copy link
Contributor

SPIFFS causes crashes if you attempt to rmdir. Since there are no true directories in spiffs, this ought to be a noop. It looks like @me-no-dev worked around this by using unlink instead of rmdir, which works in fatfs and doesn't panic spiffs. This behavior is not universal. In order to get littlefs working, it would be good to get this back to conformity. Rather than digging deep into the upstream spiffs, I just check the mountpoint and noop if it is "/spiffs". So, if the user has changed the mountpoint, this will not work, but I think it's a pretty good tradeoff.

@me-no-dev me-no-dev merged commit 882b12c into espressif:master Oct 1, 2020
@lbernstone lbernstone deleted the SPIFFS_rmdir branch November 4, 2020 13:31
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