Cannot open files larger than 2GiB with a message "errno:27[File too large]". How to open the file?

Solution Verified - Updated -

Issue

  • In my system, vi editor can open files larger then 2GiB but my application could not open it with an error message:

    errno:27[File too large]
    
  • What is the reason? How to open the files?

Environment

  • Red Hat Enterprise Linux all x86 versions

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content