Changeset 996d31ac in mainline for uspace/srv/bd/hr/util.c
- Timestamp:
- 2025-07-02T20:43:58Z (9 months ago)
- Children:
- 038a8d0
- Parents:
- dcdb990
- File:
-
- 1 edited
-
uspace/srv/bd/hr/util.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/bd/hr/util.c
rdcdb990 r996d31ac 119 119 vol->meta_ops = hr_get_meta_type_ops(metadata_type); 120 120 121 uint8_t meta_flags = vol->meta_ops->get_flags();122 123 121 switch (level) { 124 122 case HR_LVL_0: … … 133 131 vol->hr_ops.vol_state_eval = hr_raid1_vol_state_eval; 134 132 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;137 133 break; 138 134 case HR_LVL_4: … … 142 138 vol->hr_ops.vol_state_eval = hr_raid5_vol_state_eval; 143 139 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;146 140 break; 147 141 default:
Note:
See TracChangeset
for help on using the changeset viewer.
