[erlang-patches] Fix appending to large files (>4GB) on Windows

Filipe David Manana fdmanana@REDACTED
Fri Oct 1 16:12:45 CEST 2010


Awesome.

Thanks a lot for the patch :)

2010/10/1 Björn Gustavsson <bgustavsson@REDACTED>:
> On Fri, Oct 1, 2010 at 6:24 AM, Juhani Ränkimies <juhani@REDACTED> wrote:
>> Append mode doesn't work for files larger that 4GB on Windows. The
>> problem occurs when the file is larger than 4GB at opening time. If
>> it's smaller at opening time, it can grow beyond 4GB.
>>
>> I suspect that passing NULL lpDistanceToMoveHigh to SetFilePointer in
>> the file driver causes moves larger that 2^32 to fail.
>> http://msdn.microsoft.com/EN-US/library/aa365541.aspx
>>
>> git fetch git://github.com/juranki/otp.git windows_file_append_2
>>
>
> Thanks! Included in pu.
>
> --
> Björn Gustavsson, Erlang/OTP, Ericsson AB
>
> ________________________________________________________________
> erlang-patches (at) erlang.org mailing list.
> See http://www.erlang.org/faq.html
> To unsubscribe; mailto:erlang-patches-unsubscribe@REDACTED
>
>



-- 
Filipe David Manana,
fdmanana@REDACTED, fdmanana@REDACTED

"Reasonable men adapt themselves to the world.
 Unreasonable men adapt the world to themselves.
 That's why all progress depends on unreasonable men."


More information about the erlang-patches mailing list