Changeset 0fce1a6 in mainline for uspace/lib/device
- Timestamp:
- 2025-06-09T21:24:57Z (7 months ago)
- Children:
- 9ee9c60b
- Parents:
- eabc094c
- Location:
- uspace/lib/device
- Files:
-
- 2 edited
-
include/hr.h (modified) (1 diff)
-
src/hr.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/device/include/hr.h
reabc094c r0fce1a6 56 56 57 57 typedef enum hr_layout { 58 HR_ RLQ_NONE = 0,59 HR_ RLQ_RAID4_0,/* RAID-4 Non-Rotating Parity 0 */60 HR_ RLQ_RAID4_N,/* RAID-4 Non-Rotating Parity N */61 HR_ RLQ_RAID5_0R, /* RAID-5 Rotating Parity 0 with Data Restart */62 HR_ RLQ_RAID5_NR, /* RAID-5 Rotating Parity N with Data Restart */63 HR_ RLQ_RAID5_NC/* RAID-5 Rotating Parity N with Data Continuation */58 HR_LAYOUT_NONE = 0, 59 HR_LAYOUT_RAID4_0, /* RAID-4 Non-Rotating Parity 0 */ 60 HR_LAYOUT_RAID4_N, /* RAID-4 Non-Rotating Parity N */ 61 HR_LAYOUT_RAID5_0R, /* RAID-5 Rotating Parity 0 with Data Restart */ 62 HR_LAYOUT_RAID5_NR, /* RAID-5 Rotating Parity N with Data Restart */ 63 HR_LAYOUT_RAID5_NC /* RAID-5 Rotating Parity N with Data Continuation */ 64 64 } hr_layout_t; 65 65 -
uspace/lib/device/src/hr.c
reabc094c r0fce1a6 496 496 { 497 497 switch (layout) { 498 case HR_ RLQ_NONE:498 case HR_LAYOUT_NONE: 499 499 return "RAID layout not set"; 500 case HR_ RLQ_RAID4_0:500 case HR_LAYOUT_RAID4_0: 501 501 return "RAID-4 Non-Rotating Parity 0"; 502 case HR_ RLQ_RAID4_N:502 case HR_LAYOUT_RAID4_N: 503 503 return "RAID-4 Non-Rotating Parity N"; 504 case HR_ RLQ_RAID5_0R:504 case HR_LAYOUT_RAID5_0R: 505 505 return "RAID-5 Rotating Parity 0 with Data Restart"; 506 case HR_ RLQ_RAID5_NR:506 case HR_LAYOUT_RAID5_NR: 507 507 return "RAID-5 Rotating Parity N with Data Restart"; 508 case HR_ RLQ_RAID5_NC:508 case HR_LAYOUT_RAID5_NC: 509 509 return "RAID-5 Rotating Parity N with Data Continuation"; 510 510 default:
Note:
See TracChangeset
for help on using the changeset viewer.
