From mboxrd@z Thu Jan 1 00:00:00 1970 From: Clarence Dang Subject: Re: Integer overflow in drive capacity Date: Sun, 10 Jun 2007 10:52:45 +1000 Message-ID: <200706101052.47752.clarencedang@yahoo.com> References: <20070602203044.a8c60ebe.theatre@melvilletheatre.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20070602203044.a8c60ebe.theatre@melvilletheatre.com> Content-Disposition: inline Sender: linux-msdos-owner@vger.kernel.org List-Id: Content-Type: text/plain; charset="us-ascii" To: Frank Cox Cc: linux-msdos@vger.kernel.org On Sunday 03 June 2007 12:30, Frank Cox wrote: > I remember that there used to be a TSR that would hide most of the space on > a large hard drive so programs that checked for free space with a > single-precision variable and the like won't overflow and say that there is > insufficient free space. Sorry, I don't know the answer to that one. > Second, would the capability to hide free disk space from DOS programs be a > good thing to add to DOSEMU natively, triggered by some sort of optional > directive? Probably. You can also get around the problem by storing your files on a loopback filesystem of an appropriate size (see the "losetup" command).