I have written a program make_tree.c it is located in
.../testcases/network/nfs/nfsstress. This program spawns N threads and
created M number of directories, populates each directory with O number
of ".c" and "makefile", compiles them and removes the executables, ".c"
and makefiles and directories. This test could be used to test file
systems too without any modifications, make_tree runs as a stand alone
program too. Documentation in the source explains the test in detail.
Let me know what you think....