Imitates using network file systems under high load. Can be used in 2 ways:
-
Compile to shared library, load with
LD_PRELOAD. Control withREADFLT_PRECENTAGEenvironment variable. 0 = no faults, >99 = all faults -
For more fine grained config:
#includeinto 1 of the sources. Control usingReadFltglobal structure:
int percentage - faults per 100 calls
int truncPercentage - random EOFs per 100 remaining calls
char *prefix - if not NULL, only mess with paths starting with this