+
+ while ((c = getopt_long(argc, argv, "cirtDO:", long_opts, NULL)) != -1)
+ {
+ switch (c) {
+ case 'O':
+ if (param.fp_obd_uuid) {
+ fprintf(stderr,
+ "error: %s: only one obduuid allowed",
+ argv[0]);
+ return CMD_HELP;
+ }
+ param.fp_obd_uuid = (struct obd_uuid *)optarg;
+ break;
+ case 'c':
+ param.fp_verbose |= VERBOSE_COUNT;
+ break;
+ case 'i':
+ param.fp_verbose |= VERBOSE_OFFSET;
+ break;
+ case 't':
+ param.fp_verbose |= VERBOSE_HASH_TYPE;
+ break;
+ case 'D':
+ param.fp_get_default_lmv = 1;
+ break;
+ case 'r':
+ param.fp_recursive = 1;
+ break;
+ default:
+ return CMD_HELP;
+ }
+ }
+
+ if (optind >= argc)
+ return CMD_HELP;
+
+ if (param.fp_recursive)
+ param.fp_max_depth = -1;
+
+ if (!param.fp_verbose)
+ param.fp_verbose = VERBOSE_DEFAULT;
+
+ do {
+ rc = llapi_getstripe(argv[optind], ¶m);
+ } while (++optind < argc && !rc);
+
+ if (rc)
+ fprintf(stderr, "error: %s failed for %s.\n",
+ argv[0], argv[optind - 1]);
+ return rc;