#include <getopt.h>
#undef _GNU_SOURCE
+#include <liblustre.h>
#include <linux/lustre_mds.h>
static void usage(char *argv0, int status)
int main(int argc, char **argv)
{
- int fd, rc, c, cmd = 0;
+ int fd = 0;
+ int rc = 0;
+ int c = 0;
+ long cmd = 0;
unsigned long arg;
- char *short_opts = "h", *name;
+ char *short_opts = "h", *name = argv[0];
static struct option long_opts[] = {
#define OPT_GETATTR -2
{"getattr", no_argument, NULL, OPT_GETATTR},
break;
case '?':
usage(argv[0], 1);
- break;
}
} while (c != -1);