Changeset 37a9c1e in mainline for uspace/lib/device


Ignore:
Timestamp:
2024-12-23T11:06:35Z (7 months ago)
Author:
Miroslav Cimerman <mc@…>
Children:
8137d36
Parents:
6784abc
Message:

hr: hr_volume_t: rename RLQ → layout

Location:
uspace/lib/device
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/device/include/hr.h

    r6784abc r37a9c1e  
    109109        size_t bsize;
    110110        hr_vol_status_t status;
    111         uint8_t RLQ;
     111        uint8_t layout;
    112112} hr_vol_info_t;
    113113
  • uspace/lib/device/src/hr.c

    r6784abc r37a9c1e  
    134134        if (vol_info->level == HR_LVL_4 || vol_info->level == HR_LVL_5) {
    135135                printf("layout: %s\n",
    136                     hr_get_layout_str(vol_info->level, vol_info->RLQ));
     136                    hr_get_layout_str(vol_info->level, vol_info->layout));
    137137        }
    138138        if (vol_info->level == HR_LVL_0 || vol_info->level == HR_LVL_4) {
     
    163163                }
    164164                if (vol_info->level == HR_LVL_4) {
    165                         if ((i == 0 && vol_info->RLQ == HR_RLQ_RAID4_0) ||
     165                        if ((i == 0 && vol_info->layout == HR_RLQ_RAID4_0) ||
    166166                            (i == vol_info->extent_no - 1 &&
    167                             vol_info->RLQ == HR_RLQ_RAID4_N))
     167                            vol_info->layout == HR_RLQ_RAID4_N))
    168168                                printf("          P   %s    %zu       %s\n", hr_get_ext_status_msg(ext->status), i, devname);
    169169                        else
     
    350350}
    351351
    352 const char *hr_get_layout_str(hr_level_t level, uint8_t RLQ)
     352const char *hr_get_layout_str(hr_level_t level, uint8_t layout)
    353353{
    354354        switch (level) {
    355355        case HR_LVL_4:
    356                 switch (RLQ) {
     356                switch (layout) {
    357357                case HR_RLQ_RAID4_0:
    358358                        return "RAID-4 Non-Rotating Parity 0";
     
    363363                }
    364364        case HR_LVL_5:
    365                 switch (RLQ) {
     365                switch (layout) {
    366366                case HR_RLQ_RAID5_0R:
    367367                        return "RAID-5 Rotating Parity 0 with Data Restart";
Note: See TracChangeset for help on using the changeset viewer.