X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Ftests%2Fstatmany.c;h=476aed9c73fc49fb5c050ba0601d12da45aa1e3a;hb=d037b8032573a02ce6d67134296ce45c0471f359;hp=9b182523cfcfda3196a60c1c9970c3856fb6dcd5;hpb=b979e388f954d0cc4b822e1a031fb00ac2b7c897;p=fs%2Flustre-release.git diff --git a/lustre/tests/statmany.c b/lustre/tests/statmany.c index 9b18252..476aed9 100644 --- a/lustre/tests/statmany.c +++ b/lustre/tests/statmany.c @@ -11,12 +11,9 @@ #include #include -#if 0 -#include -#endif #include -#include -#include +#include +#include struct option longopts[] = { {"ea", 0, 0, 'e'}, @@ -44,10 +41,10 @@ static int usage(char *prog, FILE *out) int main(int argc, char ** argv) { - long i, count, iter = LONG_MAX, mode = 0, offset; + long i, c, count, iter = LONG_MAX, mode = 0, offset; long int start, length = LONG_MAX, last, rc = 0; char parent[4096], *t; - char c, *prog = argv[0], *base; + char *prog = argv[0], *base; int seed = 0; int fd = -1; @@ -88,11 +85,6 @@ 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); @@ -158,7 +150,7 @@ int main(int argc, char ** argv) strerror(errno)); break; } - rc = ioctl(fd, EXTN_IOC_GETEA, NULL); + rc = ioctl(fd, LDISKFS_IOC_GETEA, NULL); if (rc < 0) { printf("ioctl(%s) error: %s\n", filename, strerror(errno));