ischeckvarlen

check the varlen storage of an ISAM file

SYNOPSIS

int ischeckvarlen( int isfd, struct isVarStat * stats );

isfd isam file identifier
stats variable length statistics structure, defined in ischeck.h, or NULL to ignore same.

RETURN

SUCCESS, or a negative value on error, in which case the error code is found in iserrno.

NOTES

this routine checks the variable length storage system for errors, and will return a value with the following bits set in accordance with it's findings:

IC_VLMISFILE 12 node misfiled in hash table
IC_VLHASHLINK 13 mangled link in hash list
IC_VLMISSING 14 nodes missing or unaccounted
IC_VLBADDATA 15 data length mismatch

it will also optionally load the following fields in stats:

hashcount number of nodes held in hashtable
hashspace total bytes free space in same
fullcount number of nodes not in hashtable
fullspace total (unusable) space in same
filecount total number of storage nodes in use
filespace total free space for the file