Whamcloud - gitweb
statmany error if one of "-els" isn't given
authorphil <phil>
Thu, 3 Jun 2004 15:12:00 +0000 (15:12 +0000)
committerphil <phil>
Thu, 3 Jun 2004 15:12:00 +0000 (15:12 +0000)
lustre/tests/statmany.c

index 7d4d2c9..9b18252 100644 (file)
@@ -88,6 +88,11 @@ int main(int argc, char ** argv)
                }
        }
 
+       if (mode == 0) {
+               fprintf(stderr, "one of '-l', '-e', or '-s' must be supplied.\n");
+               usage(prog, stderr);
+       }
+
        if (optind + 2 + (length == LONG_MAX) != argc) {
                fprintf(stderr, "missing filenamebase, total_files, or iterations\n");
                usage(prog, stderr);