Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: {Slightly O/T} Maximum file size on hard drive

Author: Robert Hyatt

Date: 20:14:03 12/13/03

Go up one level in this thread


On December 13, 2003 at 14:43:54, Darren Rushton wrote:

>Is it possible that a drive has a maximum file szie set?

Yes.  Standard C uses an int for the file offset, which means it can be
+/- 2 billion.  Creating a file larger than that requires a different API.
Both linux and windows have such an API, but you have to use it explictly,
since the normal lib calls fseek(), etc. expect that int argument.


>
>I have a 30GB hard drive onto which I'm trying to place the ChessLib opening
>book for Chessbase.
>
>Someone sent me the opening book in 10 Win RAR files which when I "unRAR" them
>are each 530MB in size.
>
>I then tried to combine them using a free program called "splits", but it
>refused to combine all 10, saying my max. file size for the drive is 4GB.

That is not exactly standard.  Normal C seek() calls let you seek from
the beginning forward, from the end backward, and from the current position
in either direction.  That means +/-2B is it.  4gb is outside that range...



>
>Not sure whether my ancient pc would handle trying to load a 5.3GByte opening
>book.
>
>Any expert feedback would be most appreciated.
>
>Regards,
>
>Daz



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.