Changeset 996d31ac in mainline for uspace/srv/bd/hr/util.c


Ignore:
Timestamp:
2025-07-02T20:43:58Z (9 months ago)
Author:
Miroslav Cimerman <mc@…>
Children:
038a8d0
Parents:
dcdb990
Message:

hr: retire level specific add_hotspare() hr_ops_t

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/bd/hr/util.c

    rdcdb990 r996d31ac  
    119119        vol->meta_ops = hr_get_meta_type_ops(metadata_type);
    120120
    121         uint8_t meta_flags = vol->meta_ops->get_flags();
    122 
    123121        switch (level) {
    124122        case HR_LVL_0:
     
    133131                vol->hr_ops.vol_state_eval = hr_raid1_vol_state_eval;
    134132                vol->hr_ops.ext_state_cb = hr_raid1_ext_state_cb;
    135                 if (meta_flags & HR_METADATA_HOTSPARE_SUPPORT)
    136                         vol->hr_ops.add_hotspare = hr_raid1_add_hotspare;
    137133                break;
    138134        case HR_LVL_4:
     
    142138                vol->hr_ops.vol_state_eval = hr_raid5_vol_state_eval;
    143139                vol->hr_ops.ext_state_cb = hr_raid5_ext_state_cb;
    144                 if (meta_flags & HR_METADATA_HOTSPARE_SUPPORT)
    145                         vol->hr_ops.add_hotspare = hr_raid5_add_hotspare;
    146140                break;
    147141        default:
Note: See TracChangeset for help on using the changeset viewer.