Changeset cf28ffd3 in mainline for uspace/app/hrctl/hrctl.c
- Timestamp:
- 2024-10-28T22:19:45Z (9 months ago)
- Children:
- 1cfa162
- Parents:
- d84773a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/hrctl/hrctl.c
rd84773a rcf28ffd3 59 59 " -s, --status display status of active arrays\n" 60 60 " -T, --stop stop an active array\n" 61 " -F, --fail-extent fail an extent, use with -T and set it before\n" 61 62 " -c, --create=NAME create new array\n" 62 63 " -a, --assemble=NAME assemble an existing array\n" … … 88 89 { "assemble-file", required_argument, 0, 'A' }, 89 90 { "stop", required_argument, 0, 'T' }, 91 { "fail-extent", required_argument, 0, 'F' }, 90 92 { 0, 0, 0, 0 } 91 93 }; … … 220 222 int retval, c; 221 223 bool create, assemble; 224 long fail_extent = -1; 222 225 hr_t *hr; 223 226 hr_config_t *cfg; … … 241 244 242 245 while (c != -1) { 243 c = getopt_long(argc, argv, "hsC:c:A:a:l:0145Ln:T: ",246 c = getopt_long(argc, argv, "hsC:c:A:a:l:0145Ln:T:F:", 244 247 long_options, NULL); 245 248 switch (c) { … … 286 289 break; 287 290 case 'T': 288 rc = hr_stop(optarg );291 rc = hr_stop(optarg, fail_extent); 289 292 free(cfg); 290 293 if (rc != EOK) { … … 295 298 } 296 299 return 0; 300 case 'F': 301 fail_extent = strtol(optarg, NULL, 10); 302 break; 297 303 case 'l': 298 304 if (cfg->level != HR_LVL_UNKNOWN)
Note:
See TracChangeset
for help on using the changeset viewer.