linguini1 commented on issue #15840: URL: https://github.com/apache/nuttx/issues/15840#issuecomment-2660237180
> how about `fsync(fileno(fp))`? Thank you! I think this should solve my issue! However, my other question I am still wondering about: when during normal file operations can I expect the file to be synced to the "disk" (in this case SD card)? Regular `fopen`, `fwrite`, `fclose` sequence still leaves a completely blank log file. Surely `fclose` should trigger a synchronization to make sure no information is lost. How come after running `fwrite` for many iterations there is still no file contents actually written to the card? -- 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