Lines Matching +full:fault +full:- +full:q
1 /*-
67 static int fault(int argc, char **argv);
70 static int sesled(int argc, char **argv, bool fault);
80 { "fault",
82 "Change the state of the fault LED associated with a disk",
83 fault },
91 "Print a human-friendly summary of the enclosure", show } ,
105 xo_error("usage: %s [-u /dev/ses<N>] <command> [options]\n", in usage()
112 xo_error("usage: %s %s [-u /dev/ses<N>] " in usage()
119 xo_error(" %-12s%s\n\t\t%s\n\n", cmds[i].name, in usage()
143 ses_ctrl_common_set_select(&slot->common, 1); in do_led()
191 usage(setfault ? "fault" : "locate"); in sesled()
200 xo_warnx("Must specifying a SES device (-u) to use a SES " in sesled()
202 usage(setfault ? "fault" : "locate"); in sesled()
212 usage(setfault ? "fault" : "locate"); in sesled()
221 if (glob((uflag != NULL ? uflag : "/dev/ses[0-9]*"), 0, NULL, &g) == in sesled()
236 * Don't treat non-access errors as critical if we are in sesled()
333 fault(int argc, char **argv) in fault() function
354 xo_emit("\t\t- "); in sesutil_print()
381 sesutil_print(&style, "LED={q:led/locate}"); in print_extra_status()
384 sesutil_print(&style, "LED={q:led/fault}"); in print_extra_status()
394 cstat[2] - TEMPERATURE_OFFSET); in print_extra_status()
396 sesutil_print(&style, "Temperature: -{q:temperature/reserved}"); in print_extra_status()
454 * Don't treat non-access errors as critical if we are in objmap()
520 xo_emit("\t\tStatus: {:status/%s} ({q:status_code/0x%02x 0x%02x 0x%02x 0x%02x})\n", in objmap()
600 *size = -1; in fetch_device_details()
620 *size = -1; in fetch_device_details()
645 size = -1; in show_device()
652 xo_emit("{d:description/%-15s} ", e_desc.elm_desc_len > 0 ? e_desc.elm_desc_str : "-"); in show_device()
653 xo_emit("{e:description/%-15s}", e_desc.elm_desc_len > 0 ? e_desc.elm_desc_str : ""); in show_device()
654 xo_emit("{d:device_names/%-7s} ", e_devname.elm_names_len > 0 ? e_devname.elm_devnames : "-"); in show_device()
656 xo_emit("{d:model/%-25s} ", model ? model : "-"); in show_device()
658 xo_emit("{d:serial/%-20s} ", serial != NULL ? serial : "-"); in show_device()
661 xo_emit("{h,hn-1000:size/%ld}{e:status/%s}", in show_device()
691 e_desc.elm_desc_str, e_status.cstat[2] - TEMPERATURE_OFFSET); in show_therm()
757 * Don't treat non-access errors as critical if we are in show()
802 prev_type = -1; in show()
863 if (prev_type != (elm_type_t)-1 && in show()
910 * Don't treat non-access errors as critical if we are in encstatus()
932 xo_emit("{q:status/OK}"); in encstatus()
949 status = -1; in encstatus()
956 status = -1; in encstatus()
987 uflag = "/dev/ses[0-9]*"; in main()
988 while ((ch = getopt_long(argc, argv, "u:", NULL, NULL)) != -1) { in main()
998 argc -= optind; in main()
1018 return (cmd->exec(argc, argv)); in main()