lkml.org 
[lkml]   [1997]   [Nov]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Filesize limitation


On Mon, 3 Nov 1997, Richard B. Johnson wrote:

-> Don't see how....
->
-> #include <stdio.h>
->
-> main()
-> {
-> long foo = 0x07fffffff; /* Largest signed 32-bit */
-> printf("%ld bytes \n", foo);
-> foo /= 1024;
-> printf("%ld kilobytes\n", foo);
-> foo /= 1024;
-> printf("%ld megabytes\n", foo);
-> }
->
-> 2147483647 bytes
-> 2097151 kilobytes
-> 2047 megabytes
->
-> As you can see, 2 Gb fits fine. ssize_t is a 32-bit (long) int under
-> Linux.

I didn't say it correctly the first time. The file I was
reported as having problems being created was slightly larger than 2GB.
That file is generated every month and every month it gets bigger and
bigger. In about 6 months it will probably not fit into 4 GB either.

With 9GB disks being that cheap I expect to see people putting
larger and larger files into them.

Does anyone know of a workaround? My suggestion was to split the
files. But sometimes that's simply not possible.

Regards
Andre




\
 
 \ /
  Last update: 2005-03-22 13:40    [W:0.052 / U:0.368 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site