Changeset 56602e0 in mainline for uspace/srv/bd/hr/hr.c
- Timestamp:
- 2025-05-07T11:27:25Z (4 weeks ago)
- Children:
- 964e897
- Parents:
- 155d34f
- git-author:
- Miroslav Cimerman <mc@…> (2025-05-07 11:26:23)
- git-committer:
- Miroslav Cimerman <mc@…> (2025-05-07 11:27:25)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/bd/hr/hr.c
r155d34f r56602e0 59 59 static void hr_stop_all_srv(ipc_call_t *); 60 60 static void hr_add_hotspare_srv(ipc_call_t *); 61 static void hr_print_stat us_srv(ipc_call_t *);61 static void hr_print_state_srv(ipc_call_t *); 62 62 static void hr_ctl_conn(ipc_call_t *); 63 63 static void hr_client_conn(ipc_call_t *, void *); … … 368 368 fibril_rwlock_write_lock(&vol->states_lock); 369 369 370 switch (vol->extents[fail_extent].stat us) {370 switch (vol->extents[fail_extent].state) { 371 371 case HR_EXT_NONE: 372 372 case HR_EXT_MISSING: … … 377 377 return; 378 378 default: 379 hr_update_ext_stat us(vol, fail_extent, HR_EXT_FAILED);379 hr_update_ext_state(vol, fail_extent, HR_EXT_FAILED); 380 380 hr_mark_vol_state_dirty(vol); 381 381 } … … 384 384 fibril_rwlock_read_unlock(&vol->extents_lock); 385 385 386 vol->hr_ops.stat us_event(vol);386 vol->hr_ops.state_event(vol); 387 387 388 388 async_answer_0(icall, EOK); … … 428 428 * Prints info about all active volumes. 429 429 */ 430 static void hr_print_stat us_srv(ipc_call_t *icall)430 static void hr_print_state_srv(ipc_call_t *icall) 431 431 { 432 432 HR_DEBUG("%s()", __func__); … … 470 470 info.strip_size = vol->strip_size; 471 471 info.bsize = vol->bsize; 472 info.stat us = vol->status;472 info.state = vol->state; 473 473 info.layout = vol->layout; 474 474 … … 538 538 break; 539 539 case HR_STATUS: 540 hr_print_stat us_srv(&call);540 hr_print_state_srv(&call); 541 541 break; 542 542 default:
Note:
See TracChangeset
for help on using the changeset viewer.