Changeset d199a6f in mainline for uspace/srv/bd/hr/raid5.c
- Timestamp:
- 2024-11-15T21:32:20Z (6 months ago)
- Children:
- 7b359f5
- Parents:
- dfa2313
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/bd/hr/raid5.c
rdfa2313 rd199a6f 96 96 97 97 if (new_volume->dev_no < 3) { 98 ERR_PRINTF("RAID 5 array needs at least 3 devices");98 HR_ERROR("RAID 5 array needs at least 3 devices\n"); 99 99 return EINVAL; 100 100 } … … 137 137 static errno_t hr_raid5_bd_open(bd_srvs_t *bds, bd_srv_t *bd) 138 138 { 139 DPRINTF("hr_bd_open()\n");139 HR_DEBUG("hr_bd_open()\n"); 140 140 return EOK; 141 141 } … … 143 143 static errno_t hr_raid5_bd_close(bd_srv_t *bd) 144 144 { 145 DPRINTF("hr_bd_close()\n");145 HR_DEBUG("hr_bd_close()\n"); 146 146 return EOK; 147 147 } … … 211 211 case 0: 212 212 if (old_state != HR_VOL_ONLINE) { 213 DPRINTF("RAID 5 has all extents online, "213 HR_WARN("RAID 5 has all extents online, " 214 214 "marking \"%s\" (%lu) as ONLINE", 215 215 vol->devname, vol->svc_id); … … 219 219 case 1: 220 220 if (old_state != HR_VOL_DEGRADED) { 221 ERR_PRINTF("RAID 5 array \"%s\" (%lu) has 1 extent "221 HR_WARN("RAID 5 array \"%s\" (%lu) has 1 extent " 222 222 "inactive, marking as DEGRADED", 223 223 vol->devname, vol->svc_id); … … 227 227 default: 228 228 if (old_state != HR_VOL_FAULTY) { 229 ERR_PRINTF("RAID 5 array \"%s\" (%lu) has more "229 HR_WARN("RAID 5 array \"%s\" (%lu) has more " 230 230 "than one 1 extent inactive, marking as FAULTY", 231 231 vol->devname, vol->svc_id);
Note:
See TracChangeset
for help on using the changeset viewer.