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

fix SPIFFS_readdir setting errno to SPIFFS_VIS_END at the end of iteration #288

Merged
merged 1 commit into from
Jun 1, 2022

Conversation

igrr
Copy link
Contributor

@igrr igrr commented Jun 1, 2022

When iteration finishes, spiffs_obj_lu_find_entry_visitor returns
SPIFFS_VIS_END. Previously, SPIFFS_readdir function used to set
errno to this internal error value when readdir reached the end.

Handle this case and add a check into the regression test.

(Original issue: esp-rs/rust#117 (comment))

When iteration finishes, spiffs_obj_lu_find_entry_visitor returns
SPIFFS_VIS_END. Previously, SPIFFS_readdir function used to set
errno to this internal error value when readdir reached the end.
Handle this case and add a check into the regression test.
@igrr
Copy link
Contributor Author

igrr commented Jun 1, 2022

@pellepl Do you have some time to review this one-liner fix? Thanks in advance!

@pellepl pellepl merged commit 0dbb3f7 into pellepl:master Jun 1, 2022
@pellepl
Copy link
Owner

pellepl commented Jun 1, 2022

Absolutely! Thanks

@igrr igrr deleted the bugfix/spiffs_readdir_errcode branch June 1, 2022 21:22
espressif-bot pushed a commit to espressif/esp-idf that referenced this pull request Jun 11, 2022
espressif-bot pushed a commit to espressif/esp-idf that referenced this pull request Jul 4, 2022
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