Bug 71507
Summary: | Files larger than 2Gb not supported | ||||||
---|---|---|---|---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Toralf <bugzilla> | ||||
Component: | libtiff | Assignee: | Phil Knirsch <pknirsch> | ||||
Status: | CLOSED RAWHIDE | QA Contact: | |||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 7.2 | CC: | rvokal | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | i386 | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2002-08-19 09:18:57 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Toralf
2002-08-14 15:17:19 UTC
Created attachment 70784 [details]
Enable 64-bit I/O
Attached patch should fix this problem. I have created, then viewed a 2.6Gb (32000 by 28000 pixels RGB) file with this code. Notes: 1. _LARGEFILE64_SOURCE (which in turn defines __USE_LARGEFILE64) + O_LARGEFILE was not enough; write appeared to be successful with these, but the resulting file was not valid. Instead, full(er) 64-bit support had to be enabled via #define _FILE_OFFSET_BITS 64 Hopefully, this won't hurt performance too much. 2. tiffdump still won't handle >2Gb files as it uses direct (signed 32-bit) open() rather than (now 64-bit) libtiff functions. Of course, it could easlily be updated in a similar manner. 3. I'm right now trying to find out what happens when the 4Gb limit is reached. Wow, thanks for the detailed report and fix. I'll certainly include it in the next libtiff build i'm doing. Read ya, Phil OK, latest rawhide version of libtiff contains your fix. Thanks again, Read ya, Phil Good. Thanks for the quick response! |