xiaoxiang781216 commented on PR #2913: URL: https://github.com/apache/nuttx/pull/2913#issuecomment-2774411385
> > > @xiaoxiang781216 can you explain > > > > > > * why O_TRUNC should be immediately committed > > > > > > If the storage is near exhausted, the next write will fail without commit. > > is it a problem? how? > for example, if the origin file has 6MB, if the caller open the file with O_TRUNC, he expect 6MB bytes could be written into storage, but fs report -ENOSPC soon. -- 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