2 * Copyright (C) 2001 Cluster File Systems, Inc.
4 * This code is issued under the GNU General Public License.
5 * See the file COPYING in this distribution
14 #include <sys/types.h>
16 /* Beware when setting FSROOT that I've not made any attempts to avoid buffer
17 * overruns below--this is a test program, it's a static buffer. */
19 #define OBD_ITERATIONS 10000
21 int main (int argc, char * argv[])
27 printf("syntax: %s command\n", argv[0]);
28 printf("Where command is one of \"setup\" or \"create\".\n");
32 if (!strcmp(argv[1], "setup")) {
33 printf("This is silly.\n");
34 } else if (!strcmp(argv[1], "create")) {
38 printf("create requires a nonzero argument.\n");
45 printf("create requires a nonzero argument.\n");
48 printf("creating %d files...\n", iter);
50 for (i = 0; i < iter; i++) {
51 fd = creat(FSROOT "/foo123", S_IRWXU);
53 unlink(FSROOT "/foo123");
56 printf("Invalid command, run with no arguments for help.\n");