Free Disk Necessary To Retructure A File

Kenneth Brody kenbrody at bestweb.net
Mon Jul 28 13:35:53 PDT 2008


Quoting Bob Stockler (Mon, 28 Jul 2008 16:02:28 -0400):

> Ken Brody wrote (on Mon, Jul 28, 2008 at 10:25:14AM -0400):
[...]
> | So, going from 400MB to 410MB needs 10MB free space, but going from 400MB
> | to 390MB needs 390MB.  (This is why you are given the option of not doing
> | the actual shrink.)  This is because not all systems on which filePro runs
> | have the ability to truncate a file.
>
> Could not the shrinking filePro program have been written to
> write the shortened records starting at the beginning of the
> existing key file, then write free records to the balance of
> the space occupied by the file?  This would result, according
> to how much the records were being shortened, in it being just
> a few bytes larger than it originally was.

What about all the records that will also be added to the other segment?
(ie: the data segment if modifying fields in key.)

> If it's imperative that the file be truncated, most systems
> support Perl, and it can then be used to do it.

Well, many systems filePro runs on now support the ability to truncate
files.  That has not always been the case.

-- 
Read the truth behind the movie "Expelled" at <http://www.ExpelledExposed.com>
--
KenBrody at BestWeb dot net        spamtrap: <g8ymh8uf001 at sneakemail.com>
http://www.hvcomputer.com
http://www.fileProPlus.com


More information about the Filepro-list mailing list