Changeset 5d96f427 in mainline for uspace/srv/bd/hr/raid0.c
- Timestamp:
- 2024-11-15T16:44:25Z (6 months ago)
- Children:
- 733564a
- Parents:
- bd51105
- git-author:
- Miroslav Cimerman <mc@…> (2024-11-15 16:08:11)
- git-committer:
- Miroslav Cimerman <mc@…> (2024-11-15 16:44:25)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/bd/hr/raid0.c
rbd51105 r5d96f427 89 89 for (size_t i = 0; i < vol->dev_no; i++) { 90 90 if (vol->extents[i].status != HR_EXT_ONLINE) { 91 log_msg(LOG_DEFAULT, LVL_ERROR, 92 "RAID 0 needs all extents to be ONLINE, marking " 93 "\"%s\" (%lu) as FAULTY", 91 ERR_PRINTF("RAID 0 needs all extents to be ONLINE, " 92 "marking \"%s\" (%lu) as FAULTY", 94 93 vol->devname, vol->svc_id); 95 94 vol->status = HR_VOL_FAULTY; … … 104 103 static errno_t hr_raid0_bd_open(bd_srvs_t *bds, bd_srv_t *bd) 105 104 { 106 log_msg(LOG_DEFAULT, LVL_NOTE, "hr_bd_open()");105 DPRINTF("hr_bd_open()\n"); 107 106 return EOK; 108 107 } … … 110 109 static errno_t hr_raid0_bd_close(bd_srv_t *bd) 111 110 { 112 log_msg(LOG_DEFAULT, LVL_NOTE, "hr_bd_close()");111 DPRINTF("hr_bd_close()\n"); 113 112 return EOK; 114 113 } … … 246 245 247 246 if (new_volume->dev_no < 2) { 248 log_msg(LOG_DEFAULT, LVL_ERROR, 249 "RAID 0 array needs at least 2 devices"); 247 ERR_PRINTF("RAID 0 array needs at least 2 devices"); 250 248 return EINVAL; 251 249 }
Note:
See TracChangeset
for help on using the changeset viewer.