The /f option is used to validate an indexed file. If the file is corrupt, Rebuild returns a non-zero value.
c | Specifies the validation to be performed. The default is
10.
You can select a combination of checks 2 and 8 by adding the numbers together. The more checks you perform, the longer the validation takes. |
||||||||||||||||||||||||||||||
d | Specifies the message level.
These values are cumulative, so if you specify level 4, you will also receive messages at levels 1, 2 and 3. The default is 5. |
rebuild test.dat -f:c8
checks the structure of the index file.
rebuild test.dat -f:d1
specifies error messages only.
rebuild test.dat -f:c2d1
checks the structure of the FSL and specifies error messages only.
rebuild test.dat -f
Performs a full integrity check on a file, displaying all possible information. This is the same as specifying -f:c10.
Note: The display might end with the message:
File is corrupt
This means that the control information in the file is not consistent with the data. For example, a record may have been deleted but the list of deleted records does not include it. Such a file is reported as corrupt, even though the data itself is not corrupt.