X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Futils%2Fobd.c;h=f6a93487b92a3814290b1da535136aa52e5c1fb0;hp=f029e925647eff3a392d9f07f5e304adf3c86b4c;hb=fc55dd29cfaccbe925839ff665591c85313e3359;hpb=8633aaba2da245bc62b876e535e7ac26385e1385 diff --git a/lustre/utils/obd.c b/lustre/utils/obd.c index f029e92..f6a9348 100644 --- a/lustre/utils/obd.c +++ b/lustre/utils/obd.c @@ -3725,32 +3725,14 @@ int jt_nodemap_add_idmap(int argc, char **argv) char *idtype = NULL; int rc = 0; - static struct option long_options[] = { - { - .name = "name", - .has_arg = required_argument, - .flag = 0, - .val = 'n', - }, - { - .name = "idmap", - .has_arg = required_argument, - .flag = 0, - .val = 'm', - }, - { - .name = "idtype", - .has_arg = required_argument, - .flag = 0, - .val = 'i', - }, - { - NULL - } - }; + static struct option long_opts[] = { + { .val = 'i', .name = "idtype", .has_arg = required_argument }, + { .val = 'm', .name = "idmap", .has_arg = required_argument }, + { .val = 'n', .name = "name", .has_arg = required_argument }, + { .name = NULL } }; while ((c = getopt_long(argc, argv, "n:m:i:", - long_options, NULL)) != -1) { + long_opts, NULL)) != -1) { switch (c) { case 'n': nodemap_name = optarg;