spiffs icon indicating copy to clipboard operation
spiffs copied to clipboard

Add O_OVERWRITE flag

Open pellepl opened this issue 8 years ago • 0 comments

This flag will allow overwriting data of a file without page reallocation. Thus, it can only be used to pull bits in a file from one to zero. Usable for clearing sensitive data. Writes on a file opened by O_OVERWRITE is only allowed within existing file size. Hence, O_APPEND or O_TRUNC cannot be used together with O_OVERWRITE. See #135.

pellepl avatar Mar 15 '17 19:03 pellepl