NicolasDenoyelle commented on issue #39967:
URL: https://github.com/apache/arrow/issues/39967#issuecomment-1934265651

   > * we want to call out that this would synchronize the file data, not 
necessary its directory metadata (which on some filesystems /OSes at least 
would require a different system call?)
   
   My understanding of `fsync()` man page is that you have to also call it on 
the directory.
   
   > As well as flushing the file data, fsync() also flushes the metadata 
information associated with the file (see inode(7)).
   Calling fsync() does not necessarily ensure that the entry in the directory 
containing the file has also reached disk.  For that an explicit fsync() on a 
file descriptor for the directory is also needed.
   
   Either way, maybe you could add the details of what is used under the hood 
for each implementation?


-- 
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]

Reply via email to