Free Disk Necessary To Retructure A File
Bob Stockler
bob at trebor.iglou.com
Mon Jul 28 15:01:53 PDT 2008
Ken Brody wrote (on Mon, Jul 28, 2008 at 04:35:53PM -0400):
| 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.)
Well, if anyone still uses a data segement, the same apply to it.
It would result in the data segment being perhaps a few bytes longer.
It all depends on whether there was, or was not, a data segement,
and where the fields being shortened or eliminated existed.
I can envision this being used much more (if at all, ever) anyway.
Bob
| >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
--
Bob Stockler +-+ bob at trebor.iglou.com +-+ http://members.iglou.com/trebor
More information about the Filepro-list
mailing list