Changeset b235c67 in mainline
- Timestamp:
- 2024-11-15T16:44:25Z (6 months ago)
- Children:
- 64eba57
- Parents:
- 733564a
- git-author:
- Miroslav Cimerman <mc@…> (2024-11-15 16:30:29)
- git-committer:
- Miroslav Cimerman <mc@…> (2024-11-15 16:44:25)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/bd/hr/hr.c
r733564a rb235c67 65 65 66 66 fibril_mutex_lock(&hr_volumes_lock); 67 list_foreach(hr_volumes, lvolumes, hr_volume_t, vol ume) {68 if (vol ume->svc_id == svc_id) {67 list_foreach(hr_volumes, lvolumes, hr_volume_t, vol) { 68 if (vol->svc_id == svc_id) { 69 69 fibril_mutex_unlock(&hr_volumes_lock); 70 return vol ume;70 return vol; 71 71 } 72 72 } … … 81 81 82 82 fibril_mutex_lock(&hr_volumes_lock); 83 list_foreach(hr_volumes, lvolumes, hr_volume_t, vol ume) {84 if (vol ume->svc_id == svc_id) {85 hr_fini_devs(vol ume);86 list_remove(&vol ume->lvolumes);87 free(vol ume);83 list_foreach(hr_volumes, lvolumes, hr_volume_t, vol) { 84 if (vol->svc_id == svc_id) { 85 hr_fini_devs(vol); 86 list_remove(&vol->lvolumes); 87 free(vol); 88 88 fibril_mutex_unlock(&hr_volumes_lock); 89 89 return EOK; … … 310 310 goto error; 311 311 312 list_foreach(hr_volumes, lvolumes, hr_volume_t, vol ume) {313 memcpy(info.extents, vol ume->extents,312 list_foreach(hr_volumes, lvolumes, hr_volume_t, vol) { 313 memcpy(info.extents, vol->extents, 314 314 sizeof(hr_extent_t) * HR_MAXDEVS); 315 info.svc_id = vol ume->svc_id;316 info.extent_no = vol ume->dev_no;317 info.level = vol ume->level;315 info.svc_id = vol->svc_id; 316 info.extent_no = vol->dev_no; 317 info.level = vol->level; 318 318 /* print usable number of blocks */ 319 info.nblocks = vol ume->data_blkno;320 info.strip_size = vol ume->strip_size;321 info.bsize = vol ume->bsize;322 info.status = vol ume->status;319 info.nblocks = vol->data_blkno; 320 info.strip_size = vol->strip_size; 321 info.bsize = vol->bsize; 322 info.status = vol->status; 323 323 324 324 if (!async_data_read_receive(&call, &size)) {
Note:
See TracChangeset
for help on using the changeset viewer.