[erlang-questions] File size limits on file:write_file and file:write?

Ahmed Omar spawn.think@REDACTED
Wed May 4 13:45:56 CEST 2011


You wanted file:write_file/2 i guess

On Wed, May 4, 2011 at 1:45 PM, Ahmed Omar <spawn.think@REDACTED> wrote:

> file:write/2 , first argument is an io_device() not filename
> http://www.erlang.org/doc/man/file.html#write-2
>
>
> On Wed, May 4, 2011 at 1:19 PM, Dave Challis <dsc@REDACTED> wrote:
>
>> On 04/05/11 11:53, Carlo Bertoldi wrote:
>>
>>> On 04/05/2011 12:29, Dave Challis wrote:
>>>
>>>> I'm having trouble writing large binaries to disk using file:write or
>>>> file:write_file.
>>>>
>>>> If I shrink Data to less than 2Gb, the write operation works fine.
>>>>
>>>>  snip
>>>
>>>> Erlang is running in 64-bit mode, my erlang system info is:
>>>> Erlang R14B02 (erts-5.8.3) [source] [64-bit] [smp:8:8] [rq:8]
>>>> [async-threads:0] [hipe] [kernel-poll:false]
>>>>
>>>> Is there something I should be doing differently, or a compile time
>>>> option that I missed?
>>>>
>>>>  I believe you forgot to mention the underlying filesystem you're using.
>>> The 2GB limit reminds me of a FAT filesystem. Just my 2 cents.
>>>
>>
>> Ah, sorry.  I'm trying to write to an ext4 partition, running on 64-bit
>> Ubuntu.  I can create 10Gb+ files in the directory I'm trying to write to
>> using applications without a problem though.
>>
>> Thanks,
>>
>> --
>> Dave Challis
>> dsc@REDACTED
>> _______________________________________________
>> erlang-questions mailing list
>> erlang-questions@REDACTED
>> http://erlang.org/mailman/listinfo/erlang-questions
>>
>
>
>
> --
> Best Regards,
> - Ahmed Omar
> http://nl.linkedin.com/in/adiaa
> Follow me on twitter
> @spawn_think <http://twitter.com/#!/spawn_think>
>
>


-- 
Best Regards,
- Ahmed Omar
http://nl.linkedin.com/in/adiaa
Follow me on twitter
@spawn_think <http://twitter.com/#!/spawn_think>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20110504/1e8ad1f8/attachment.htm>


More information about the erlang-questions mailing list