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

Björn Gustavsson bgustavsson@REDACTED
Fri Oct 1 15:07:47 CEST 2010


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


More information about the erlang-patches mailing list