Bill Jonas on Fri, 21 Dec 2001 14:10:12 +0100 |
On Thu, Dec 20, 2001 at 01:15:21PM -0500, thanous@dca.net wrote: > [...] it works fine but will only write a 2 gig file to a hard drive The program is probably using a long to represent the filesize, which on a 32-bit machine, like x86, has ~4 billion possible values and runs from ~-2 billion to ~+2 billion. (It needs to be a signed variable rather than an unsigned variable so that failure can be indicated. Files can't have a negative size, so an error condition (or end of file) is noted by a negative number.) The best you can do (without asking the company to modify the program) is to try to work around it. Perhaps there's an option to use more than one output file, specifying the size of each, or an option to send the data to standard output, which you can then redirect to a file. (Recent versions of glibc have fixed the problem, so it's no longer a libc limitation, but an application limitation. In this case, if you need to restore, you would have the program read its standard input and redirect that from the file.) -- Bill Jonas * bill@billjonas.com * http://www.billjonas.com/ Developer/SysAdmin for hire! See http://www.billjonas.com/resume.html Attachment:
pgpOt2ww4LPqx.pgp
|
|