SPRESENSE opened a new pull request #5257: URL: https://github.com/apache/incubator-nuttx/pull/5257
## Summary If a existing file is opened with truncate mode e.g. fopen(file, "w+"), the file size will be incorrect after writing any data to the file. Before writing to the first sector, the reading is performed again. As a result, it makes an invalid file size. When a sector buffer is used, it must also write to the first sector. The previous commit is wrong, so it is reverted, and a new commit is added. ## Impact SmartFS when CONFIG_SMARTFS_USE_SECTOR_BUFFER is enabled ## Testing Use spresense:usbnsh defconfig which enables SmartFS and CONFIG_SMARTFS_USE_SECTOR_BUFFER. Test that appending to an existing file that is less than one sector will not break the file. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
