Changeset 4066371 in mainline for uspace/lib/device/include/hr.h


Ignore:
Timestamp:
2024-12-06T20:19:21Z (7 months ago)
Author:
Miroslav Cimerman <mc@…>
Children:
ea0d494
Parents:
241c3f6
Message:

hr: layout info printing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/device/include/hr.h

    r241c3f6 r4066371  
    5555} hr_level_t;
    5656
     57/*
     58 * SNIA
     59 * Common RAID Disk Data Format
     60 * Specification
     61 * Version 2.0 Revision 19
     62 */
     63#define HR_RLQ_RAID4_0  0x00 /* RAID-4 Non-Rotating Parity 0 */
     64#define HR_RLQ_RAID4_N  0x01 /* RAID-4 Non-Rotating Parity N */
     65#define HR_RLQ_RAID5_0R 0x00 /* RAID-5 Rotating Parity 0 with Data Restart */
     66#define HR_RLQ_RAID5_NR 0x02 /* RAID-5 Rotating Parity N with Data Restart */
     67#define HR_RLQ_RAID5_NC 0x03 /* RAID-5 Rotating Parity N with Data Continuation */
     68
    5769typedef enum hr_vol_status {
    5870        HR_VOL_ONLINE,  /* OK, OPTIMAL */
     
    97109        size_t bsize;
    98110        hr_vol_status_t status;
     111        uint8_t RLQ;
    99112} hr_vol_info_t;
    100113
     
    109122extern const char *hr_get_vol_status_msg(hr_vol_status_t);
    110123extern const char *hr_get_ext_status_msg(hr_ext_status_t);
     124extern const char *hr_get_layout_str(hr_level_t, uint8_t);
    111125
    112126#endif
Note: See TracChangeset for help on using the changeset viewer.