9 /* Beware when setting FSROOT that I've not made any attempts to avoid buffer
10 * overruns below--this is a test program, it's a static buffer. */
12 #define OBD_ITERATIONS 10000
14 int main (int argc, char * argv[])
20 printf("syntax: %s command\n", argv[0]);
21 printf("Where command is one of \"setup\" or \"create\".\n");
25 if (!strcmp(argv[1], "setup")) {
26 printf("This is silly.\n");
27 } else if (!strcmp(argv[1], "create")) {
31 printf("create requires a nonzero argument.\n");
38 printf("create requires a nonzero argument.\n");
41 printf("creating %d files...\n", iter);
43 for (i = 0; i < iter; i++) {
44 fd = creat(FSROOT "/foo123", S_IRWXU);
46 unlink(FSROOT "/foo123");
49 printf("Invalid command, run with no arguments for help.\n");