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

set file offset when seeking over end #121

Merged
merged 3 commits into from Dec 15, 2016
Merged

set file offset when seeking over end #121

merged 3 commits into from Dec 15, 2016

Conversation

sensslen
Copy link
Contributor

The proposed change sets the file offset to the file's end when the file size is smaller than the expected seek index. This allows to use seek to put the file location to a certain position or the end.

sensslen and others added 3 commits December 14, 2016 16:44
The proposed change sets the file offset to the file's end when the file size is smaller than the expected seek index. This allows to use seek to put the file location to a certain position or the end.
@sensslen
Copy link
Contributor Author

The last commit takes into account the changes done for fixing #120 (#122). The change sets the Position of the file to it's end or to the requested position in SPIFFS_lseek which to me is a quite close match to the posix behaviour

@pellepl
Copy link
Owner

pellepl commented Dec 15, 2016

Yes, I agree, makes sense. Thanks!

@pellepl pellepl merged commit 7f31842 into pellepl:master Dec 15, 2016
@sensslen sensslen deleted the patch-1 branch December 15, 2016 09:42
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.

None yet

2 participants