Changeset 6d55e39 in mainline
- Timestamp:
- 2024-10-18T10:55:42Z (8 months ago)
- Children:
- 50bed55d
- Parents:
- 08fa9e8
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/hrctl/hrctl.c
r08fa9e8 r6d55e39 54 54 "Options:\n" 55 55 " -h, --help display this help and exit\n" 56 " -C, --create-file= pathcreate an array from file,\n"56 " -C, --create-file=PATH create an array from file,\n" 57 57 " sample file at: " HRCTL_SAMPLE_CONFIG_PATH "\n" 58 " -A, --assemble-file= pathcreate an array from file\n"58 " -A, --assemble-file=PATH create an array from file\n" 59 59 " -s, --status display status of active arrays\n" 60 60 " -T, --stop stop an active array\n" … … 63 63 " -n non-zero number of devices\n" 64 64 " -l, --level=LEVEL set the RAID level,\n" 65 " valid values: 0, 1, 4, 5 , linear\n"65 " valid values: 0, 1, 4, 5\n" 66 66 " -0 striping\n" 67 67 " -1 mirroring\n" 68 68 " -4 parity on one extent\n" 69 69 " -5 distributed parity\n" 70 " -L linear concatenation\n"71 70 "\n" 72 71 "Example usage:\n" … … 161 160 if (level_str == NULL) 162 161 cfg->level = hr_l_empty; 163 else if (str_cmp(level_str, "linear") == 0)164 cfg->level = hr_l_linear;165 162 else 166 163 cfg->level = strtol(level_str, NULL, 10); … … 291 288 if (cfg->level != hr_l_empty) 292 289 goto bad; 293 if (str_cmp(optarg, "linear") == 0) 294 cfg->level = hr_l_linear; 295 else 296 cfg->level = strtol(optarg, NULL, 10); 290 cfg->level = strtol(optarg, NULL, 10); 297 291 break; 298 292 case '0': … … 315 309 goto bad; 316 310 cfg->level = hr_l_5; 317 break;318 case 'L':319 if (cfg->level != hr_l_empty)320 goto bad;321 cfg->level = hr_l_linear;322 311 break; 323 312 case 'n':
Note:
See TracChangeset
for help on using the changeset viewer.