From: Paul Crawford <psc@sat.dundee.ac.uk>
To: Xavier Tarifa <Xavier.Tarifa@adparts.com>
Cc: "linux-msdos@vger.kernel.org" <linux-msdos@vger.kernel.org>
Subject: Re: File Limits
Date: Tue, 18 Jan 2011 15:12:53 +0000 [thread overview]
Message-ID: <4D35ADF5.3080403@sat.dundee.ac.uk> (raw)
In-Reply-To: <C3F2A57885AE56449A4268E90F4AA4BD75FF089E@ADPARTS-EXC.adparts.com>
Dear Xavier,
Traditionally most UNIX / C language applications used a 32-bit signed
integer for file offset operations, hence the 2GB limit. This applied
even to DOS 16-bit applications as they also supported 32-bit 'long'
integers by special arithmetic.
You can get 32-bit applications that support >2GB because they are using
special arithmetic to implement 64-bit offsets, but that is of course
the 'natural' size for 64-bit applications.
At the time this was started 2GB was huge! When DOS was first available
in the early 1980s you could only get 10MB or so HDD. It was only around
1995 that you could get a consumer product HDD with 2GB capacity, let
alone consider single files of greater than this. And now my PC has 8GB
of memory!
Even today, the likes of fat32 has the problem that a large file (e.g.
video or backup archive, etc) can cause a write error if it exceeds 4GB.
Regards,
Paul
On 18/01/11 14:16, Xavier Tarifa wrote:
>> The standard limits for 32-bit Linux programs is 2GB per file, even
>> though ext3 allows much, much more total space (and file size).
>
>> Have you tried using a 64-bit Linux and matching dosemu version?
>
> You're right, a 64-bits linux does work. I would have never thought
> that there was such a low limitation, though. It's the first program
> I can think of that I've found problems with big files (but the only
> other big files that I've used are mainly backups and vídeos so not a
> lot of apps involved).
>
> Thanks a lot, that would have been probably the last reason I would
> think of.
--
Dr. Paul S. Crawford
Satellite Station
Dundee University
Small's Wynd, Dundee,
DD1 4HN, U.K.
Tel: +44 (0)1382 38 4687
Email: psc@sat.dundee.ac.uk
The University of Dundee is a Scottish Registered Charity, No. SC015096
--
To unsubscribe from this list: send the line "unsubscribe linux-msdos" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2011-01-18 15:12 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-18 8:55 File Limits Xavier Tarifa
2011-01-18 8:54 ` Paul Crawford
2011-01-18 14:16 ` Xavier Tarifa
2011-01-18 15:12 ` Paul Crawford [this message]
2011-01-18 15:48 ` Bryan J Smith
2011-01-18 16:39 ` Bryan J Smith
2011-01-18 17:35 ` Bryan J Smith
2011-01-18 18:10 ` Xavier Tarifa
2011-01-18 19:18 ` Bryan J Smith
2011-01-20 11:02 ` Xavier Tarifa
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4D35ADF5.3080403@sat.dundee.ac.uk \
--to=psc@sat.dundee.ac.uk \
--cc=Xavier.Tarifa@adparts.com \
--cc=linux-msdos@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.