Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Fix fs can't handle large file on 64bit platform #1199

Closed
wants to merge 3 commits into from
Closed

Fix fs can't handle large file on 64bit platform #1199

wants to merge 3 commits into from

Commits on Jun 18, 2011

  1. Fix fs can't handle large file on 64bit platform

    fs.read() and fs.write() can't handle more than 2GB files on 64bit platform.
    Also fs.truncate() can't handle more than 4GB files.
    
    Node already has the capability to handle large files.
    This patch changes only a parameter check (read/write) and
    type conversion from JS's number to C types (truncate).
    
    The testcase only works on 64bit platform, then I put it into test/disabled.
    koichik authored and koichik committed Jun 18, 2011
    Configuration menu
    Copy the full SHA
    59f2b7a View commit details
    Browse the repository at this point in the history
  2. Use _LARGEFILE_SOURCE instead of __USE_FILE_OFFSET64

    Thanks bnoordhuis (Ben Noordhuis)
    koichik authored and koichik committed Jun 18, 2011
    Configuration menu
    Copy the full SHA
    001fb2a View commit details
    Browse the repository at this point in the history

Commits on Jun 20, 2011

  1. Configuration menu
    Copy the full SHA
    114a31f View commit details
    Browse the repository at this point in the history