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

Exposing spiffs_object_truncate() in FS API #3846

Closed
everslick opened this issue Nov 18, 2017 · 3 comments
Closed

Exposing spiffs_object_truncate() in FS API #3846

everslick opened this issue Nov 18, 2017 · 3 comments
Assignees
Milestone

Comments

@everslick
Copy link
Contributor

SPIFFS offers an function to truncate a file to a specific size. This is very useful, for rotating logfiles without going through a temp file as this needs additional space on the filesystem. Therefor I propose to expose

s32_t spiffs_object_truncate(
spiffs_fd *fd,
u32_t new_len,
u8_t remove_object);

which is defined in spiffs_nucleus.h through the FS API.

@kristianmitk
Copy link

kristianmitk commented Feb 24, 2018

+1

will this be added in the near future?

@earlephilhower earlephilhower self-assigned this Jan 17, 2019
@earlephilhower
Copy link
Collaborator

Simple enough to add to #5525

@earlephilhower earlephilhower added this to the 2.6.0 milestone Jan 22, 2019
earlephilhower added a commit to earlephilhower/Arduino that referenced this issue Jan 28, 2019
@everslick
Copy link
Contributor Author

@earlephilhower THX! That is very much appreciated!

This issue was closed.
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

No branches or pull requests

3 participants