xiaoxiang781216 commented on PR #2913: URL: https://github.com/apache/nuttx/pull/2913#issuecomment-2775614932
> Any reason there isn't a sync in [`littlefs_truncate`](https://github.com/apache/nuttx/blob/90e9b2426d54682070b0fcc38ad5415bbf77f733/fs/littlefs/lfs_vfs.c#L929), good idea, patch is welcome. > then? The woraround for users like me is to open the file without `O_TRUNC` and then call `truncate` to ensure no commit. > but, the sync still need in open to ensure the truncate take effect immediately, but the sync could be called only when O_TRUNC is specified. -- 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