Changeset 37a9c1e in mainline for uspace/lib/device
- Timestamp:
- 2024-12-23T11:06:35Z (7 months ago)
- Children:
- 8137d36
- Parents:
- 6784abc
- Location:
- uspace/lib/device
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/device/include/hr.h
r6784abc r37a9c1e 109 109 size_t bsize; 110 110 hr_vol_status_t status; 111 uint8_t RLQ;111 uint8_t layout; 112 112 } hr_vol_info_t; 113 113 -
uspace/lib/device/src/hr.c
r6784abc r37a9c1e 134 134 if (vol_info->level == HR_LVL_4 || vol_info->level == HR_LVL_5) { 135 135 printf("layout: %s\n", 136 hr_get_layout_str(vol_info->level, vol_info-> RLQ));136 hr_get_layout_str(vol_info->level, vol_info->layout)); 137 137 } 138 138 if (vol_info->level == HR_LVL_0 || vol_info->level == HR_LVL_4) { … … 163 163 } 164 164 if (vol_info->level == HR_LVL_4) { 165 if ((i == 0 && vol_info-> RLQ== HR_RLQ_RAID4_0) ||165 if ((i == 0 && vol_info->layout == HR_RLQ_RAID4_0) || 166 166 (i == vol_info->extent_no - 1 && 167 vol_info-> RLQ== HR_RLQ_RAID4_N))167 vol_info->layout == HR_RLQ_RAID4_N)) 168 168 printf(" P %s %zu %s\n", hr_get_ext_status_msg(ext->status), i, devname); 169 169 else … … 350 350 } 351 351 352 const char *hr_get_layout_str(hr_level_t level, uint8_t RLQ)352 const char *hr_get_layout_str(hr_level_t level, uint8_t layout) 353 353 { 354 354 switch (level) { 355 355 case HR_LVL_4: 356 switch ( RLQ) {356 switch (layout) { 357 357 case HR_RLQ_RAID4_0: 358 358 return "RAID-4 Non-Rotating Parity 0"; … … 363 363 } 364 364 case HR_LVL_5: 365 switch ( RLQ) {365 switch (layout) { 366 366 case HR_RLQ_RAID5_0R: 367 367 return "RAID-5 Rotating Parity 0 with Data Restart";
Note:
See TracChangeset
for help on using the changeset viewer.