Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0007522 [Squeak] OS-Linux minor always 05-01-10 21:02 10-14-14 23:16
Reporter Hans-Martin View Status public  
Assigned To lewis
Priority normal Resolution fixed  
Status closed   Product Version 4.1
Summary 0007522: File and directory primitives don't work with files > 2GB
Description The functions in sqUnixFile.c apparently use the stat() function which returns an error EOVERFLOW when applied to files larger than 2GB. This makes working with large files impossible.
Additional Information
Attached Files

- Relationships

- Notes
(0014217 - 381 - 441 - 441 - 441 - 441 - 441)
Nicolai Hess
03-18-12 20:31

For the 32Bit unix VM,
primitiveDirectoryLookup and primitiveFileSize doesn't work with files larger than
2^32 bits.
Possible workaround/fix.
Build with -D_FILE_OFFSET_BITS=64
and replace ftell,fseek in sqFilePluginBasicPrims with ftello,fseeko.
Now reading filesize for files larger than 2^32 bits works, but I don't know if
there are any side effects.

regards
Nicolai
 
(0014517 - 67 - 82 - 82 - 82 - 82 - 82)
Nicolai Hess
10-14-14 19:30

works in squeak 4.5
latest update: #13680
-> issue can be closed
 
(0014518 - 90 - 96 - 96 - 96 - 96 - 96)
lewis
10-14-14 23:16

As noted, this is a VM compile time option for large file support.
-D_FILE_OFFSET_BITS=64
 

- Issue History
Date Modified Username Field Change
05-01-10 21:02 Hans-Martin New Issue
07-24-11 14:53 lewis Status new => assigned
07-24-11 14:53 lewis Assigned To  => lewis
03-18-12 20:31 Nicolai Hess Note Added: 0014217
06-13-12 11:21 lewis Assigned To lewis =>
09-01-12 21:47 lewis Assigned To  => lewis
10-14-14 19:30 Nicolai Hess Note Added: 0014517
10-14-14 23:16 lewis Status assigned => closed
10-14-14 23:16 lewis Note Added: 0014518
10-14-14 23:16 lewis Resolution open => fixed


Mantis 1.0.8[^]
Copyright © 2000 - 2007 Mantis Group
48 total queries executed.
36 unique queries executed.
Powered by Mantis Bugtracker