Changeset 75262d2f in mainline
- Timestamp:
- 2025-04-21T12:37:19Z (4 weeks ago)
- Children:
- b883aa8
- Parents:
- 80c760e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/bd/hr/util.c
r80c760e r75262d2f 90 90 vol->meta_ops = get_type_ops(metadata_type); 91 91 92 uint8_t meta_flags = vol->meta_ops->get_flags(); 93 92 94 switch (level) { 93 95 case HR_LVL_0: … … 100 102 vol->hr_ops.init = hr_raid1_init; 101 103 vol->hr_ops.status_event = hr_raid1_status_event; 102 if ( vol->meta_ops->get_flags()& HR_METADATA_HOTSPARE_SUPPORT)104 if (meta_flags & HR_METADATA_HOTSPARE_SUPPORT) 103 105 vol->hr_ops.add_hotspare = hr_raid1_add_hotspare; 104 106 break; … … 107 109 vol->hr_ops.init = hr_raid5_init; 108 110 vol->hr_ops.status_event = hr_raid5_status_event; 109 if ( vol->meta_ops->get_flags()& HR_METADATA_HOTSPARE_SUPPORT)111 if (meta_flags & HR_METADATA_HOTSPARE_SUPPORT) 110 112 vol->hr_ops.add_hotspare = hr_raid5_add_hotspare; 111 113 break; … … 114 116 vol->hr_ops.init = hr_raid5_init; 115 117 vol->hr_ops.status_event = hr_raid5_status_event; 116 if ( vol->meta_ops->get_flags()& HR_METADATA_HOTSPARE_SUPPORT)118 if (meta_flags & HR_METADATA_HOTSPARE_SUPPORT) 117 119 vol->hr_ops.add_hotspare = hr_raid5_add_hotspare; 118 120 break;
Note:
See TracChangeset
for help on using the changeset viewer.