Skip to content

fs.ftruncate cannot truncate to lengths > 2GB #20844

@animetosho

Description

@animetosho
  • Version: 10.x
  • Platform: all
  • Subsystem: fs

fs.ftruncate, in Node 10, attempts to do some length checking, which I don't recall being present in earlier versions of Node (v6 I think?). As somewhat alluded to in the comment there, this breaks any attempt to truncate (or allocate, in my particular case) a file to more than 2GB.

Metadata

Metadata

Assignees

No one assigned

    Labels

    confirmed-bugIssues with confirmed bugs.fsIssues and PRs related to the fs subsystem / file system.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions