Lines Matching refs:optarg
714 if (strcasecmp(optarg, "degrade") == 0) {
716 } else if (strcasecmp(optarg, "fault") == 0) {
720 "must be 'degrade' or 'fault'\n", optarg);
726 raw = optarg;
729 cancel = optarg;
732 device = optarg;
735 ret = parse_delay(optarg, &record.zi_timer,
739 "value: '%s'\n", optarg);
745 if (strcasecmp(optarg, "io") == 0) {
747 } else if (strcasecmp(optarg, "checksum") == 0) {
749 } else if (strcasecmp(optarg, "nxio") == 0) {
751 } else if (strcasecmp(optarg, "dtl") == 0) {
756 "'nxio'\n", optarg);
762 record.zi_freq = atoi(optarg);
774 record.zi_duration = (int)strtol(optarg, &end, 10);
777 "must be a positive integer\n", optarg);
794 level = (int)strtol(optarg, &end, 10);
797 "must be an integer\n", optarg);
806 (void) strlcpy(record.zi_func, optarg,
814 range = optarg;
818 record.zi_duration = (int)strtol(optarg, &end, 10);
821 "must be a positive integer\n", optarg);
827 if (strcasecmp(optarg, "read") == 0) {
829 } else if (strcasecmp(optarg, "write") == 0) {
831 } else if (strcasecmp(optarg, "free") == 0) {
833 } else if (strcasecmp(optarg, "claim") == 0) {
835 } else if (strcasecmp(optarg, "all") == 0) {
840 "'claim' or 'all'\n", optarg);
846 if ((type = name_to_type(optarg)) == TYPE_INVAL &&
849 optarg);
858 if ((label = name_to_type(optarg)) == TYPE_INVAL &&
861 "'%s'\n", optarg);