liamHowatt commented on PR #2913: URL: https://github.com/apache/nuttx/pull/2913#issuecomment-2774961465
Any reason there isn't a sync in [`littlefs_truncate`](https://github.com/apache/nuttx/blob/90e9b2426d54682070b0fcc38ad5415bbf77f733/fs/littlefs/lfs_vfs.c#L929), then? The woraround for users like me is to open the file without `O_TRUNC` and then call `truncate` to ensure no commit. In the [littlefs readme](https://github.com/littlefs-project/littlefs#example) they talk a lot about not committing changes until sync or close is explicitly called. > file updates are not actually committed to the filesystem until sync or close is called on 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: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org