Changeset 56602e0 in mainline for uspace/srv/bd/hr/hr.c


Ignore:
Timestamp:
2025-05-07T11:27:25Z (4 weeks ago)
Author:
Miroslav Cimerman <mc@…>
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)
Message:

hr: rename all strings status' -> state'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/bd/hr/hr.c

    r155d34f r56602e0  
    5959static void hr_stop_all_srv(ipc_call_t *);
    6060static void hr_add_hotspare_srv(ipc_call_t *);
    61 static void hr_print_status_srv(ipc_call_t *);
     61static void hr_print_state_srv(ipc_call_t *);
    6262static void hr_ctl_conn(ipc_call_t *);
    6363static void hr_client_conn(ipc_call_t *, void *);
     
    368368        fibril_rwlock_write_lock(&vol->states_lock);
    369369
    370         switch (vol->extents[fail_extent].status) {
     370        switch (vol->extents[fail_extent].state) {
    371371        case HR_EXT_NONE:
    372372        case HR_EXT_MISSING:
     
    377377                return;
    378378        default:
    379                 hr_update_ext_status(vol, fail_extent, HR_EXT_FAILED);
     379                hr_update_ext_state(vol, fail_extent, HR_EXT_FAILED);
    380380                hr_mark_vol_state_dirty(vol);
    381381        }
     
    384384        fibril_rwlock_read_unlock(&vol->extents_lock);
    385385
    386         vol->hr_ops.status_event(vol);
     386        vol->hr_ops.state_event(vol);
    387387
    388388        async_answer_0(icall, EOK);
     
    428428 * Prints info about all active volumes.
    429429 */
    430 static void hr_print_status_srv(ipc_call_t *icall)
     430static void hr_print_state_srv(ipc_call_t *icall)
    431431{
    432432        HR_DEBUG("%s()", __func__);
     
    470470                info.strip_size = vol->strip_size;
    471471                info.bsize = vol->bsize;
    472                 info.status = vol->status;
     472                info.state = vol->state;
    473473                info.layout = vol->layout;
    474474
     
    538538                        break;
    539539                case HR_STATUS:
    540                         hr_print_status_srv(&call);
     540                        hr_print_state_srv(&call);
    541541                        break;
    542542                default:
Note: See TracChangeset for help on using the changeset viewer.