Changeset dfa2313 in mainline for uspace/srv
- Timestamp:
- 2024-11-15T21:21:29Z (14 months ago)
- Children:
- d199a6f
- Parents:
- 64eba57
- Location:
- uspace/srv/bd/hr
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/bd/hr/hr.c
r64eba57 rdfa2313 312 312 list_foreach(hr_volumes, lvolumes, hr_volume_t, vol) { 313 313 memcpy(info.extents, vol->extents, 314 sizeof(hr_extent_t) * HR_MAX DEVS);314 sizeof(hr_extent_t) * HR_MAX_EXTENTS); 315 315 info.svc_id = vol->svc_id; 316 316 info.extent_no = vol->dev_no; -
uspace/srv/bd/hr/superblock.c
r64eba57 rdfa2313 131 131 return ENOMEM; 132 132 133 service_id_t cfg_svc_id_order[HR_MAX DEVS] = { 0 };133 service_id_t cfg_svc_id_order[HR_MAX_EXTENTS] = { 0 }; 134 134 for (size_t i = 0; i < vol->dev_no; i++) 135 135 cfg_svc_id_order[i] = vol->extents[i].svc_id; 136 136 137 int32_t md_order[HR_MAX DEVS] = { 0 };137 int32_t md_order[HR_MAX_EXTENTS] = { 0 }; 138 138 for (size_t i = 0; i < vol->dev_no; i++) { 139 139 if (cfg_svc_id_order[i] == 0) { -
uspace/srv/bd/hr/var.h
r64eba57 rdfa2313 58 58 fibril_mutex_t lock; 59 59 char devname[HR_DEVNAME_LEN]; 60 hr_extent_t extents[HR_MAX DEVS];60 hr_extent_t extents[HR_MAX_EXTENTS]; 61 61 uint64_t nblocks; 62 62 uint64_t data_blkno;
Note:
See TracChangeset
for help on using the changeset viewer.
