Changeset 6d55e39 in mainline


Ignore:
Timestamp:
2024-10-18T10:55:42Z (8 months ago)
Author:
Miroslav Cimerman <mc@…>
Children:
50bed55d
Parents:
08fa9e8
Message:

hrctl: remove disk concatenation option

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/hrctl/hrctl.c

    r08fa9e8 r6d55e39  
    5454    "Options:\n"
    5555    "  -h, --help                display this help and exit\n"
    56     "  -C, --create-file=path    create an array from file,\n"
     56    "  -C, --create-file=PATH    create an array from file,\n"
    5757    "                            sample file at: " HRCTL_SAMPLE_CONFIG_PATH "\n"
    58     "  -A, --assemble-file=path  create an array from file\n"
     58    "  -A, --assemble-file=PATH  create an array from file\n"
    5959    "  -s, --status              display status of active arrays\n"
    6060    "  -T, --stop                stop an active array\n"
     
    6363    "  -n                        non-zero number of devices\n"
    6464    "  -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"
    6666    "  -0                        striping\n"
    6767    "  -1                        mirroring\n"
    6868    "  -4                        parity on one extent\n"
    6969    "  -5                        distributed parity\n"
    70     "  -L                        linear concatenation\n"
    7170    "\n"
    7271    "Example usage:\n"
     
    161160        if (level_str == NULL)
    162161                cfg->level = hr_l_empty;
    163         else if (str_cmp(level_str, "linear") == 0)
    164                 cfg->level = hr_l_linear;
    165162        else
    166163                cfg->level = strtol(level_str, NULL, 10);
     
    291288                        if (cfg->level != hr_l_empty)
    292289                                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);
    297291                        break;
    298292                case '0':
     
    315309                                goto bad;
    316310                        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;
    322311                        break;
    323312                case 'n':
Note: See TracChangeset for help on using the changeset viewer.