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


Ignore:
Timestamp:
2025-06-07T11:52:34Z (7 weeks ago)
Author:
Miroslav Cimerman <mc@…>
Children:
d482b05
Parents:
49da044
Message:

hr: move state callback to hr_ops_t

File:
1 edited

Legend:

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

    r49da044 rda80de9  
    9898                vol->hr_ops.create = hr_raid0_create;
    9999                vol->hr_ops.init = hr_raid0_init;
    100                 vol->hr_ops.state_event = hr_raid0_state_event;
     100                vol->hr_ops.vol_state_eval = hr_raid0_vol_state_eval;
     101                vol->hr_ops.ext_state_cb = hr_raid0_ext_state_cb;
    101102                break;
    102103        case HR_LVL_1:
    103104                vol->hr_ops.create = hr_raid1_create;
    104105                vol->hr_ops.init = hr_raid1_init;
    105                 vol->hr_ops.state_event = hr_raid1_state_event;
     106                vol->hr_ops.vol_state_eval = hr_raid1_vol_state_eval;
     107                vol->hr_ops.ext_state_cb = hr_raid1_ext_state_cb;
    106108                if (meta_flags & HR_METADATA_HOTSPARE_SUPPORT)
    107109                        vol->hr_ops.add_hotspare = hr_raid1_add_hotspare;
     
    111113                vol->hr_ops.create = hr_raid5_create;
    112114                vol->hr_ops.init = hr_raid5_init;
    113                 vol->hr_ops.state_event = hr_raid5_state_event;
     115                vol->hr_ops.vol_state_eval = hr_raid5_vol_state_eval;
     116                vol->hr_ops.ext_state_cb = hr_raid5_ext_state_cb;
    114117                if (meta_flags & HR_METADATA_HOTSPARE_SUPPORT)
    115118                        vol->hr_ops.add_hotspare = hr_raid5_add_hotspare;
Note: See TracChangeset for help on using the changeset viewer.