Libstress that may be used to stess things (not only filsystems) (grabbed from a subdirectory of gstressfs project in gna!)
CGPL-2.0
libstress
This is an old project that should define a basic framework to do some stress tests. As of now there is only a little skeleton that may give you the basic idea but everything has to be written !