Changeset d199a6f in mainline for uspace/srv/bd/hr/raid1.c
- Timestamp:
- 2024-11-15T21:32:20Z (8 months ago)
- Children:
- 7b359f5
- Parents:
- dfa2313
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/bd/hr/raid1.c
rdfa2313 rd199a6f 87 87 88 88 if (new_volume->dev_no < 2) { 89 ERR_PRINTF("RAID 1 array needs at least 2 devices\n");89 HR_ERROR("RAID 1 array needs at least 2 devices\n"); 90 90 return EINVAL; 91 91 } … … 127 127 static errno_t hr_raid1_bd_open(bd_srvs_t *bds, bd_srv_t *bd) 128 128 { 129 DPRINTF("hr_bd_open()\n");129 HR_DEBUG("hr_bd_open()\n"); 130 130 return EOK; 131 131 } … … 133 133 static errno_t hr_raid1_bd_close(bd_srv_t *bd) 134 134 { 135 DPRINTF("hr_bd_close()\n");135 HR_DEBUG("hr_bd_close()\n"); 136 136 return EOK; 137 137 } … … 192 192 if (healthy == 0) { 193 193 if (old_state != HR_VOL_FAULTY) { 194 ERR_PRINTF("RAID 1 needs at least 1 extent to be"194 HR_WARN("RAID 1 needs at least 1 extent to be" 195 195 "ONLINE, marking \"%s\" (%lu) volume as FAULTY", 196 196 vol->devname, vol->svc_id); … … 200 200 } else if (healthy < vol->dev_no) { 201 201 if (old_state != HR_VOL_DEGRADED) { 202 ERR_PRINTF("RAID 1 array \"%s\" (%lu) has some "202 HR_WARN("RAID 1 array \"%s\" (%lu) has some " 203 203 "inactive extent(s), marking volume as DEGRADED", 204 204 vol->devname, vol->svc_id); … … 208 208 } else { 209 209 if (old_state != HR_VOL_ONLINE) { 210 DPRINTF("RAID 1 array \"%s\" (%lu) has all extents "210 HR_WARN("RAID 1 array \"%s\" (%lu) has all extents " 211 211 "active, marking volume as ONLINE", 212 212 vol->devname, vol->svc_id);
Note:
See TracChangeset
for help on using the changeset viewer.