[PATCH 3/3] kernel32: Added support for MOVEFILE_WRITE_THROUGH in MoveFileWithProgress

George Gonzalez ggonzalez at codeweavers.com
Wed Feb 7 13:39:04 CST 2018


Maybe fsync()?



See: 
http://blog.httrack.com/blog/2013/11/15/everything-you-always-wanted-to-know-about-fsync/


sync() is still a couple levels up from where things REALLY get written 
and buffers released.  According to the Internet sync() just schedules 
writes sometime soon.


On 02/07/2018 01:26 PM, Alexandre Julliard wrote:
> Oded Elisha <oded123456 at gmail.com> writes:
>
>> @@ -1404,6 +1406,10 @@ BOOL WINAPI MoveFileWithProgressW( LPCWSTR
>> source, LPCWSTR dest, } }
>>   
>> +    if (should_sync) {
>> +        sync();
>> +    }
>> +
> That's not the right way to flush a file. You probably want something
> like FlushFileBuffers.
>




More information about the wine-devel mailing list